/* =====================================================================
*
*	規約（利用、ソフトウェア使用許諾契約及び外部サービス利用）等
*	/page/index/id/terms
*	page/index/id/terms_service.tpl, terms_software.tpl, terms-sns.tpl からも参照
*
* =================================================================== */

.terms__index {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
}

.terms__index > li {
    box-sizing: border-box;
    width: 33.33%;
    border-right: 1px dotted #CCCCCC;
}

.terms__index > li:nth-child(-n+3) {
    border-bottom: 1px dotted #DDDDDD;
}

.terms__index > li:nth-child(3n),
.terms__index > li:last-child {
    border-right: none;
}

.terms__index .terms__index-link {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 100%;
    padding: 17px 10px 17px 16px;
    color: #333333;
    line-height: 14px;
    text-decoration: none;
}

.terms__index-link:hover {
    background-color: #FFEFE6;
}

.terms__index-link > span {
    flex: 1 1 auto;
    padding-right: 5px;
}

/* 下向き矢印（blcomp-textlink-arrow の下向き版） */
.terms__index-link::after {
    content: "";
    flex: none;
    width: 0;
    height: 0;
    border-top: 5px solid #FF5A00;
    border-right: 4px solid transparent;
    border-bottom: 0;
    border-left: 4px solid transparent;
}

@media (max-width: 950px) {
    .terms__index {
        display: block;
        overflow: visible;
        border: none;
        border-radius: 0;
    }

    .terms__index > li,
    .terms__index > li:nth-child(-n+3),
    .terms__index > li:nth-child(3n) {
        width: auto;
        padding-bottom: 10px;
        border: none;
    }

    .terms__index > li:last-child {
        padding-bottom: 0;
    }

    .terms__index .terms__index-link {
        display: inline-flex;
        padding: 0;
        line-height: 1.4;
    }

    .terms__index-link:hover {
        background-color: transparent;
    }

    .terms__index-link > span {
        flex: 0 1 auto;
        padding-right: 0;
    }

    .terms__index-link::after {
        order: -1;
        margin-right: 5px;
    }
}

/* ---------------------------------------------------------------
*	各規約の見出し
* ------------------------------------------------------------- */
.terms__section .blcomp-h3 {
    color: #FF6A00;
}

@media (max-width: 950px) {
    .terms__section .blcomp-h2 {
        margin-bottom: 15px;
        padding-bottom: 0;
        padding-left: 5px;
        border-left: 4px solid #FF5A00;
    }

    .terms__section .blcomp-h3 {
        margin-bottom: 10px;
        padding: 7px 5px 5px;
        background-color: #E6E6E6;
        color: inherit;
    }
}

/* ---------------------------------------------------------------
*	本文
* ------------------------------------------------------------- */
.terms__lead,
.terms__text {
    margin-bottom: 20px;
}

.terms__text + .terms__list {
    margin-top: -10px;
}

.terms__list {
    margin-bottom: 20px;
    padding-left: 25px;
    list-style: decimal outside none;
}

.terms__list > li {
    padding-bottom: 5px;
}

.terms__list ol,
.terms__list--lower-roman {
    list-style: lower-roman outside none;
}

.terms__list ol {
    margin-top: 5px;
    padding-left: 1.5em;
}

.terms__signature {
    text-align: right;
}

@media (max-width: 950px) {
    .terms__lead,
    .terms__text {
        margin-bottom: 15px;
    }

    .terms__text + .terms__list {
        margin-top: -5px;
    }

    .terms__list {
        margin-bottom: 15px;
        padding-left: 1.5em;
    }
}
