@charset "utf-8";

/*———————————
相談事例ページ
———————————*/

.sec-casesMain {
    color: var(--cl-brown);
}

.sec-casesHero {
    padding-bottom: 68px;

    .st-notice {
        max-width: 720px;
        margin: 20px auto 0;
        color: rgba(111, 82, 54, 0.72);
        font-size: 1.4rem;
        line-height: 1.8;

        @media (max-width:768px) {
            font-size: 1.3rem;
            text-align: left;
        }
    }
}

.sec-casesList {
    background-color: #E8F5F1;

    .sec-pageSection_inner {
        display: grid;
        gap: 24px;
        max-width: 580px;
    }
}

.bl-caseItem {
    overflow: hidden;
    border: 1px solid rgba(var(--cl-main-rgb) / 0.14);
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(var(--cl-main-rgb) / 0.1);

    &[open] {
        .bl-caseSummary {
            border-bottom-color: rgba(111, 82, 54, 0.13);

            .st-toggle::after {
                transform: translate(-50%, -32%) rotate(-135deg);
            }
        }
    }
}

.bl-caseSummary {
    min-height: 158px;
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 24px;
    align-items: center;
    position: relative;
    padding: 30px;
    border-bottom: 1px solid transparent;
    list-style: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;

    &::-webkit-details-marker {
        display: none;
    }

    &:hover {
        background-color: #FAFCF8;
    }

    &:focus-visible {
        outline: 3px solid rgba(var(--cl-main-rgb) / 0.35);
        outline-offset: -3px;
    }

    >.st-content {
        display: block;
        min-width: 0;
    }

    >.st-content >.st-kicker {
        display: inline-flex;
        width: auto;
        overflow: hidden;
        margin-bottom: 10px;
        padding: 0;
        border-radius: 999px;
        background-color: transparent;
        box-shadow: inset 0 0 0 1px rgba(239, 159, 98, 0.38);
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        line-height: 1.3;
        vertical-align: top;

        .st-type,
        .st-category {
            display: grid;
            place-content: center;
            min-height: 30px;
            padding: 4px 13px;
            white-space: nowrap;
        }

        .st-type {
            background-color: var(--cl-orange);
            color: #fff;
        }

        .st-category {
            background-color: rgba(239, 159, 98, 0.06);
            color: var(--cl-orange);
        }
    }

    >.st-content >.st-ttl {
        display: block;
        margin-bottom: 18px;
        color: var(--cl-brown);
        font-size: 2.3rem;
        font-weight: 700;
        line-height: 1.55;
    }

    .st-toggle {
        width: 46px;
        height: 46px;
        display: block;
        position: relative;
        border-radius: 50%;
        background-color: #F4F9EE;

        &::after {
            content: "";
            width: 11px;
            height: 11px;
            position: absolute;
            top: 50%;
            left: 50%;
            border-right: 3px solid var(--cl-main);
            border-bottom: 3px solid var(--cl-main);
            transform: translate(-50%, -65%) rotate(45deg);
            transition: transform 0.2s;
        }
    }

    @media (max-width:768px) {
        min-height: 0;
        display: block;
        padding: 24px 20px;

        >.st-content >.st-ttl {
            margin-bottom: 16px;
            font-size: 1.8rem;
        }

        >.st-content >.st-kicker {
            margin-bottom: 8px;
            padding: 0;
            font-size: 1.3rem;

            .st-type,
            .st-category {
                min-height: 26px;
                padding: 3px 10px;
            }
        }

        .st-toggle {
            width: 38px;
            height: 38px;
            position: absolute;
            top: 18px;
            right: 20px;

            &::after {
                width: 9px;
                height: 9px;
            }
        }
    }
}

.bl-caseMeta {
    display: grid;
    gap: 8px;

    .st-item {
        display: flex;
        gap: 10px;
        align-items: baseline;
        position: relative;
        padding-left: 18px;
        font-size: 1.6rem;
        line-height: 1.6;

        &::before {
            content: "";
            width: 0;
            height: 0;
            position: absolute;
            top: 0.55em;
            left: 0;
            border-top: 6px solid transparent;
            border-bottom: 6px solid transparent;
            border-left: 9px solid currentColor;
        }

        &.st-orange {
            color: var(--cl-orange);
        }

        &.st-blue {
            color: var(--cl-blue);
        }

        &.st-yellow {
            color: #DCA52E;
        }
    }

    .st-label {
        flex: 0 0 auto;
        font-weight: 700;
    }

    .st-value {
        color: var(--cl-brown);
    }

    @media (max-width:768px) {
        gap: 7px;

        .st-item {
            display: grid;
            grid-template-columns: max-content 1fr;
            gap: 8px;
            padding-left: 15px;
            font-size: 1.6rem;

            &::before {
                top: 0.5em;
                border-top-width: 5px;
                border-bottom-width: 5px;
                border-left-width: 7px;
            }
        }

        .st-label {
            margin-right: 0;
        }
    }
}

.bl-caseBody {
    padding: 30px 30px 36px;

    @media (max-width:768px) {
        padding: 20px 20px 24px;
    }
}

.bl-caseVisual {
    width: 100%;
    overflow: hidden;
    margin: 0 0 28px;
    aspect-ratio: 16 / 9;
    border-radius: var(--kadomaru);
    background-color: #E5E5E2;

    img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    @media (max-width:768px) {
        margin-bottom: 20px;
    }
}

.bl-caseStories {
    display: grid;
    gap: 0;
}

.bl-caseStory {
    padding-block: 28px;

    &:first-child {
        padding-top: 0;
    }

    &:last-child {
        padding-bottom: 0;
    }

    & + & {
        border-top: 1px solid #DEDEDE;
    }

    .st-ttl {
        display: flex;
        flex-wrap: wrap;
        gap: 7px 12px;
        align-items: baseline;
        margin-bottom: 20px;
        font-size: 1.7rem;
        font-weight: 700;
        line-height: 1.5;

        strong {
            font-size: 2.5rem;
            letter-spacing: 0.05em;
        }
    }

    p,
    li {
        color: var(--cl-brown);
        font-size: 1.6rem;
        line-height: 2;
    }

    p + p {
        margin-top: 1.35em;
    }

    mark {
        padding-inline: 0.22em;
        background: linear-gradient(transparent 0%, rgba(248, 203, 98, 0.38) 10% 100%, transparent 100%);
        color: inherit;
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
    }

    ul {
        display: grid;
        gap: 8px;
        padding-left: 0;
    }

    li {
        position: relative;
        padding-left: 20px;

        &::before {
            content: "";
            width: 7px;
            height: 7px;
            position: absolute;
            top: 0.82em;
            left: 2px;
            border-radius: 50%;
            background-color: var(--cl-sub);
        }
    }

    &.st-orange {
        .st-ttl {
            color: var(--cl-orange);
        }
    }

    &.st-blue {
        .st-ttl {
            color: var(--cl-blue);
        }
    }

    &.st-yellow {
        .st-ttl {
            color: #DCA52E;
        }
    }

    @media (max-width:768px) {
        padding-block: 24px;

        .st-ttl {
            margin-bottom: 20px;
            font-size: 1.5rem;

            strong {
                font-size: 2.1rem;
            }
        }

        p,
        li {
            font-size: 1.5rem;
            line-height: 1.9;
        }
    }
}

.bl-casePrivacy {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: var(--kadomaru);
    background-color: rgba(255, 255, 255, 0.72);
    color: rgba(111, 82, 54, 0.72);
    font-size: 1.3rem;
    line-height: 1.8;

    @media (max-width:768px) {
        padding: 12px 14px;
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bl-caseSummary,
    .bl-caseSummary .st-toggle::after {
        transition: none;
    }
}
