:root{
    --top-logo-h: clamp(26px, 3.2vw, 48px);
    --top-logo-gap: clamp(8px, 2vw, 14px);
    --top-left: clamp(0.75rem, 4vw, 1.5rem);
}
.top_imgs .d-flex{
    align-items: center;
    gap: var(--top-logo-gap);
    flex-wrap: nowrap;
    min-width: 0;
}
.top_imgs {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}
.top_logo {
    height: var(--top-logo-h);
    width: auto;
    max-width: 56vw;
    margin-left: var(--top-left);
    flex: 0 1 auto;
    display: block;
}

.top_ses {
    display: flex;
    justify-content: center;
    margin-left: 0;
    min-width: 0;
    height: var(--top-logo-h);
    flex: 0 1 auto;
}

.top_ses img{
  height: 100%;
  width: auto;
  max-width: 44vw;
  display: block;
}

.top_cap1 {
    display: block;
    width: auto;
    max-width: calc(100% - var(--top-left));
    height: var(--top-logo-h);
    margin-left: var(--top-left);
    margin-top: 1rem;
}

.top_people {
    position: absolute;
    bottom: 0;
    left: 10rem;
    width: 27vw;
    min-width: 300px;
}
.top_bubble{
    position: absolute;
    top: 55%;
    left: 40%;
    background: white;
    border-radius: 50% / 50%;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    padding: 26px 40px;
    text-align: center;
    width: clamp(200px, 18vw, 280px);
    max-width: 280px;
    color: #202F55;
}

.top_bubble .highlight{
    position: relative;      /* 疑似要素の基準点 */
    display: inline-block;
    padding-left: 0.9em;     /* 線のための“逃げ”余白（ここで被りを根絶） */
    padding-right: 0;
    white-space: nowrap;
}

/* 線（疑似要素）をこのCSS内で完全定義 */
.top_bubble .highlight::before,
.top_bubble .highlight::after{
    content: '';
    position: absolute;
    width: .75rem;
    height: 1.25px;
    background-color: #D91717;

    right: auto;             /* 右側基準を完全に捨てる */
    left: 0.15em;            /* ★横位置：ここが主調整（leftで動かす） */
    pointer-events: none;
}

/* 上の線 */
.top_bubble .highlight::before{
    top: 10%;                /* ★縦位置：被るなら 0%〜-10% へ */
    transform: rotate(50deg);
}

/* 下の線 */
.top_bubble .highlight::after{
    top: 38%;                /* ★縦位置：被るなら 20%〜40% で調整 */
    left: -0.15em;
    transform: rotate(20deg);
}

.float_btn {
    padding: 1rem 2rem;
}

.section_second .second_inner {
    max-width: 1100px;  /* ここが上限。1000〜1200で調整 */
    margin: 0 auto;     /* 中央寄せ */
    padding: 2rem 2.5rem; /* 5rem は広すぎになりやすいので少し抑える */
}
.section_second .solution_caption {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
}

.section_second .solution_circle span {
    font-size: clamp(0.8rem, 1vw, 1rem);
}
.section_second .solution_circle{
    --padTop: 2%;        /* ★上を詰める（まず2%） */
    --padBottom: 10%;    /* 下に回す */
    --gap: 2%;
    --scale: .92;
}
.section_second .solution_circle .solution_content{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.section_second .solution_circle .solution_img{
    margin-top: auto;
    display: block;        /* ←これが重要（imgはinlineなのでズレやすい） */
    margin: auto auto 0;
}
.section_second .solution_circle span span {
    font-size: clamp(1.3rem, 1.4vw, 1.7rem);
}
.section_second .problem_card{
    padding-bottom: 24px; /* 円の下に逃げを作る */
}
.second_inner {
    padding: 2rem 5rem;
}

.solution_caption {
    text-align: center;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 600;
}

.problems {
    margin-top: 2rem;
}

.problem_card {
    font-weight: 500;
    text-align: center;
}

.problem_card .problem_img {
    margin: 1rem 0;
    height: 125px;
    object-fit: contain;
}

.problem_card .arrow {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-top: 30px solid #FFEBE6;
    z-index: 2;
}

.solution_circle {
    position: relative;
    background-color: #FFEBE6;
    border-radius: 50%;
    /* margin: 1rem 4rem; */
    aspect-ratio: 1;
    text-align: center;
    z-index: -2;
    overflow: hidden;
    width: clamp(180px, 20vw, 260px);
    max-width: 260px;
    aspect-ratio: 1;
    margin: 1rem auto;
    --scale: 1;
    --textTop: 14%;
}

.solution_content{
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transform: scale(var(--scale));
    flex-direction: column;
    justify-content: space-between;
    padding: var(--padTop) 10% var(--padBottom);
    gap: var(--gap);
}
.solution_text{
    position: relative;
    width: 100%;
    text-align: center;
    align-self: start;
}
.solution_circle1 {
    padding-top: 3rem;
}

.solution_circle2 {
    padding-top: 2rem;
}

.solution_circle3 {
    padding-top: 3rem;
}

.solution_circle div {
    position: relative;
}

.solution_circle span {
    color: #F15A22;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 700;

}

.solution_circle span.circle_text {
    -webkit-text-stroke: 4px white;
    paint-order: stroke;
}

.solution_circle span.circle_shadow {
    position: absolute;
    inset: 0;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.solution_circle span span {
    font-size: clamp(1.5rem, 1.75vw, 2rem);
    letter-spacing: 3px;
}

.solution_img {
    position: relative;
    object-fit: contain;
}

.solution_img1 {
    width: 50%;
    height: 50%;
}

.solution_img2 {
    width: 60%;
    height: 60%;
}

.solution_img3 {
    width: 55%;
    height: 55%;
}


.section_learning .learning_caption .learning_caption_title {
    display: inline-block;
    transform: translateX(calc((3rem + var(--support-reserve)) / 2)) !important;
}

.support {
    position: absolute;
    right: 40px;
    bottom: 0;
    width: var(--support-reserve);
    height: 100%;
}

.support_bubble {
    position: absolute;
    right: clamp(10px, 1.5vw, 30px);
    top: auto;
    bottom: clamp(170px, 18vw, 230px);
    width: clamp(260px, 24vw, 400px);
    background: white;
    border-radius: 50% / 50%;
    padding: clamp(2rem, 2.5vw, 3.5rem);
    text-align: center;
    color: #F15A22;
    font-size: clamp(0.6rem, 1.3vw, 1.6rem);
    font-weight: 600;
    text-shadow:
        -1px -1px 0 white,
        1px -1px 0 white,
        -1px 1px 0 white,
        1px 1px 0 white,
        0px 4px 4px rgba(0, 0, 0, 0.25);
}

.support_bubble span {
    font-size: clamp(1.5rem, 1.5vw, 2rem);
}

.support_bubble .bubble_line {
    content: '';
    position: absolute;
    width: .75rem;
    height: 1.5px;
    background-color: #F15A22;
}

.bubble_line.line1 {
    top: 33%;
    left: 7%;
    transform: rotate(20deg);
}

.bubble_line.line2 {
    top: 27%;
    left: 9%;
    transform: rotate(50deg);
}

.bubble_line.line3 {
    top: 25%;
    left: 12%;
    transform: rotate(85deg);
}

.curriculum_img {
    position: absolute;
    bottom: 0;
    right: 0;
    height: clamp(180px, 16vw, 200px);
}

.guarantees {
    display: flex;
    align-items: stretch;
}
.guarantees > div {
    display: flex;
    align-self: stretch;
}
.guarantee_step_inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.guarantee_step_inner .caption {
    min-height: 5.5em;
    display: flex;
    align-items: flex-start;
    overflow-wrap: anywhere;
    word-break: normal;
}

.guarantee_step_inner .text{
    flex: 1;
    min-height: 0; 

}

.examples table th {
    white-space: nowrap;       /* 折り返し禁止 */
}

/* ラベル列が長い場合に備えて、thの幅を確保 */
.examples table th {
    width: 170px;              /* まずはこのあたりから調整 */
}

/* 既にどこかでthに折り返し指定がある場合の保険 */
.examples table th {
    word-break: keep-all;
    overflow-wrap: normal;
}

.headline_inner {
    --circle-size-min: 180px;  /* ←PCで一番小さい円の直径にしたい値 */
    --circle-size-max: 260px;
    padding: 5rem;
    padding-top: 2rem;
}

.headline_caption {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    padding-bottom: 2rem;
}

.headline_card {
    padding: 1rem;
}

.headline_circle {
    border: #202F55 1px solid;
    border-radius: 50%;
    width: clamp(var(--circle-size-min), 18vw, var(--circle-size-max));
    margin: 1rem auto;
    aspect-ratio: 1;
    text-align: center;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.headline_circle span {
    color: #202F55;
    font-size: clamp(0.8rem, 1.1vw, 1.2rem);
    font-weight: 400;
}

.headline_circle span span {
    font-weight: 700;
    font-size: clamp(1.45rem, 1.7vw, 1.8rem);
    letter-spacing: 2px;
}

.headline_circle span span span {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    letter-spacing: 1px;
}

.headline_notes {
    font-size: clamp(.7rem, 1vw, .8rem) !important;
    font-weight: 400 !important;
    line-height: 1.5rem !important;
}
.headline_circle > span{
    display: block;
    max-width: 100%;
    line-height: 1.25;
    overflow-wrap: anywhere;
    hyphens: auto;
}



.section_steps .step_card {
    aspect-ratio: auto;
    height: 380px;        /* ←ここで全カードの高さが揃う（調整可） */
    overflow: visible;
}
.section_steps .step_arrow {
    z-index: 3;
}
.section_steps .step_content {
    display: grid;
    /* ①タイトル枠(固定) / ②タイトル-本文の隙間 / ③本文 / ④アイコン / ⑤下余白 */
    grid-template-rows: 6rem 1.2rem 1fr 2.2rem 1rem;
    height: 100%;
    align-items: stretch;
    text-align: center;
}
.section_steps .step_card_caption {
    grid-row: 1;
    margin: 0;
    height: 100%;
    align-self: stretch;
    padding: 0 1.2rem !important;
    display: flex;
    align-items: center !important;
    justify-content: center;
    line-height: 1.15;
    padding-bottom: 0.6rem !important;
}
.section_steps .step_card_text {
    grid-row: 3;
    margin: 0;
    padding: 0 1.4rem;
    display: flex;
    height: auto;
    align-items: flex-start;
    justify-content: center;
}
.section_steps .step_card_text > span {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    text-align: left;
    line-height: 1.45;
    font-size: 0.95em;
}

/* 6) アイコンは下側に揃える（カード下で揃う） */
.section_steps .step_img {
    grid-row: 4;
    margin: 0 auto;
    padding: 0;
    align-self: center;
}
.section_steps .step:nth-child(2) .step_card_text {
    font-size: 0.92em;
    line-height: 1.45;
}


@media screen and (max-width: 768px) {
    :root {
        --top-logo-h: clamp(20px, 7vw, 40px);
    }
    .top_logo {
        width: auto; 
        height: var(--top-logo-h);
        max-width: 54vw;
    }
    .top_ses {
        height: var(--top-logo-h);
        width: auto;
    }
    .top_ses img { max-width: 42vw; }
    .top_cap1 {
        height: var(--top-logo-h);
        margin-left: var(--top-left);
        margin-right: var(--top-left);
        width: calc(100% - (var(--top-left) * 2));
        max-width: calc(100% - (var(--top-left) * 2));
        display: block;
        object-fit: contain;
    }
    .top_people {
        position: static;
        display: block;
        margin: 0 auto;
        width: min(78vw, 360px);       /* 好みで調整 */
        min-width: 0;
    }
    .top_bubble {
        padding: 2rem;
        margin: 12px auto 10px;
        position: static;
        width: clamp(240px, 48vw, 360px);
        max-width: 360px
    }
    .second_inner {
        padding: 2rem;
        height: max-content;
    }
    .solution_caption {
        text-align: center;
        font-size: clamp(1rem, 4vw, 1.25rem);
        font-weight: 600;
    }
    .problems {
        flex-direction: column;
    }
    .problem_card {
        font-size: 1rem;
    }
    .problem_card .problem_img {
        margin: 1rem 0;
        height: 125px;
        object-fit: contain;
    }
    .solution_wrap {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 260px;
    }
    .solution_circle {
        margin: 0 auto;
    }
    .solution_circle1,
    .solution_circle2,
    .solution_circle3{
        padding-top: 0;
    }
    .solution_content{
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* 上=文字 / 下=イラスト */
        align-items: center;
        padding: 14% 10% 10%;          /* ←見切れ防止の要 */
        gap: 6%;
    }
    .solution_text{
        width: 100%;
        text-align: center;
        margin: 0;
    }
    .solution_circle1 {
        padding-top: 3rem;
    }
    .solution_circle2 {
        padding-top: 2rem;
    }
    .solution_circle3 {
        padding-top: 3rem;
    }
    .solution_circle span {
        font-size: clamp(1.2rem, 1.25vw, 1.75rem);
    }
    .solution_circle span span {
        font-size: clamp(1.2rem, 1.25vw, 1.9rem);
    }
    .solution_img {
        position: static;
        object-fit: contain;
    }
    .solution_circle .solution_content{
        padding-top: 10%;     /* ←小さくすると文字が上に行く */
        padding-bottom: 10%; /* ←大きくするとイラストが下に沈みすぎない */
        gap: 3%;
    }
    .solution_circle .solution_text .circle_text,
    .solution_circle .solution_text .circle_shadow{
        font-size: clamp(0.8rem, 3vw, 1rem);
        line-height: 1.15;
    }
    .solution_circle .solution_text .circle_text span,
    .solution_circle .solution_text .circle_shadow span{
        font-size: clamp(0.9rem, 4vw, 1.25rem);
        line-height: 1.1;
        letter-spacing: 1px;
    }
    .solution_img1 {
        right: 0;
        bottom: 0;
        width: 50%;
         height: 50%;
    }
    .solution_img2 {
        right: 20%;
        bottom: 0;
        width: 60%;
        height: 60%;
    }
    .solution_img3 {
        right: 22.5%;
        bottom: 0;
        width: 55%;
        height: 55%;
    }
    .learning_inner {
        padding: 1rem !important;
        padding-bottom: 0 !important;
    }
    .star_list {
        margin-left: 0;
    }
    .curriculum_caption {
        margin: 1rem .5rem;
        font-size: clamp(1rem, 4vw, 1.25rem);
        font-weight: 700;
    }
    .curriculum_items .item {
        width: 100%;
    }
    .supports {
        flex-direction: column;
    }
    .support {
        position: static !important;
        right: auto !important;
        bottom: auto !important;
        width: auto !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;       /* 中央寄せ */
        gap: 12px;
        margin-top: 16px;
    }
    .support_bubble {
        position: relative;
        font-size: clamp(1rem, 5vw, 1.1rem);
        right: auto;
        bottom: auto;
        top: auto;
        width: min(92vw, 420px);
        max-width: 420px;
        padding: 22px 18px;
        margin: 0 auto;
    }
    .support_bubble span {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }
    .curriculum_img {
        position: static;
        height: 150px;
        margin: 0 auto;
        display: block;
    }

    .guarantee_step_inner {
        width: min(84vw, 520px);
        margin: 0 auto;
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .guarantees .step {
        display: inline-flex;
        width: auto;
        margin: 0 auto 8px;
        padding-left: 0;
        margin-left: 0;
    }
    .guarantees .caption,
    .guarantees .text{
        text-align: left;
    }
    .guarantee_inner{
        padding: 2rem 1rem;
    }
    .guarantees .caption{
        margin: .75rem 0 1rem 0;
    }

    .headline_inner {
        padding: 2rem;
    }
    .headline_caption {
        text-align: center;
        font-size: clamp(1rem, 4vw, 1.25rem);
        font-weight: 600;
    }
    .headline_card {
        padding: 1rem;
        display: flex;
        justify-content: center;
    }
    .headline_circle {
        border: #202F55 1px solid;
        border-radius: 50%;
        margin: 1rem;
        aspect-ratio: 1;
        text-align: center;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        width: min(92vw, var(--circle-size-min))
    }

}
