/* ========================================
私たちについて
======================================== */
.about {
  position: relative;
  margin-bottom: 180px;
}
.about__bg--left,
.about__bg--right {
    width: 26%;
    position: absolute;
    background: rgba(0, 144, 159, 0.08);
    z-index: 1;
}
.about__bg--left {
    height: clamp(200px, 55.4vw, 709px);
    top: clamp(10px, 13.7vw, 175px);
    left: 0;
}
.about__bg--right {
    height: clamp(100px, 32vw, 410px);
    top: clamp(200px, 60vw, 775px);
    right: 0;
}
.about__content {
    position: relative;
    margin-top: clamp(40px, 11.71875vw, 150px);
}
.about__text {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.95;
    margin-bottom: 2em;
}
.about__text span {
    font-weight: 600;
}
.about__img--gallery {
    position: absolute;
    top: -80px;
    right: -5%;
    width: 58%;
    height: auto;
}
.about__img--flow {
    flex-direction: column;
    align-items: center;
    gap: 90px;
    margin-top: clamp(25px, 10.9375vw, 140px);
}
.about__img--flow01 {
    width: 49.75%;
    height: auto;
    object-fit: contain;
}
/* ご依頼の流れ */
.about__flow {
    width: 100%;
    list-style: none;
}
.about__flow-item {
    flex: 1 1 auto;
}
.about__flow-item:last-child {
    flex: none;
}
.about__flow-item:not(:last-child)::after {
    content: "";
    flex: none;
    width: 21px;
    height: 39px;
    margin: 67px auto 0;
    background: url("../img/about/flow-arrow.svg") no-repeat center / contain;
}
.about__flow-step {
    flex-direction: column;
    align-items: center;
    gap: 17px;
}
.about__flow-icon {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 122px;
}
.about__flow-icon--contract {
    padding-bottom: 12px;
}
.about__flow-icon img {
    display: block;
    height: auto;
}
.about__flow-label {
    display: flex;
    align-items: center;
    height: 32px;
    padding: 0 1.5em;
    border-radius: 16px;
    background: #BFE3E7;
    color: #00909F;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1;
    white-space: nowrap;
}

/* ========================================
事業内容
======================================== */
#service {
    scroll-margin-top: calc(var(--header-height) + 20px);
}
.service__title {
    font-size: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 1.6em;
}
.service__title span {
    font-family: "Raleway", sans-serif; 
    font-size: 17px; 
    font-weight: 400;
}
.service__title::before,
.service__title::after {
    content: "";
    position: absolute;
    width: calc(50% - 3em);
    height: 1px;
    background: #2a2a2a;
    top: .8em;
}
.service__title::before {
    left: 0;
}
.service__title::after {
    right: 0;
}
.service__list li {
    font-size: 15px;
    padding: 4em 3.3em 3.3em;
    margin-bottom: 3.3em;
    scroll-margin-top: calc(var(--header-height) + 20px);
}
.service__list h3 {
    font-size: 25px;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 1.2em;
    border-bottom: 1px solid #2a2a2a;
}
.service__content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.service__img {
    display: flex;
    justify-content: space-between;
    width: 45.4%;
    height: 13.3em;
}
.service__img img {
    width: 47%;
    height: 100%;
    object-fit: cover;
}
.service__description {
    width: 51.6%;
    line-height: 1.8;
}

/* メディアクエリ */
@media screen and (max-width: 1280px) {
    /* ========================================
    私たちについて
    ======================================== */
    .about {
        margin-bottom: 14vw;
    }
    .about__bg--left,
    .about__bg--right {
        width: 12%;
    }
    .about__text {
        font-size: 1.5625vw;
    }
    .about__img--gallery {
        top: -6.25vw;
        right: -2%;
    }
    .about__img--flow {
        gap: 7vw;
    }
    .about__flow-item:not(:last-child)::after {
        width: 1.640625vw;
        height: 3.046875vw;
        margin-top: 5.234375vw;
    }
    .about__flow-step {
        gap: 1.328125vw;
    }
    .about__flow-icon {
        height: 9.53125vw;
    }
    .about__flow-icon--contract {
        padding-bottom: .9375vw;
    }
    .about__flow-item:nth-child(1) .about__flow-icon img { width: 10.46875vw; }
    .about__flow-item:nth-child(2) .about__flow-icon img { width: 7.96875vw; }
    .about__flow-item:nth-child(3) .about__flow-icon img { width: 11.09375vw; }
    .about__flow-item:nth-child(4) .about__flow-icon img { width: 8.671875vw; }
    .about__flow-item:nth-child(5) .about__flow-icon img { width: 9.765625vw; }
    .about__flow-label {
        height: max(22px, 2.5vw);
        border-radius: max(11px, 1.25vw);
        font-size: max(11px, 1.25vw);
    }

    /* ========================================
    事業内容
    ======================================== */
    .service__title {
        font-size: 2.34375vw;
    }
    .service__title span {
        font-size: 1.328125vw; 
    }
    .service__list li {
        font-size: 1.171875vw;
    }
    .service__list h3 {
        font-size: 1.953125vw;
    }
}

/* メディアクエリ */
@media screen and (max-width: 768px) {
    /* ========================================
    私たちについて
    ======================================== */
    .about {
        margin-bottom: 60px;
    }
    .about__bg--left {
        width: 30%;
        height: 280px;
        top: 200px;
    }
    .about__bg--right {
        width: 24%;
        height: 160px;
        top: 560px;
    }
    .about__content {
        margin-top: 40px;
        text-align: center;
    }
    .about__text {
        font-size: 12px;
        line-height: 1.85;
        margin-bottom: 20px;
    }
    .about__img--gallery {
        position: initial;
        width: 100%;
        margin: 12px 0 0;
    }
    .about__img--flow {
        justify-content: center;
        margin-top: 25px;
        gap: 42px;
    }
    .about__img--flow01 {
        width: 82%;
        max-width: 320px;
    }
    .about__flow {
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        column-gap: 4px;
        padding: 0 16px;
    }
    .about__flow-item,
    .about__flow-item:last-child {
        display: contents;
    }
    .about__flow::after {
        content: "";
        flex-basis: 100%;
        height: 16px;
        order: 1;
    }
    .about__flow-item:nth-child(n+3)::after,
    .about__flow-item:nth-child(n+4) .about__flow-step {
        order: 2;
    }
    .about__flow-item:not(:last-child)::after {
        width: 10px;
        height: 18px;
        margin: 32px 0 0;
    }
    /* 下段は中央寄せ（上段は両端揃え） */
    .about__flow-item:nth-child(3)::after {
        margin-left: auto;
    }
    .about__flow-item:nth-child(5) .about__flow-step {
        margin-right: auto;
    }
    .about__flow-step {
        gap: 8px;
    }
    .about__flow-icon {
        height: 58px;
    }
    .about__flow-icon--contract {
        padding-bottom: 5px;
    }
    /* 375px幅を基準に、狭い端末では縮小 */
    .about__flow-item:nth-child(1) .about__flow-icon img { width: min(64px, 17.07vw); }
    .about__flow-item:nth-child(2) .about__flow-icon img { width: min(49px, 13.07vw); }
    .about__flow-item:nth-child(3) .about__flow-icon img { width: min(68px, 18.13vw); }
    .about__flow-item:nth-child(4) .about__flow-icon img { width: min(53px, 14.13vw); }
    .about__flow-item:nth-child(5) .about__flow-icon img { width: min(59px, 15.73vw); }
    .about__flow-label {
        height: 22px;
        padding: 0 .5em;
        border-radius: 11px;
        /* 基本は12px。上段（①〜③）が1行に収まらない狭い端末では縮める
           （画面幅 − 左右余白64px − ③のアイコン・矢印・間隔 約100px を、①②のラベル約17文字分で割る） */
        font-size: min(12px, calc((100vw - 164px) / 17));
        letter-spacing: 0;
    }

    /* ========================================
    事業内容
    ======================================== */
    .service__title {
        font-size: 17px;
        margin-bottom: 32px;
    }
    .service__title span {
        font-size: 12px; 
    }
    .service__list li {
        font-size: 11px;
        padding: 40px 30px;
        margin-bottom: 40px;
    }
    .service__list h3 {
        font-size: 15px;
        margin-bottom: 30px;
        text-align: center;
    }
    .service__img {
        width: 100%;
        height: 30.1vw;
        margin-bottom: 20px;
    }
    .service__description {
        width: 100%;
    }
    
}