/*
 * ACF WYSIWYGの独自挿入テンプレート用スタイル。
 * テンプレート固有のclassには「c-wysiwyg-」prefixを使用してください。
 */

.c-content {

    /*-------- テキスト --------*/
    h3.editor,
    h4.editor {
        display: flex;
        align-items: flex-start;
        color: var(--main);
        line-height: 1.4;
        padding-bottom: 10px;
    }
    
    h3.editor {
        font-size: clamp(1.2rem, 1.127rem + 0.36vw, 1.4rem);
        margin-block: 0 1rem;
        border-bottom: 1px solid var(--main);
    }

    h3.editor::before {
        -webkit-mask: var(--icon-circle-dot) center / contain no-repeat;
        mask: var(--icon-circle-dot) center / contain no-repeat;
        margin: 6px 5px 0 0;
    }

    h4.editor {
        font-size: clamp(1.1rem, 1.064rem + 0.18vw, 1.2rem);
        margin: 1rem 0 0 0;
    }
    
    h4.editor::before {
        -webkit-mask: var(--icon-circle) center / contain no-repeat;
        mask: var(--icon-circle) center / contain no-repeat;
        font-size: 0.5rem;
        margin: 10px 5px 0 0;
    }

    .text-center {
        text-align: center;
    }

    .text-right {
        text-align: right;
    }

    span.text-red,
    p.text-red {
        color: #f30;
    }

    span.text-blue,
    p.text-blue {
        color: #03f;
    }

    span.text-green,
    p.text-green {
        color: #090;
    }

    span.text-big,
    p.text-big {
        font-size: 1.4rem;
    }

    span.text-middle,
    p.text-middle {
        font-size: 1.2rem;
    }

    span.text-small,
    p.text-small {
        font-size: 0.8rem;
    }

    /*-------- ボックス --------*/
    .box1,
    .box2,
    .box3 {
        text-align: justify;
        padding: 2% 3%;
        margin-block: 20px;
    }
    
    .box1 {
        border-radius: var(--border-radius-m);
        background: #fbfbfb;
    }

    .box2 {
        border: 1px solid #ddd;
    }

    .box3 {
        border: 1px solid #f1d8d4;
        border-radius: var(--border-radius-m);
        background: #faf3f2;
    }

    /*-------- カラム --------*/
    div[class^="column"] {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 2%;
        margin-bottom: 1.5rem;
    }

    div[class^="column"] .box {
        flex: 1;
        text-align: justify;
    }

    .column1 .box {
        border-radius: var(--border-radius-m);
        background: #fbfbfb;
    }

    .column2 .box {
        border-radius: var(--border-radius-m);
        border: 1px solid var(--color-border);
    }

    /* 2個 */
    div[class^="column"]:has(> .box:nth-child(2):last-child) > .box {
        padding: 1.5rem;
    }

    /* 3個 */
    div[class^="column"]:has(> .box:nth-child(3):last-child) > .box {
        padding: 1.25rem;
    }

    /* 4個 */
    div[class^="column"]:has(> .box:nth-child(4):last-child) > .box {
        padding: 1rem;
    }

    /* 5個・6個 */
    div[class^="column"]:has(> .box:nth-child(5):last-child) > .box,
    div[class^="column"]:has(> .box:nth-child(6):last-child) > .box {
        padding: 0.5rem;
    }
    
    div[class^="column"]:has(> .box:nth-child(5):last-child) > .box h4,
    div[class^="column"]:has(> .box:nth-child(6):last-child) > .box h4 {
        font-size: 1.1rem;
    }

    div[class^="column"] h4 {
        position: relative;
        color: var(--main);
        font-size: clamp(1.1rem, 1.064rem + 0.18vw, 1.2rem);
        font-weight: 400;
        padding-left: 1em;
        padding-bottom: 0.5rem;
        margin-block: 0 0.5rem;
        border-bottom: 1px dotted #ccc;
    }
    
    div[class^="column"] h4::before {
        -webkit-mask: var(--icon-ellipsis-vertical) center / contain no-repeat;
        mask: var(--icon-ellipsis-vertical) center / contain no-repeat;
        position: absolute;
        top: 0.1rem;
        left: 0;
        font-size: 1.3rem;
    }
    
    @media (max-width: 70rem) {
        div[class^="column"]:has(> .box:nth-child(6):last-child) > .box {
            flex: 0 0 23.5%;
        }
    }
    
    @media (max-width: 60rem) {
        div[class^="column"]:has(> .box:nth-child(4):last-child) > .box,
        div[class^="column"]:has(> .box:nth-child(5):last-child) > .box,
        div[class^="column"]:has(> .box:nth-child(6):last-child) > .box {
            flex: 0 0 32%;
        }
    }

    @media (max-width: 45rem) {
        div[class^="column"]:has(> .box:nth-child(3):last-child) > .box,
        div[class^="column"]:has(> .box:nth-child(4):last-child) > .box,
        div[class^="column"]:has(> .box:nth-child(5):last-child) > .box,
        div[class^="column"]:has(> .box:nth-child(6):last-child) > .box {
            flex: 0 0 48%;
        }
    }

    @media (max-width: 33.5rem) {
        div[class^="column"]:has(> .box:nth-child(2):last-child) > .box,
        div[class^="column"]:has(> .box:nth-child(3):last-child) > .box,
        div[class^="column"]:has(> .box:nth-child(4):last-child) > .box,
        div[class^="column"]:has(> .box:nth-child(5):last-child) > .box,
        div[class^="column"]:has(> .box:nth-child(6):last-child) > .box {
            flex: 0 0 100%;
        }
    }

    /*-------- リスト --------*/
    .list1 {
        color: #333;
        margin-block: 0 1rem;
    }

    .list1 li {
        position: relative;
        list-style: none;
        padding: 0.4rem 0 0.4rem 1.4em;
    }

    .list1 li + li {
        border-top: 1px dotted #ccc;
    }

    .list1 li::before {
        -webkit-mask: var(--icon-square-check) center / contain no-repeat;
        mask: var(--icon-square-check) center / contain no-repeat;
        position: absolute;
        top: 0.6rem;
        left: 0;
        font-size: 1.3rem;
    }

    .list2 {
        counter-reset: li;
        color: #333;
        margin-block: 1rem;
    }

    .list2 li {
        position: relative;
        list-style: none;
        padding: 0.4rem 0 0.4rem 1.4em;
    }

    .list2 li::before {
        content: counter(li, decimal) ". ";
        counter-increment: li;
        color: var(--sub);
        position: absolute;
        left: 0;
    }

    /*-------- ボタン --------*/
    .btn1,
    .btn2 {
        display: flex;
        width: fit-content;
        color: #fff;
        padding: 0.5rem 1rem;
        margin-block: 1rem;
        border-radius: var(--border-radius-s);
        background: var(--link);
    }

    .btn1::before,
    .btn2::before {
        -webkit-mask: var(--icon-circle-chevron-right) center / contain no-repeat;
        mask: var(--icon-circle-chevron-right) center / contain no-repeat;
        block-size: auto;
        margin-inline-end: 0.3rem;
        color: var(--main);
    }

    .btn1:hover,
    .btn2:hover {
        background: var(--link-hover);
    }

    .btn1:hover::before,
    .btn2:hover::before {
        color: var(--link);
    }

    .btn2::after {
        -webkit-mask: var(--icon-clone) center / contain no-repeat;
        mask: var(--icon-clone) center / contain no-repeat;
        block-size: auto;
        color: #fff;
        margin-inline-start: 0.3rem;
    }

    /*-------- スペース --------*/
    .line-list1 {
        height: 0.5rem;
        margin-block: 1rem;
        background-image: repeating-linear-gradient(45deg, #ccc 0, #ccc 1px, transparent 0, transparent 50%);
        background-size: 8px 8px;
        border: none;
    }

    .space20 {
        height: 1.5rem;
        border: none;
    }
    
    .space30 {
        height: 2rem;
        border: none;
    }
    
    .space40 {
        height: 2.5rem;
        border: none;
    }

}
