/* ------------------------------
    service common
--------------------------------*/
h2 .c-hdg-section__main {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    margin: 10px 0 0 0;
}

@media (min-width: 768px) {
    h2 .c-hdg-section__main {
        margin: 4px 0 0 0;
    }
}

h2 .c-hdg-section__sub {
        padding: 0 0 0 3px;
    }

@media (min-width: 768px) {
    h2 .c-hdg-section__sub {
        padding: 0 0 0 8px;
    }
}

h2 .c-hdg-section__main > span {
    display: flex;
}

h2 .c-hdg-section__main .txt-l {
    line-height: 0.8;
}

h2 .c-hdg-section__main .txt-s {
    font-size: 30px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    h2 .c-hdg-section__main .txt-s {
        font-size: 38px;
    }
}

/* サブタイトル（短）or サブタイトルなし */
.outfield1 {
    display: flex;
    flex-direction: column;
}

.outfield1 .txt-l {
    padding-block: 5px 0;
}

.outfield1 .txt-s {
    padding-block: 5px 0;
}

.outfield1 .btn {
    margin: 30px auto 0;
}

@media (max-width: 767px) {
    .outfield1:has(.txt-s ) .btn {
        margin: 23px auto 0;
    }
}

@media (min-width: 768px) {
    .outfield1 {
        flex-direction: row;
    }

    .outfield1 .c-hdg-section__main {
        flex-direction: row;
    }

    .outfield1 .txt-l {
        padding-block: 10px 0;
    }

    .outfield1 .txt-s {
        margin-block: auto 0;
        padding-block: 10px 0;
    }

    .outfield1 .btn {
        margin: auto 0 auto auto;
        padding-block: 35px 0;
    }
}

/* サブタイトル（長） */
.outfield2 {
    display: grid;
    grid-template-columns: 1fr;
}

.outfield2 .txt-l {
    padding-block: 5px 0;
}

.outfield2 .txt-s {
    padding-block: 10px 0;
}

.outfield2 .btn {
    margin: 30px auto 0;
}

@media (min-width: 768px) {
    .outfield2 {
        position: relative;
        grid-template-columns: 1fr;
        width: 103%;
    }

    .outfield2 .c-hdg-section__main {
        flex-direction: row;
    }

    .outfield2 .txt-l {
        padding-block: 10px 0;
    }

    .outfield2 .txt-s {
        margin-block: auto 0;
        padding-block: 10px 0;
    }

    .outfield2 .btn {
        margin-block: auto;
        position: absolute;
        bottom: 60px;
        right: 3%;
    }
}

/* mv */
.p-service__img {
    position: relative;
    min-height: 400px;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .p-service__img {
        min-height: 900px;
        display: grid;
        aspect-ratio: 1600/900;
    }
}

.p-service__img:has(.center) {
    display: grid;
    align-items: center;
    min-height: 358px;
}

@media (min-width: 768px) {
    .p-service__img:has(.center) {
        min-height: 600px;
        display: grid;
        aspect-ratio: 1600/600;
    }
}

.p-service__img .img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.p-service__img picture {
    display: block;
    height: 100%;
}

.p-service__img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.p-service__txt.center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7.5px 0;
    padding: 60px 20px;
}

@media (min-width: 768px) {
    .p-service__txt.center {
        gap: 20px 0;
        padding: 0 35px;
    }
}

.p-service__txt:not(.center) {
    position: relative;
    z-index: 2;
    height: fit-content;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 7.5px 0;
    padding: 200px 20px 23px;
}

@media (min-width: 768px) {
    .p-service__txt:not(.center) {
        gap: 20px 0;
        padding: 0 35px 70px;
        margin: auto auto 0;
    }
}

.p-service__txt .ttl {
    font-family: var(--font-serif);
    color: var(--color-white01);
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.5;
    text-align: center;
}

@media (min-width: 768px) {
    .p-service__txt .ttl {
        font-size: 38px;
        font-weight: 400;
    }
}

.p-service__txt .txt {
    color: var(--color-white01);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 2;
    text-align: center;
}

@media (min-width: 768px) {
    .p-service__txt .txt {
        font-size: 16px;
    }
}

.p-service__txt .ttl span,
.p-service__txt .txt span {
    display: inline-block;
}