@charset "utf-8";

.single .content-wrapper article,
.archive .content-wrapper article,
.blog .content-wrapper article {
    display: grid;
    grid-template-columns: 1fr;
    transition: var(--ts-all);

    @media screen and (min-width: 768px) {
        grid-template-columns: 1fr minmax(200px, 14em);
        gap: 0 6%;

        .entry-header {
            grid-area: 1 / 1 / 2 / 3;
        }
        main {
            grid-area: 2 / 1 / 3 / 2;
        }
        aside {
            grid-area: 2 / 2 / 3 / 3;

            position: sticky;
            top: calc(var(--header-h-min) * 2);
            align-self: flex-start;
        }
    }
    @media screen and (min-width: 1200px) {
        grid-template-columns: 7.5fr 2.5fr;
        gap: 0 8%;
    }

    .entry-header {
        position: relative;
        margin-bottom: 3rem;

        &::before,
        &::after {
            position: absolute;
            bottom: 0;
            left: -0.5rem;
            display: block;
            content: "";
            width: calc(100% + 0.5rem);
            height: 2px;
            background: color-mix(in srgb, var(--bg-sub), #000 10%);
            z-index: 1;
        }
        &::after {
            width: 15%;
            min-width: 90px;
            background: color-mix(in srgb, var(--pri-d), var(--pri) 30%);
            z-index: 2;
        }
    }

    main {
        margin-bottom: 3rem;

        .entry-content {
            > * + * {
                margin-top: 1.2rem;
            }
        }
    }
    .sidebar .widget {
        margin-bottom: 2.5rem;

        .wp-block-group {
            display: block !important;
            width: 100%;
        }

        h2.widget-title,
        h3 {
            display: block;
            padding: 0 0.4em 0.5em;
            font-size: var(--fz-h5);
            font-weight: 800;
            color: color-mix(in srgb, var(--txt), var(--bg) 40%);

            &::before {
                margin-right: 0.5em;
                font-family: "Font Awesome 6 Free";
                color: color-mix(in srgb, var(--bg-sub), #000 15%);
                font-weight: 900;
            }
        }

        h2.widget-title::before {
            content: "\f05a";
        }
        h3::before {
            content: "\f133";
        }

        ul {
            display: block;
            width: 100%;
            border-top: 2px solid color-mix(in srgb, var(--bg-sub), #000 10%);

            > li {
                position: relative;
                display: block;
                width: 100%;

                &::before,
                &::after {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    display: block;
                    content: "";
                    width: 100%;
                    height: 1px;
                    background: color-mix(in srgb, var(--bg-sub), #000 10%);
                    z-index: 1;
                }
                &::after {
                    width: 15%;
                    height: 2px;
                    background: color-mix(in srgb, var(--pri-d), var(--pri) 30%);
                    z-index: 2;

                    transform: scale(0, 1);
                    transform-origin: bottom left;
                    transition: var(--ts-all);
                }
                &:hover::after {
                    transform: scale(1, 1);
                }

                a {
                    display: block;
                    padding: 1em 0.5em;
                    line-height: var(--lh-tight);
                }
            }
        }
    }
}

/* -------------------------------------------- */
/* 記事 .single */
/* -------------------------------------------- */

.single .content-wrapper article {
    .entry-header {
        .entry-date {
            display: block;
            text-align: right;
            font-size: 85%;
            font-weight: var(--ff-base-b);
            line-height: 1;
            letter-spacing: 0.1em;
            color: color-mix(in srgb, var(--txt), var(--bg) 50%);
        }

        h2 {
            padding-block: 0.2em 1em;
            font-size: calc(var(--fz-base) * 2.5);
            font-weight: 700;
            line-height: var(--lh-tight);
        }
    }
}

.entry-eye-catch {
    width: 100%;
    aspect-ratio: 3 / 2;
    margin-bottom: 3rem;
    overflow: clip;
    border-radius: var(--radius-l);

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

/* -------------------------------------------- */
/* 一覧 .archive .home */
/* -------------------------------------------- */

.archive .content-wrapper article,
.blog .content-wrapper article {
    .entry-header {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.5rem 2rem;
        padding-bottom: 1.5rem;

        h2 {
            line-height: var(--lh-tight);
        }
    }
}

.post-list {
    .post-item {
        position: relative;
        display: block;

        &::before,
        &::after {
            position: absolute;
            bottom: 0;
            left: -0.5rem;
            display: block;
            content: "";
            width: calc(100% + 0.5rem);
            height: 1px;
            background: color-mix(in srgb, var(--bg-sub), #000 10%);
            z-index: 1;
        }
        &::after {
            width: 15%;
            min-width: 90px;
            height: 2px;
            background: color-mix(in srgb, var(--pri-d), var(--pri) 30%);
            z-index: 2;

            transform: scale(0, 1);
            transform-origin: bottom left;
            transition: var(--ts-all);
        }
        &:hover::after {
            transform: scale(1, 1);
        }

        .post-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            padding-block: 0.5rem;
            padding-right: 0.5rem;
            color: var(--txt);

            .post-body {
                width: 100%;
                text-align: left;

                .post-meta {
                    display: flex;
                    flex-wrap: wrap;
                    align-items: center;
                    padding-block: 1.2rem 0.8rem;

                    .post-date {
                        flex: 0 0 13ch;
                        font-size: 85%;
                        font-weight: var(--ff-base-b);
                        letter-spacing: 0.1em;
                        color: color-mix(in srgb, var(--txt), var(--bg) 50%);
                    }

                    .post-category {
                        padding: 0.1em 0.8em;
                        font-size: 80%;
                        font-feature-settings: "palt";
                        border-radius: 0.3em;
                    }
                    .news {
                        background: color-mix(in srgb, var(--bg-sub), var(--pri-d) 10%);
                    }
                    .salon-topics {
                        background: color-mix(in srgb, var(--pri), var(--bg) 30%);
                    }
                }
                .post-title {
                    padding-bottom: 1.5rem;
                    font-family: var(--ff-base);
                    font-size: var(--fz-h5);
                    font-weight: var(--ff-base-b);
                }
            }

            .post-thumbnail {
                width: 100%;
                max-width: 300px;
                aspect-ratio: 3 / 2;

                img {
                    display: block;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    border-radius: var(--radius-m);
                }
            }

            @media screen and (min-width: 500px) {
                flex-direction: row;
                justify-content: space-between;
                align-items: flex-start;

                .post-body {
                    flex: 1;
                    padding-right: 2rem;
                }

                .post-thumbnail {
                    width: 25%;
                }
            }
        }
    }
}
