/* ============== service：サービスのご案内 ============== */
@media (max-width: 680px) {
    :root {
        --top-height: 440px;
    }
}

/* 大枠 */
main {
    width: 100%;
    z-index: 0;
    padding-top: calc(var(--top-height) - 60px);
    opacity: 1;
}
.service {
    width: 1080px;
    margin: 0 auto;
}

/* タブ設定 */
.service_tabs {
    display: flex;
    gap: 8px;
    margin-left: 40px;
}
.service_tab_button {
    flex: 0 0 auto;
    padding: 12px 20px 8px;
    border-radius: 10px 10px 0 0;
    border: none;
    cursor: pointer;
    background-color: var(--color-sub-strong); /* 非アクティブタブ色 */
    color: rgba(var(--color-white-rgb),.9);
    transition:
        background-color 0.2s ease,
        transform 0.15s ease;
    text-align: left;
    line-height: 1;
    font-weight: 600;
}
.service_tab_button br {
    display: none;
}
.service_tab_button .title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.service_tab_button .sub {
    font-size: 1rem;
}
.service_tab_button.is_active {
    background-color: var(--color-sub-thin-d); /* アクティブタブ色 */
    transform: translateY(2px);
    color: var(--color-sub-strong);
    font-weight: 800;
}
.service_panels {
    position: relative;
    background-color: var(--color-sub-thin-d);
    border-radius: 20px;
    padding: 60px 0 80px;
}
.service_panel {
    display: none;
}
.service_panel.is_active {
    display: block;
}
.service_title {
    width: 100%;
    display: flex;
    margin-bottom: 100px;
}
.service_title h2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 60px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-sub-strong)
}
.service_title .title {
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 8px;
}
.service_title .sub {
    font-size: 1.6rem;
}
.service_title .image {
    width: 70%;
    height: 280px;
    border-radius: 16px 0 0 16px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
#service_panel_1 .image {
    background-image: url(img/service_image01.jpg);
}
#service_panel_2 .image {
    background-image: url(img/service_image02.jpg);
}
#service_panel_3 .image {
    background-image: url(img/service_image03.jpg);
}

/* サービスの内容 */
.service_contents {
    width: 80%;
    margin: 0 auto;
}
.service_panel .service_contents_heading {
    width: 100%;
    text-align: center;
}
.service_contents_heading .heading {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background-color: var(--color-white);
    padding: 4px 80px 7px;
    border-radius: 9999px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-sub-strong);
    margin-bottom: 30px;
}
.service_contents_heading .heading::before,
.service_contents_heading .heading::after {
    content: "";
    width: 10px;
    height: 10px;
    background-color: var(--color-sub-strong);
    border-radius: 50%;
} 
.service_contents_heading .heading::before {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}
.service_contents_heading .heading::after {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}
.service_contents .lead {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 600;
    margin-bottom: 20px;
}
.service_contents .card_wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 20px;
    list-style: none;
    margin: 0;
}
.service_contents .card_wrap li {
    position: relative;
    flex: 0 1 calc((100% - 40px) / 3); 
    height: 160px;
    padding: 50px 10px 40px;
    background-color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 14px;
    box-shadow: 2px 2px 4px rgba(var(--color-sub-strong-rgb), 0.8);
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 800;
}
.service_contents .card_wrap .another {
    flex: 0 1 calc((100% - 20px) / 2); 
}
.service_contents .card_wrap {
    counter-reset: service_item;
}
.service_contents .card_wrap li::before {
    counter-increment: service_item;
    content: counter(service_item, upper-roman); /* ローマ数字 */
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--color-sub-strong);
}
.service_contents .card_wrap li::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: 12px;
    bottom: 12px;
    border-top: 2px solid var(--color-sub-strong);
    border-bottom: 2px solid var(--color-sub-strong);
    pointer-events: none;
}
.service_contents .target {
    width: 100%;
    height: 480px;
    background-image: url(img/service_target_bg.png);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 480px;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.service_contents .target_inner {
    width: 700px;
    height: 100%;
}
.service_contents .target_heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 700;
    color: var(--color-sub-strong);
    margin-bottom: 20px;
}
.service_contents .target_heading::before,
.service_contents .target_heading::after {
    content: "................................................................................................";
    /* ↑実際の長さは幅で自動調整 */
    flex: 1;
    overflow: hidden;
    color: var(--color-sub-strong);
    letter-spacing: 2px; /* ドット間隔 */
    font-size: 0.9em;
    white-space: nowrap;
    padding-bottom: 12px;
}
.service_contents .target_heading::before {
    text-align: right;
}
.service_contents .target_heading::after {
    text-align: left;
}
.service_contents .target_contents {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.service_contents .target_contents li {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background-color: rgba(var(--color-primary-pink-rgb), .8);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--color-white);
}

/* サービスのメリット */
.service_merit {
    width: 80%;
    margin: 0 auto;
}
.service_merit .merit_detail_wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.service_merit .merit_detail_wrap li {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: var(--color-sub-strong);
    border-radius: 15px;
    padding: 10px 10px 10px 5px;
}
.service_merit .number_wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
}
.service_merit .number_wrap .sub {
    font-size: 0.9rem;
    line-height: 1;
    margin-bottom: 5px;
}
.service_merit .number_wrap .number {
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
}
.service_merit .text {
    width: 84%;
    padding: 30px 20px;
    background-color: var(--color-sub-thin-b);
    border-radius: 10px;
}
.service_merit .text .heading {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 8px;    
}
.service_merit .text .description {
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 1180px) {
    /* （1180では main 変更なし） */
    .service {
        width: 90%;
    }
    .service_tab_button .title {
        font-size: 1.15rem;
        margin-bottom: 3px;
    }
    .service_tab_button .sub {
        font-size: 0.95rem;
    }
    /* （1180では.service_panels変更なし） */
    .service_title h2 {
        padding-left: 5%;
    }
    .service_title .title {
        font-size: 2rem;
        margin-bottom: 7px;
    }
    .service_title .sub {
        font-size: 1.5rem;
    }
    .service_contents_heading .heading {
        font-size: 1.15rem;
    }
    .service_contents .card_wrap li {
        font-size: 1.1rem;
        line-height: 1.25;
    }
    .service_contents .target {
        height: 460px;
        background-size: 100% 460px;
    }
    .service_contents .target_inner {
        width: 670px;
    }
    .service_contents .target_contents {
        gap: 18px;
    }
    .service_contents .target_contents li {
        width: 200px;
        height: 200px;
        font-size: 1.2rem;
        line-height: 1.35;
    }
    .service_contents,
    .service_merit {
        width: 90%;
    }
    .service_merit .number_wrap .number {
        font-size: 1.8rem;
    }
    .service_merit .text .heading {
        font-size: 1.4rem;
    }
    .service_merit .text .description {
        font-size: 1rem;
    }
}
@media (max-width: 980px) {
    .service_title h2 {
        padding-left: 4%;
    }
    .service_title .title {
        font-size: 1.9rem;
        margin-bottom: 6px;
    }
    .service_title .sub {
        font-size: 1.4rem;
    }
    .service_title .image {
        height: 240px;
    }
    .service_contents .card_wrap li {
        flex: 0 1 calc((100% - 20px) / 2);
    }
    .service_contents .target {
        height: 420px;
        background-size: 100% 420px;
    }
    .service_contents .target_inner {
        width: 590px;
    }
    .service_contents .target_contents {
        gap: 12px;
    }
    .service_contents .target_contents li {
        width: 180px;
        height: 180px;
        font-size: 1.15rem;
        line-height: 1.3;
    }
    .service_merit .number_wrap .number {
        font-size: 1.7rem;
    }
    .service_merit .text .heading {
        font-size: 1.35rem;
    }
}
@media (max-width: 780px) {
    .service_tabs {
        margin-left: 34px;
    }
    .service_tab_button {
        padding: 12px 16px 8px;
    }
    .service_tab_button .title {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    .service_tab_button .sub {
        font-size: 0.9rem;
    }
    .service_title h2 {
        padding-left: 3%;
    }
    .service_title .title {
        font-size: 1.8rem;
        margin-bottom: 4px;
    }
    .service_title .sub {
        font-size: 1.3rem;
    }
    .service_title .image {
        height: 220px;
    }
    .service_contents .lead {
        line-height: 1.45;
    }
    .service_contents .target {
        height: 480px;
        background-size: 90% 480px;
        padding-top: 50px;
    }
    .service_contents .target_inner {
        width: 440px;
    }
    .service_contents .target_heading {
        gap: 10px;
        margin-bottom: 12px;
        font-size: 1.1rem;
    }
    .service_contents .target_heading::before,
    .service_contents .target_heading::after {
        padding-bottom: 6px;
    }
    .service_contents .target_contents {
        justify-content: center;
        flex-wrap: wrap;
        column-gap: 30px;
        row-gap: 0;
    }
    .service_contents .target_contents li {
        flex: 0 0 170px;
        height: 170px;
        font-size: 1.1rem;
    }
    .service_merit .number_wrap .sub {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }
    .service_merit .number_wrap .number {
        font-size: 1.6rem;
    }
    .service_merit .text {
        width: 86%;
        padding: 30px 12px;
    }
    .service_merit .text .heading {
        font-size: 1.3rem;
    }
    .service_merit .text .description {
        font-size: 0.95rem;
    }
}
@media (max-width: 680px) {
    main {
        padding-top: calc(var(--top-height) - 100px);
    }
    .service {
        width: 92%;
    }
    .service_tabs {
        margin-left: 0;
        gap: 1.25%;
    }
    .service_tab_button {
        width: 32.5%;
        padding: 8px 0 3px 7px;
        line-height: 1.2;
    }
    .service_tab_button br {
        display: block;
    }
    .service_tab_button .title {
        font-size: 0.95rem;
        margin-bottom: 2px;
    }
    .service_tab_button .sub {
        display: none;
    }
    .service_panels {
        border-radius: 0 0 20px 20px;
        padding: 50px 0 20px;
    }
    .service_title {
        width: 100%;
        display: flex;
        flex-direction: column;
        margin-bottom: 80px;
    }
    .service_title h2 {
        width: 100%;
        padding-left: 5%;
        margin-bottom: 15px;
    }
    .service_title h2 .sp {
        display: none;
    }
    .service_title .image {
        width: 95%;
        margin-left: 5%;
        height: 180px;
    }
    .service_contents_heading .heading {
        padding: 4px 50px 7px;
    }
    .service_contents .lead {
        font-size: 0.95rem;
        line-height: 1.45;
        font-weight: 500;
    }
    .service_contents .card_wrap li,
    .service_contents .card_wrap .another {
        flex: 0 1 calc((100%) / 1);
        padding: 25px 10px 20px;
    }
    .service_contents .card_wrap .sp_1 {
        display: none;
    }
    .service_contents .target {
        height: 700px;
        background-size: 100% 700px;
    }
    .service_contents .target_inner {
        width: 100%;
    }
    .service_contents .target_heading {
        margin-bottom: 20px;
    }
    .service_contents .target_heading::before,
    .service_contents .target_heading::after {
        padding-bottom: 8px;
    }
    .service_contents .target_contents {
        flex-direction: column;
        align-items: center;
        row-gap: 10px;
    }
    .service_contents .target_contents li {
        width: 170px;
        height: 170px;
    }
    .service_merit .merit_detail_wrap li {
        width: 100%;
        justify-content: flex-start;
        padding: 15px 8px 8px;
        border-radius: 12px;
        flex-direction: column;
    }
    .service_merit .number_wrap {
        width: 100%;
        flex-direction: row;
        align-items: flex-end;
        margin-bottom: 18px;
    }
    .service_merit .text {
        width: 100%;
        padding: 40px 10px 33px;
        border-radius: 8px;
    }
    .service_merit .text .description {
        line-height: 1.3;
    }
}

.hidden_link {
    display: none;
}
@media (max-width: 680px) {
    .hidden_link {
        display: flex;
        width: 94%;
        margin: 50px auto 0;
        justify-content: space-between;
        padding: 10px; 
    }
    .hidden_link_bt {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 49%;
        background-color: var(--color-sub-strong);
        padding: 9px 0 12px 12px;
        border-radius: 10px;
        color: var(--color-white);
        font-weight: 700;
        text-decoration: none;
    }
    .hidden_link_bt .heading {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 3px;
    }
    .hidden_link_bt .sub {
        font-size: 0.8rem;
        line-height: 1;
    }
}