

.topSection__title {
    margin-bottom: 40px;
    font-size: var(--font-size-title-xxl);
    text-align: center;
    color: var(--color-text-accent);
    line-height: 1;
}

.topSection__title.skyblue {
    color: var(--color-text-highlight);
}

.topSection__subtitle {
    display: block;
    font-size: var(--font-size-title-lg);
    line-height: 1;
    margin-bottom: 0.6667em;
}


/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .topSection__title {
        margin-bottom: 20px;
        line-height: 1.45;
    }

    .topSection__subtitle {
        display: block;
        font-size: var(--font-size-title-lg);
        line-height: 1;
        margin-bottom: 0.6667em;
    }
}

/* ===============================================================
    トップ キービジュアル
=============================================================== */

.topKv {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-bottom: 60px;
}

.topKv__inner {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 140px 4.8611111111vw 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.topKv__img {
    flex: 1;
    width: 100%;
    height: calc(100% - 140px); /* 高さ調整 */
    box-sizing: border-box;
}

.topKv__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 14% center;
    display: block;
    border-radius: 16px;
}

.topKv__copy {
    position: absolute;
    right: calc(4.8611111111vw + 20px);
    bottom: 40px;
    width: 66.1538462%;
    max-width: 860px;
    height: auto;
    padding: 30px 10px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.97);
    text-align: center;
    z-index: 1000;
}

.topKv__copy__title {
    margin-bottom: 10px;
    font-size: var(--font-size-title-catch);
    line-height: 1.45;
}

.topKv__copy__title span {
    color: var(--color-text-highlight);
}

.topKv__copy__desc {
    font-size: var(--font-size-text-md);
    font-weight: 500;
    color: var(--color-text-sub);
}

.topKv__copy__link {
    /* margin-top: 24px; */
    text-align: center;
}

.topKv__link {
    display: inline-block;
    padding: 0.7em 2em;
    background-color: var(--color-bg-primary);
    color: var(--color-text-white);
    font-size: var(--font-size-text-lg);
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    line-height: 1.4;
}

.topKv__link:hover,
.topKv__link:focus {
    opacity: 0.5;
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .topKv {
        margin-bottom: 30px;
        height: calc(100dvh - 60px); /* スマホ表示で高さを画面いっぱいに */
        padding-top: 60px; /* 上から60px空ける */
        box-sizing: border-box;
    }

    .topKv__inner {
        height: 100%;
        padding: 0 20px; /* 左右20pxずつ余白 */
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .topKv__img {
        width: 100%;
        height: 100%;
        overflow: hidden;
        border-radius: 16px;
    }

    .topKv__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 14% center;
        border-radius: 16px;
        display: block;
    }

    .topKv__copy {
        position: absolute;
        right: 40px;
        bottom: 20px;
        width: 66.1538462%;
        max-width: 860px;
        height: auto;
        padding: 16px 10px;
    }

    .topKv__copy__link {
        margin-top: 0;
        text-align: center;
    }
}

/* ===============================================================
    トップ Message
=============================================================== */

.topMessage {
    position: relative;
    width: 100%;
    margin: 0 auto 60px;
}

.topMessage::before {
    content: "";
    position: absolute;
    top: -40vw;
    left: 0;
    width: 100%;
    height: 1432px;
    background-color: var(--color-bg-surface);
    border-top-left-radius: 100% 20vw;
    border-top-right-radius: 100% 20vw;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    z-index: -9;
}

.topMessage__inner {
    width: 100%;
    max-width: 948px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.topMessage__name {    
    padding-bottom: 0;
    font-weight: 700;
    text-align: right;
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .topMessage {
        margin: 0 auto 30px;
    }

    .topSection__title {
        margin-bottom: 20px;
    }
}

/* ===============================================================
    トップ お悩み
=============================================================== */

.topTrouble {
    padding: 60px 0;
    width: 100%;
    height: auto;
    background-color: var(--color-bg-gray);
}

.topTrouble__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.topTrouble__item {
    padding: 30px 24px;
    width: 30%;
    max-width: 290px;
    text-align: center;
    border-radius: 16px;
    background-color: var(--color-bg-white);
}

.topTrouble__title {
    margin-bottom: 20px;
    font-size: var(--font-size-title-s);
    line-height: 1.45;
    color: var(--color-text-sub);
}

.topTrouble__icon {
    margin-bottom: 10px;
    height: 80px;
    object-fit: contain;
}


.topTrouble__desc {
    padding: 0;
    text-align: left;
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {

    .topTrouble {
        padding: 30px 0 50px;
    }

    .topSection__subtitle {
        margin-bottom: 0.2em;
    }

    .topTrouble__list {
        gap: 20px;
        margin: 0 auto;
        padding: 0 24px;
    }

    .topTrouble__item {
        padding: 16px 16px;
        width: 100%;
        max-width: 500px;
        text-align: center;
        border-radius: 16px;
        background-color: var(--color-bg-white);
    }
    .topTrouble__title {
        margin-bottom: 8px;
    }

    .topTrouble__icon {
        margin-bottom: initial;
        height: 50px;
        object-fit: contain;
    }
}

/* ===============================================================
    トップ 解決
=============================================================== */
.topSolution {
    width: 100%;
    margin: 0 auto;
    padding: 0 0 60px;
    background-image: url(../image/top/bg-diagonal.png);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover; /* または contain や 100% auto も検討 */
}

.topSolution__inner {
    top: -40px;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.topSolution__catch {
    margin-bottom: 40px;
    font-size: var(--font-size-title-xxl);
    text-align: center;
    color: var(--color-text-accent);
    line-height: 1;
}

.topSolution__catch.skyblue {
    margin-bottom: 40px;
    font-size: var(--font-size-title-xxl);
    text-align: center;
    color: var(--color-text-highlight);
    line-height: 1;
}

.topSolution__subcatch {
    display: block;
    font-size: var(--font-size-title-lg);
    line-height: 1;
    margin-bottom: 0.6667em;
}

.topSolution__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;

}

.topSolution__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6.7%;

}

.topSolution__item.flex-reverce {
    flex-direction: row-reverse;
}
.topSolution__img {
    width: 42%;
    max-width: 410px;
    height: auto;
}

.topSolution__img img {
    width: 100%;
    border-radius: 16px;
}

.topSolution__desc {
    width: 45%;
    max-width: 450px;
    text-align: left;

}

span.topSolution__point {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    font-weight: 700;
    text-align: center;
    background-color: var(--color-bg-white);
    border-radius: 50%;
    color: var(--color-text-highlight);
    line-height: 1;
    letter-spacing: 0.02em;

}

.topSolution__desc-title {
    font-size: var(--font-size-title-xl);
    color: var(--color-text-accent);
}

.topSolution__question {
    display: block;
    padding-bottom: 0;
    font-size: var(--font-size-title-lg);
    font-weight: 700;
    text-align: center;
}

.topSolution__allow {
    width: 56px;
    margin: 0 auto;
}

.topSolution__allow img {
    width: 100%;
}


p span.text-large {
    font-size: var(--font-size-title-md);
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-text-sub);
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .topSolution p {
    }
    .topSolution__catch.skyblue {
        margin-bottom: 20px;
    }
    .topSolution__catch {
        margin-bottom: 16px;
        font-size: var(--font-size-title-xxl);
        text-align: center;
        color: var(--color-text-accent);
        line-height: 1;
    }

    .topSolution__list {
        margin-bottom: 20px;
    }

    .topSolution__item {
        flex-direction: column;
        width: 100%;
    }

    .topSolution__img {
        width: 100%;
        max-width: 450px;
    }

    .topSolution__img img {
        width: 100%;
        max-width: 450px;
    }

    .topSolution__desc {
        width: 100%;
        max-width: initial;
        padding: 0 4px;
    }
    .topSolution__item.flex-reverce {
        flex-direction: column;
    }

    .topSolution__question {
        text-align: center;
    }

    .topSolution__allow {
        width: 30px;
    }

    span.topSolution__point {
    	width: 60px;
    	height: 60px;
    }

}


/* ===============================================================
    トップ パートナー
=============================================================== */
.topPartner {
    margin: 0 auto;
    padding-bottom: 60px;
    background-color: var(--color-bg-white);
    text-align: center;
}

.topPartner__inner {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.topPartner__inner > .topSection__title {
    line-height: 1.25;
}

.topPartner__catch {
    margin-bottom: 40px;
    font-size: var(--font-size-title-xxl);
    text-align: center;
    color: var(--color-text-accent);
    line-height: 1;
}

.topPartner__subcatch {
    display: block;
    font-size: var(--font-size-title-lg);
    line-height: 1;
    margin-bottom: 0.6667em;
    color: var(--color-text-base);
}

.topPartner__inner p {
    max-width: 800px;
    margin: 0 auto;
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .topPartner {
        padding-bottom: 40px;
    }

    .topPartner__inner > p {
        text-align: left;
    }

    .topPartner__catch {
        margin-bottom: 16px;
    }
}


/* ===============================================================
    トップ 実現できること
=============================================================== */
.topFeatures {
    margin: 0 auto;
    padding: 60px 0;
    background-color: var(--color-bg-sub-accent);
}

.topFeatures__inner {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.topFeatures__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.topFeatures__item {
    display: flex;
    flex-direction: column;
    justify-content: center; /* ← これで縦方向中央揃え */
    align-items: center;
    padding: 30px 24px;
    width: 30%;
    max-width: 290px;
    text-align: center;
    border-radius: 16px;
    background-color: var(--color-bg-white);
    height: 200px; /* ← 高さを固定する（またはmin-heightでもOK） */
}

.topFeatures__title {
    font-size: var(--font-size-title-s);
    line-height: 1.45;
    color: var(--color-text-accent);
}

.topFeatures__icon {
    margin-bottom: 10px;
    height: 80px;
    object-fit: contain;
}

.topFeatures__desc {
    padding: 0;
    text-align: left;
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .topFeatures {
        padding: 40px 0;
    }
    
    .topFeatures__list {
        gap: 20px;
        margin: 0 auto;
    }

    .topFeatures__item {
        padding: 16px 16px;
        width: 100%;
        height: auto;
        max-width: 500px;
        text-align: center;
        border-radius: 16px;
        background-color: var(--color-bg-white);
    }

    .topFeatures__icon {
        margin-bottom: initial;
        height: 50px;
        object-fit: contain;
    }
}


/* ===============================================================
    トップ 対応分野・ジャンル
=============================================================== */
.topFields {
    width: 100%;
    padding: 60px 0;
}

.topFields__inner {
    margin: 0 auto;
    padding: 0 24px;
    max-width: 1000px;
}

.topFields p {
    text-align: center;
}

.topFields__list {
    display: flex;
    justify-content: center;
    gap: 9.2%;
}

.topFields__item {
    width: 45%;
    max-width: 410px;
    height: auto;
}

.topFields__item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 16px;
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .topFields {
        width: 100%;
        padding: 40px 0 calc(40px - 1.75em);
    }

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

    .topFields__item {
        width: 100%;
    }

    .topFields__item img {
        width: 100%;
        max-width: 450px;
        margin-bottom: 0;
    }
}


/* ===============================================================
    トップ 対応分野・ジャンル
=============================================================== */
.topServices {
    width: 100%;
    padding: 60px 0;
    background-color: var(--color-bg-surface);
}

.topServices__inner {
    margin: 0 auto;
    padding: 0 24px;
    max-width: 1000px;
}

.topServices__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
    max-width: 1000px;
}

.topServices__item {
    width: 23.25581%;
    max-width: 200px;
    height: 200px;
    padding: 20px 16px;
    border-radius: 16px;
    background-color: var(--color-bg-white);
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.topServices__titleWrapper {
    height: 50px; /* 2行分の高さに合わせて調整 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
}

.topServices__title {
    font-size: var(--font-size-title-s);
    line-height: 1.45;
    margin: 0;
}

.topServices__iconWrapper {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topServices__icon {
    height: 100%;
    object-fit: contain;
}
/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .topServices {
        padding: 40px 0;
    }
    .topServices__list {        
        gap: 20px;
    }
    .topServices__item {
        width: 100%;
        max-width: 500px;
        height: initial;
        padding: 16px 16px;
    }
    .topServices__titleWrapper {
        height: initial;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
        width: 100%;
    }
    .topServices__iconWrapper {
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

}


/* ===============================================================
    トップ ご依頼の流れ
=============================================================== */
/* ご依頼の流れ */
.topFlow {
    padding: 60px 0;
}

.topFlow__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.topFlow__title {
    text-align: center;
    font-size: var(--font-size-title-m);
    margin-bottom: 40px;
}

.topFlow__item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 30px;
    align-items: flex-start;
    position: relative;
}

.topFlow__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20.48%;
    text-align: center;
    position: relative;
}

.topFlow__circle {
    background-color: var(--color-text-highlight);
    color: var(--color-text-white);
    font-weight: bold;
    line-height: 1.2;
    padding: 1em;
    border-radius: 9999px;
    position: relative;
    z-index: 1;
}

.topFlow__text {
    margin-top: 16px;
    font-size: var(--font-size-text-lg);
    font-weight: 700;
    line-height: 1.6;
}

/* 点線の横線 */
.topFlow__circle:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    width: calc(100% + 100px);
    height: 4px;
    background-image: repeating-linear-gradient(
        to right,
        rgba(202, 202, 202, 0.4),
        rgba(202, 202, 202, 0.4) 6px,
        transparent 6px,
        transparent 12px
    );
    transform: translateY(-50%);
    z-index: 0;
}

.topFlow__circle--last--pc:after {
    display: none;
}

/* 点線の横線 */
.topFlow__circle--last:after {
    display: none;
}
/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    .topFlow {
        padding: 40px 0;
    }

    .topFlow__circle {
        width: 60px;
        height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        padding: 0;
        line-height: 1.2;
        text-align: center;
    }

    .topFlow__item {
        display: flex;
        flex-direction: column;
        align-items: center; /* 全体を中央寄せ */
        row-gap: 24px;
        position: relative;
    }

    .topFlow__step {
        display: flex;
        flex-direction: row;
        align-items: center;
        max-width: 300px;   /* ← 中央寄せの基準幅を固定 */
        width: 100%;
        gap: 16px;
        margin: 0 auto;     /* ← 中央寄せ */
        text-align: left;
        position: relative;
    }

    .topFlow__text {
        margin-top: 0;
        padding-bottom: 0;
        line-height: 1.6;
    }

    /* 点線の縦線 */
    .topFlow__circle:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 30px;
        width: 4px;
        height: 24px;
        background-image: repeating-linear-gradient(
            to bottom,
            rgba(202, 202, 202, 0.4),
            rgba(202, 202, 202, 0.4) 6px,
            transparent 6px,
            transparent 12px
        );
        transform: translateX(-50%);
        z-index: 0;
    }

    .topFlow__circle--last--pc:after {
        display: block;
    }

    .topFlow__circle--last:after {
        display: none;
    }
}




/* ===============================================================
    トップ 問い合わせ
=============================================================== */
.topContact {
    padding: 0 24px;
    margin: 0 auto 80px;
    box-sizing: border-box;
}

.topContact__inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
    border-radius: 16px;
    background-color: var(--color-bg-primary);
    box-sizing: border-box;
}


.topContact__inner > .topSection__title {
    letter-spacing: 0.06em;
    color: var(--color-text-white);
    line-height: 1.5;
}

.topContact__inner > .topSection__title > .topSection__subtitle {
    margin-bottom: 6px;
}

.topContact__inner > .topSection__title > .under-line--blue {
    background: linear-gradient(transparent 50%, #64B6FF 0%);
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */
@media (max-width: 768px) {
    
    .topContact__inner {
        max-width: 500px;
        padding: 20px 10px;
    }

    .topContact {
        padding: 0 24px;
        margin: 0 auto 60px;
        box-sizing: border-box;
    }
}
