/* ========================================
   Flow 2 Page
======================================== */

.c-flow2Page {
    background: var(--base-bg);
}

/* ----------------------------------------
   Intro
---------------------------------------- */
.c-flow2IntroCard {
    max-width: 980px;
    margin: 0 auto;
}

/* ----------------------------------------
   Timeline Panel
---------------------------------------- */
.c-flow2TimelineWrap {
    border-radius: 72px;
}

.c-flow2TimelineWrap__head {
    margin-bottom: 54px;
}

.c-flow2Timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 34px;
    max-width: 980px;
}

/* STEP01〜04から、次のSTEPへ縦線を伸ばす */
.c-flow2Step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 42px;
    bottom: -34px;
    left: 41px;
    width: 2px;
    background: rgba(24, 169, 183, 0.28);
    z-index: 0;
}

.c-flow2Step {
    position: relative;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.c-flow2Step__meta {
    position: relative;
    z-index: 1;
    width: 84px;
    height: 84px;
}

.c-flow2Step__num {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, #20b7c5, #1698a7);
    color: #fff;
    box-shadow: 0 14px 28px rgba(24, 169, 183, 0.24);
    line-height: 1;
}

.c-flow2Step__label {
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.9;
    line-height: 1;
}

.c-flow2Step__number {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.c-flow2Step__card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    padding: 30px 32px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.04);
}

.c-flow2Step__title {
    margin: 0 0 14px;
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.c-flow2Step__text {
    margin: 0;
    color: var(--text-sub);
    font-size: 1rem;
    line-height: 2.05;
}

.c-flow2Step__text+.c-flow2Step__text {
    margin-top: 10px;
}

/* ----------------------------------------
   Bottom CTA
---------------------------------------- */
.c-flow2BottomCta {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.82),
            rgba(245, 245, 245, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 34px;
    padding: 28px 30px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.04);
}

.c-flow2BottomCta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    border-radius: 26px;
    background: linear-gradient(180deg, #d8f3f6, #c6ebf0);
    font-size: 3rem;
}

.c-flow2BottomCta__sub {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.c-flow2BottomCta__title {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.4;
    font-weight: 800;
}

.c-flow2BottomCta__text {
    margin: 10px 0 0;
    color: var(--text-sub);
    line-height: 1.9;
}

.c-flow2BottomCta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 0 32px;
    border-radius: 18px;
    background: #ffd400;
    color: #111;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(255, 212, 0, 0.22);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.c-flow2BottomCta__button:hover {
    transform: translateY(-2px);
    opacity: 0.96;
}

/* ----------------------------------------
   Notice
---------------------------------------- */
.c-flow2Notice {
    background: #1f9197;
    border-radius: 28px;
    padding: 26px;
}

.c-flow2Notice__inner {
    background: #f8f8f8;
    border-radius: 28px;
    padding: 38px 28px 34px;
    text-align: center;
}

.c-flow2Notice__title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.3;
    font-weight: 500;
    color: #d74a5a;
    letter-spacing: 0.08em;
}

.c-flow2Notice__icon {
    margin: 18px 0 10px;
    font-size: 4rem;
    line-height: 1;
}

.c-flow2Notice__list {
    margin: 18px auto 0;
    padding: 0;
    list-style: none;
    max-width: 900px;
    text-align: left;
}

.c-flow2Notice__list li {
    position: relative;
    padding-left: 1.4em;
    font-size: clamp(1.15rem, 1.8vw, 1.8rem);
    line-height: 1.9;
    font-weight: 700;
    color: #333;
}

.c-flow2Notice__list li+li {
    margin-top: 10px;
}

.c-flow2Notice__list li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
}

/* ----------------------------------------
   Responsive
---------------------------------------- */
@media (max-width: 1100px) {
    .c-flow2BottomCta {
        grid-template-columns: 1fr;
    }

    .c-flow2BottomCta__icon {
        min-height: 86px;
    }
}

@media (max-width: 767px) {
    .c-flow2TimelineWrap {
        border-radius: 38px;
    }

    .c-flow2TimelineWrap__head {
        margin-bottom: 34px;
    }

    .c-flow2Timeline {
        gap: 24px;
    }

    .c-flow2Timeline::before {
        left: 31px;
    }

    .c-flow2Step {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .c-flow2Step__meta {
        width: 62px;
        height: 62px;
    }

    .c-flow2Step__num {
        width: 62px;
        height: 62px;
        gap: 3px;
    }

    .c-flow2Step__label {
        font-size: 0.42rem;
    }

    .c-flow2Step__number {
        font-size: 1rem;
    }

    .c-flow2Step__card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .c-flow2Step__title {
        font-size: 1.35rem;
    }

    .c-flow2Step__text {
        font-size: 0.96rem;
        line-height: 1.95;
    }

    .c-flow2BottomCta {
        gap: 18px;
        padding: 22px 18px;
        border-radius: 24px;
    }

    .c-flow2BottomCta__icon {
        min-height: 74px;
        border-radius: 18px;
        font-size: 2.2rem;
    }

    .c-flow2BottomCta__button {
        width: 100%;
    }

    .c-flow2Notice {
        padding: 14px;
        border-radius: 20px;
    }

    .c-flow2Notice__inner {
        padding: 24px 16px 20px;
        border-radius: 20px;
    }

    .c-flow2Notice__title {
        font-size: 1.8rem;
    }

    .c-flow2Notice__icon {
        font-size: 3rem;
    }

    .c-flow2Notice__list li {
        font-size: 1rem;
        line-height: 1.8;
    }

    .c-flow2Step:not(:last-child) .c-flow2Step__meta::after {
        top: 62px;
        left: 30px;
    }
}

/* スマホ：STEPを左、カードを右に配置 */
@media (max-width: 767px) {
  .c-flow2Page .c-flow2Timeline {
    gap: 24px;
  }

  .c-flow2Page .c-flow2Step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
  }

  .c-flow2Page .c-flow2Step__meta,
  .c-flow2Page .c-flow2Step__num {
    width: 48px;
    height: 48px;
    margin: 0;
    box-sizing: border-box;
  }

  .c-flow2Page .c-flow2Step__number {
    font-size: 18px;
  }

  .c-flow2Page .c-flow2Step__card {
    width: 100%;
    min-width: 0;
    padding: 18px 14px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 18px;
  }

  .c-flow2Page .c-flow2Step__title {
    font-size: 18px;
    line-height: 1.5;
  }

  .c-flow2Page .c-flow2Step__text {
    font-size: 14px;
    line-height: 1.85;
  }

  /* 古い縦線を消す */
  .c-flow2Page .c-flow2Timeline::before,
  .c-flow2Page .c-flow2Step__meta::after {
    display: none;
  }

  /* 丸の中心から次の丸まで線をつなぐ */
  .c-flow2Page .c-flow2Step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 24px;
    bottom: -48px;
    width: 2px;
    background: rgba(24, 169, 183, 0.28);
    transform: none;
    pointer-events: none;
    z-index: 0;
  }

  .c-flow2Page .c-flow2Step:last-child::after {
    display: none;
  }
}