:root {
    --bg-color    : #f0f0f0;
    --border-color: #EDC8D8;
}

@media (min-width: 769px) {
    .is-sp {
        display: none;
    }
}

@media (max-width: 768px) {
    .is-pc {
        display: none;
    }
}

#service section#mv {
    background-image: url(../../img/periodontal/mv.jpg);
}

#service.cavities ul.checkbox li {
    width        : 100%;
    float        : none;
    list-style   : none;
    margin-bottom: 6px;
}

#service.cavities ul.checkbox li:last-child {
    margin-bottom: 0;
}

#service.cavities ul.checkbox {
    padding: 20px 30px;

    @media screen and (max-width: 768px) {
        padding: 20px 10px;
    }
}

#service.cavities .service-link ul {
    display        : flex;
    justify-content: center;
    gap            : 10px;

    @media screen and (max-width: 768px) {
        flex-direction: column;
        gap           : 6px;
    }
}

#service.cavities .service-link ul li {
    display       : inline-block;
    margin        : 0;
    vertical-align: middle;
    text-align    : center;

    @media screen and (max-width: 768px) {
        height: auto;
    }
}

#service.cavities .service-link ul li a {
    display        : inline-flex;
    align-items    : center;
    width          : 90%;
    justify-content: center;
    padding        : 10px;
    height         : 38px;

    @media screen and (max-width: 768px) {
        border    : #7fb658 1px solid;
        background: #FFF;
        box-sizing: border-box;
        width     : 100%;
        height    : auto;
        padding   : 15px 10px;
    }
}

/* 見出し */
.service-guide h2.p-title2 {
    border-bottom: 2px dotted #cac1af !important;
    color        : #3f2003;
    margin-bottom: 15px !important;
    padding      : 0px 0 10px 40px !important;
    text-align   : left !important;
    line-height  : 140% !important;
    font-size    : 28px !important;
    font-weight  : normal !important;
    font-family  : フォーク M !important;
    background   : url(../../img/service/icon-mark2.png) left 10px no-repeat;
}

.service-guide h3.p-title3 {
    margin     : 0px 0px 15px 0px !important;
    font-size  : 22px !important;
    line-height: 160% !important;
    font-weight: normal !important;
    color      : #699b46 !important;
    font-family: フォーク R !important;
    padding    : 0px 0px 0px 0px !important;
    background : none !important;
}

@media screen and (max-width: 768px) {
    .service-guide h2.p-title2 {
        border-bottom  : 2px dotted #cac1af !important;
        color          : #3f2003;
        margin-bottom  : 15px !important;
        padding        : 0px 0 8px 30px !important;
        text-align     : left !important;
        line-height    : 140% !important;
        font-size      : 20px !important;
        font-weight    : normal !important;
        font-family    : フォーク M !important;
        background     : url(../../img/service/icon-mark2.png) left 4px no-repeat;
        background-size: 20px;
    }

    .service-guide h3.p-title3 {
        margin     : 0px 0px 15px 0px !important;
        font-size  : 18px !important;
        line-height: 160% !important;
        font-weight: normal !important;
        color      : #699b46 !important;
        font-family: フォーク R !important;
        padding    : 0px 0px 0px 0px !important;
    }
}

.jump_button {
    border         : solid 1px #80B659;
    color          : #80B659;
    display        : block;
    width          : 350px;
    line-height    : 2.5em;
    margin         : 20px auto;
    text-align     : center;
    text-decoration: none;
    border-radius  : 3px;
    transition     : .4s;

    @media screen and (max-width: 768px) {
        width: 100%;
    }
}

.p-text--sub {
    font-size: 0.9em;
}

.p-indent1 {
    display     : inline-block;
    padding-left: 1em;
    text-indent : -1em;
}

.p-buttons {
    display        : flex;
    justify-content: space-evenly;

    @media screen and (max-width: 768px) {
        flex-direction: column;
        gap           : 1em;
    }
}

.p-text--bold {
    font-weight: bold;
}

.p-text--small {
    font-size: 0.9em;
}

.p-text--large {
    font-size: 1.25em;
}

/* margin-top */
.mt_0 {
    margin-top: 0 !important;
}

.mt_10 {
    margin-top: 10px !important;
}

.mt_20 {
    margin-top: 20px !important;
}

.mt_30 {
    margin-top: 30px !important;
}

.mt_40 {
    margin-top: 40px !important;
}

.mt_50 {
    margin-top: 50px !important;
}

.mt_60 {
    margin-top: 60px !important;

    @media screen and (max-width: 768px) {
        margin-top: 30px !important;
    }
}

.mt_90 {
    margin-top: 90px !important;

    @media screen and (max-width: 768px) {
        margin-top: 45px !important;
    }
}

/* margin-bottom */
.mb_0 {
    margin-bottom: 0 !important;
}

.mb_10 {
    margin-bottom: 10px !important;
}

.mb_20 {
    margin-bottom: 20px !important;
}

.mb_30 {
    margin-bottom: 30px !important;
}

.mb_40 {
    margin-bottom: 40px !important;
}

.mb_50 {
    margin-bottom: 50px !important;
}

.mb_60 {
    margin-bottom: 60px !important;

    @media screen and (max-width: 768px) {
        margin-bottom: 30px !important;
    }
}

.mb_90 {
    margin-bottom: 90px !important;

    @media screen and (max-width: 768px) {
        margin-bottom: 45px !important;
    }
}

div#sec01,
div#sec02 {
    scroll-margin-top: 90px;
    /* PCナビ高さ */

    @media (max-width: 768px) {
        scroll-margin-top: 60px;
        /* SPナビ高さ */
    }
}

.p-text-link {
    color          : #007bff;
    text-decoration: underline;
}

.p-center {
    width        : fit-content;
    margin-inline: auto;

    @media screen and (max-width: 768px) {
        width: 100%;
    }
}

.p-right {
    margin-inline: auto 0;

    @media screen and (max-width: 768px) {
        margin-inline: auto;
    }
}

.p-left {
    width       : fit-content;
    margin-right: auto;

    @media screen and (max-width: 768px) {
        margin-inline: auto;
    }
}

.p-box-color {
    background-color: var(--bg-color);
    padding         : 1em;
    border-radius   : 5px;
}

.p-box-border {
    padding: 2rem;
    border : 1px solid var(--border-color);

    @media screen and (max-width: 768px) {
        padding: 1rem;
    }
}

/* 番号付きリスト */
ul.p-pattern__list__number {
    list-style   : none;
    counter-reset: number;
}

ul.p-pattern__list__number li {
    position     : relative;
    padding-left : 2em;
    margin-bottom: 1.2em;
    line-height  : 1.3em;
}

ul.p-pattern__list__number li::before {
    content          : counter(number);
    counter-increment: number;
    position         : absolute;
    left             : 0;
    top              : 0;
    width            : 1.5em;
    height           : 1.5em;
    line-height      : 1.5em;
    border-radius    : 50%;
    background       : #9BB4E0;
    color            : #fff;
    text-align       : center;
}

/* 横並びボタン */
.p-buttons {
    display        : flex;
    flex-wrap      : wrap;
    justify-content: center;
    gap            : 3rem;

    @media screen and (max-width: 768px) {
        gap: 2rem;
    }
}

h2.wood {
    @media screen and (min-width: 769px) {
        width              : 100%;
        height             : 104px;
        padding-top        : 56px;
        background-image   : url(../../img/borde.jpg);
        background-position: center top;
        background-repeat  : no-repeat;
        text-align         : center;
        line-height        : 1.2;
        font-size          : 36px;
        color              : #ffffff;
        font-family        : フォーク R;
        font-weight        : normal;
    }

    @media screen and (max-width: 768px) {
        width              : 100%;
        height             : 100px;
        background-image   : url(../../img/borde.jpg);
        background-position: center top;
        background-repeat  : no-repeat;
        background-size    : cover;
        text-align         : center;
        line-height        : 100px;
        font-size          : 20px;
        color              : #ffffff;
        font-family        : フォーク R;
        font-weight        : normal;
    }
}