@charset "UTF-8";

/*=========================
section__top
=========================*/
.section__top{
    height: 180px; 
    background-image: url(../images/blue_bg.png);
    background-repeat: no-repeat;/* 画像を繰り返し表示しない */
    background-size: cover;/* 画面を全体に囲む */
    background-position: center;/* 画像が中央から広がるように */
 }

  /* ページタイトルのスタイル */
.service__top__subtitle {
    font-family: "DM Sans", sans-serif;
    font-style: italic;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-blue,#11438a);
    text-align: center; /* 中央揃え */
    padding-top: 65px;
    letter-spacing: 0.1em;/* 字間 */
}

.service__top__title {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--primary-blue,#11438a);
    text-align: center; /* 中央揃え */
    padding-bottom: 65px;
}

/* pcのsection__top */
@media screen and (min-width: 768px) {
    .section__top{
        height: 300px; 
     }

       /* ページタイトルのスタイル */
    .service__top__subtitle {
        font-size: 1.8rem;
        padding-top: 100px;
    }

    .service__top__title {
        font-size: 3.5rem;
    }
 }

/*=========================
section__flow
=========================*/
.section__flow {
    padding: 100px 6.6% 100px;
    background-color: var(--primary--white,#FDFDFD);
    text-align: center;
}
 /* 青の囲み */
.flow-step {
    position: relative; /* 子要素の絶対位置を基準にする */
    border: 2px solid var(--primary-blue,#11438a);
    border-radius: 5px;
    padding: 40px 20px;
    background-color: #fff;
    margin: 0 auto;
    max-width: 800px;
}
/* 数字 */
.flow-step__number {
    position: absolute; /* 親要素を基準に絶対位置を指定 */
    top: -20px; /* 上に20pxはみ出させる */
    left:20px;
    background:linear-gradient(to right, #11438a, #55a2e6);
    color: var(--primary--white,#FDFDFD);
    font-family: "DM Sans", sans-serif;
    font-style: italic;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.1em; /* 文字間隔を調整 */
    display: inline-block;
    clip-path: polygon(0 0, 80% 0, 100% 100%, 0 100%); /* ひし形のクリッピングパス */
    width: 100px; /* 幅を調整 */
    height: 45px; /* 高さを調整 */
    padding: 6px 8px;
}
/* 画像 */
.flow-step__img1{
    width: 130px;
    height: 125px;
    margin-bottom: 30px; 
}

.flow-step__img2{
    width: 120px;
    height: 125px;
    margin-bottom: 30px; 
}

.flow-step__img3{
    width: 100px;
    height: 130px;
    margin-bottom: 30px; 
}

.flow-step__img4{
    width: 120px;
    height: 130px;
    margin-bottom: 30px; 
}

.flow-step__img5{
    width: 125px;
    height: 125px;
    margin-bottom: 30px; 
}
/* タイトル */
.flow-step__title {
    font-size: 2rem;
    font-weight: bold;
    color:var(--primary-blue,#11438a);
    margin-bottom: 16px;
    line-height: 1.5em;
}
/* テキスト */
.flow-step__text {
    display: inline-block;
    margin: 0 auto;
    font-size:1.6rem;
    text-align: left;
}

.flow-step__text li {
    margin-bottom: 15px;
}
/* 補足 */
.flow-step__text span {
    display: block;
    font-size: 1.4rem;
}
/* 三角 */
.flow-step__triangle-wrapper {
    position: relative; /* テキストと三角形を相対的に配置するための親要素 */
    text-align: center;
    margin: 30px auto 10px; 
}

.flow-step__triangle-text {
    position: absolute; /* 三角形の上に配置 */
    top: 0;
    left: 50%; /* 水平方向の中央に配置 */
    transform: translateX(-50%); /* 中央揃えを正確にする */
    font-size: 1.6rem; 
    font-weight: bold;
    z-index: 10;/* 重なりを上に */
}

.flow-step__triangle {
    width: 70px;
    height: 50px;
    margin: 30px auto 10px;
    background-color:var(--primary-yellow,#deb523);
    clip-path: polygon(90% 0, 10% 0, 50% 60%);
}

.section__flow-hosoku{
    display: inline-block;
    margin: 20px auto 0;
    font-size: 1.4rem;
    text-align: left;
}

.contact__btn_L{
    margin-top: 100px;
}

/* PCのsection-flow */
@media screen and (min-width: 768px) {
    .section__flow {
        padding: 180px 6.6% 150px;
    }

    .flow-step{
        display: flex;
        align-items: center;
        padding: 40px 40px;
        gap: 40px;
    }

    .flow-step__img1,.flow-step__img2,
    .flow-step__img3,.flow-step__img4,.flow-step__img5{
        margin-bottom: 0; 
    }

    .flow-step__list {
        text-align: left;
    }

    .flow-step__title br{
        display: none;
    }

    .flow-step__triangle,
    .flow-step__triangle-wrapper {
        margin: 60px auto 30px; 
    }

    .contact__btn_L{
        margin-top: 150px;
    }
}
