@charset "utf-8";
/* CSS Document */
/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
ターム タクソノミー タグ
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

/* ターム */
ul.tag_list {
    display: flex;
    flex-wrap: wrap;
    line-height: 1.5;
    font-size: 1.2rem;
    gap: 0.6rem 0.8rem;

    li.tag_wrap {
        /* リンクなし */
        span {
            display: block;
            padding: 0.1em 0.75em 0.2em;
            font-weight: 500;
            background-color: #eceef2;
            border-radius: 0.4rem;
            color: var(--color-base);
        }
        /* リンクあり */
        a.tag {
            display: block;
            padding: 0.1em 0.75em 0.2em;
            font-weight: 500;
            background-color: #eceef2;
            border-radius: 0.4rem;
            color: var(--color-base);
            &:hover {
                background-color: var(--color-green-hover);
                opacity: 1;
                color: #fff;
            }
        }
    }
}

/* ページ内リンク */
.pagelink_tax_wrap {
    display: flex;
    gap: 1.2rem min(2%, 1.8rem);
    flex-wrap: wrap;
    li {
        min-width: 18.4%;
        @media screen and (max-width: 480px) {
            width: 100%;
        }
        a {
            box-sizing: border-box;
            border: 1px solid #fff;
            background-color: #f4f4f4;
            display: block;
            font-size: 1.6rem;
            line-height: 1.5;
            padding: 1.0625em 1.25em;
            letter-spacing: 0.09em;
            color: var(--color-base);
            border-radius: 0.4rem;
            box-shadow:
                1px 1px 2px rgba(224, 224, 224, 0.2),
                -1px -1px 2px rgba(224, 224, 224, 0.2),
                1px -1px 2px rgba(255, 255, 255, 0.9),
                -1px 1px 3px rgba(224, 224, 224, 0.9);
            &:hover {
                border-color: var(--color-green-hover);
            }

            @media screen and (max-width: 480px) {
                font-size: 1.4rem;
                padding: 0.75em 1em;
            }
            span {
                display: inline-block;
                padding-left: 1.875em;
                position: relative;
                &::before {
                    content: "";
                    display: block;
                    position: absolute;
                    width: 0.875em;
                    height: 0.1875em;
                    left: 0;
                    top: 50%;
                    transform: translateY(-50%);
                }
            }
            &.current {
                border-color: var(--color-green-hover);
                color: var(--color-green-hover);
            }
        }
    }
}

/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
ナビゲーション
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

/* ページ一覧 */
body.archive {
    .pagination {
    }
}
/* シングルページ */
body.single {
    .post_nav {
        margin-top: 8.8rem;
        @media screen and (max-width: 480px) {
            margin-top: 4rem;
        }
        .post_nav_list {
            display: flex;
            justify-content: center;
            gap: 9.5rem;
            @media screen and (max-width: 480px) {
                gap: 4rem;
            }
            li {
                a {
                    display: block;
                    font-size: 1.6rem;
                    @media screen and (max-width: 480px) {
                        font-size: 1.4rem;
                    }
                    border: 1px solid var(--color-base);
                    border: 2px solid var(--color-base);
                    border-radius: 0.8rem;
                    padding: 0.875em 1em;
                    span {
                        display: inline-block;
                        position: relative;
                        &::before {
                            content: "";
                            display: block;
                            position: absolute;
                            width: 0.5em;
                            aspect-ratio: 1/1;
                            border-top: 2px solid var(--color-base);
                            border-right: 2px solid var(--color-base);
                            top: 50%;
                        }
                    }
                    &:hover {
                        border-color: var(--color-green-hover);

                        span {
                            &::before {
                                border-color: var(--color-green-hover);
                            }
                        }
                    }
                }
                &.prev {
                    a {
                        span {
                            padding-left: 2.125em;
                            &::before {
                                left: 0.375em;
                                transform: rotate(-135deg) translateY(50%);
                            }
                        }
                    }
                }
                &.next {
                    a {
                        span {
                            padding-right: 2.125em;
                            &::before {
                                right: 0.625em;
                                transform: rotate(45deg) translateY(-50%);
                            }
                        }
                    }
                }
            }
        }
    }
}
/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
投稿内容部分 page.php single.php　共通
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/
body.page .the_content,
body.single .the_content {
    font-size: 1.8rem;
    line-height: 1.7;
    @media screen and (max-width: 480px) {
        font-size: 1.4rem;
    }
    *:first-child {
        margin-top: 0;
    }
    *:last-child {
        margin-bottom: 0;
    }
    /*--------------------*/
    /* 本文 */
    p {
        margin: 1.7em 0;
        font-size: 1em;

        /* 背景がある場合 */
        &.has-background {
            padding: 1.25em 2em;

            @media screen and (max-width: 480px) {
                padding: 1em 1.25em;
            }
        }
    }

    /*--------------------*/
    /* タイトル */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        line-height: 1.5;
        margin: 1.25em 0;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.75em;
    }

    h3 {
        font-size: 1.5em;
    }

    h4 {
        font-size: 1.25em;
    }

    h5,
    h6 {
        font-size: 1em;
    }

    h6 {
        color: #666;
    }

    /*--------------------*/
    /* リスト */
    ul {
        list-style-type: disc;
    }

    ol {
        list-style-type: decimal;
    }

    ul,
    ol {
        padding: 0 0 0 2em;
        margin: 2em 0;

        &li {
            margin: 0.5em 0;
        }
    }
    a {
        text-decoration: underline;
    }
    img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 1em;
    }
    blockquote {
        font-style: italic;
        margin: 1.7em 0;
        padding: 0.5em 0 0.5em 2em;
        color: #666;
        border-left: 2px solid var(--color-base);
    }

    /* テーブル */
    table {
        margin: 1.7em 0;
        background-color: #fff;

        td,
        th {
            border: 1px solid var(--color-base);
            padding: 0.25em 0.5em;
        }
        caption {
            font-weight: 700;
            margin-bottom: 0.5em;
        }
    }

    /*--------------------*/
    /* テキスト付き要素 */
    figure {
        /* 画像 */
        /* 埋込要素 */
        &.wp-block-image,
        &.wp-block-embed {
            margin: 6rem auto;

            @media screen and (max-width: 480px) {
                margin: 3rem auto;
            }
        }

        /* テーブル */
        &.wp-block-table {
            margin: 3em 0;

            @media screen and (max-width: 480px) {
                margin: 2em 0;
            }

            /* 通常のテーブル */
            &.is-style-regular {
                table {
                    border: 2px solid #000;
                }
            }
        }

        /* テーブル・画像などのキャプション */
        figcaption {
            &.wp-element-caption {
                font-size: 0.75em;
                color: #333;
                margin-top: 0.5em;
            }
        }
    }

    /*--------------------*/
    /* ボタン */

    .wp-block-buttons {
        margin: 4em 0;

        .wp-block-button {
            margin: 0.25em;

            .wp-block-button__link {
                min-width: 10em;
                background-color: lightblue;
            }
        }
    }

    /* ファイル */

    .wp-block-file {
        margin: 2em 0;

        .wp-block-file__button {
            padding: 0.25em 1em;
            background-color: var(--color-green-hover);
            color: #fff;
        }
    }
}

/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
single.php
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

body.single,
body.single-news {
    .page_title_copy_wrap.single {
        display: block;
        .data_wrap {
            margin-top: 1.4rem;
            time {
                display: block;
                font-size: 1.8rem;
                font-weight: 600;
                line-height: 1.5;
                letter-spacing: 0.05em;
                padding-left: 0.5em;
                @media screen and (max-width: 480px) {
                    font-size: 1.3rem;
                }
            }
            ul.tag_list {
                margin-top: 2.1rem;
                @media screen and (max-width: 480px) {
                    margin-top: 1rem;
                }
            }
        }
    }

    #contents_area {
        .content_has_sidebar {
            display: flex;
            gap: min(2%, 2.6rem);
            justify-content: space-between;

            @media screen and (max-width: 480px) {
                flex-direction: column-reverse;
                justify-content: flex-start;
            }
            /* サイドバー */
            .sidebar {
                max-width: 32.6rem;
                width: 28.3%;
                @media screen and (max-width: 480px) {
                    max-width: 100%;
                    width: 100%;
                    margin-top: 3rem;
                }
                h4 {
                    font-size: 1.3rem;
                    font-weight: 500;
                    letter-spacing: 0.1em;
                    margin-bottom: 1em;
                    margin-top: 4rem;
                    &:first-child {
                        margin-top: 0;
                    }
                }
                /* タクソノミー */
                ul.side_list_tax {
                    border-top: 1px solid var(--color-base);
                    li {
                        a {
                            display: block;
                            position: relative;
                            font-size: 1.7rem;
                            line-height: 1.5;
                            padding: 0.9em 0 1.1em 2em;
                            border-bottom: 1px solid var(--color-base);
                            @media screen and (max-width: 480px) {
                                font-size: 1.4rem;
                            }
                            &::before {
                                content: "";
                                display: block;
                                position: absolute;
                                width: 1rem;
                                aspect-ratio: 1/1;
                                border-radius: 999px;
                                box-sizing: border-box;
                                background-color: #4b5563;
                                border: 2px solid #a5aab4;
                                left: 0.7em;
                                top: 50%;
                                transform: translateY(-50%);
                            }
                            &.allvew,
                            &:hover {
                                border-color: var(--color-green-hover);
                                &::before {
                                    background-color: var(--color-green-hover);
                                    border-color: #a6a9ff;
                                }
                            }
                            &.allvew {
                                color: var(--color-green-hover);
                            }
                        }
                    }
                }
                /* 最新記事 */
                ul.side_list_news {
                    border-top: 1px solid var(--color-base);
                    padding-top: 0.8rem;
                    li {
                        font-size: 1.4rem;
                        line-height: 1.5;
                        margin: 0.85em 0;
                        a {
                            text-decoration: underline;
                        }
                    }
                }
                /* アーカイブジャンプ */
                .side_jump_archive {
                    border-top: 1px solid var(--color-base);
                    text-align: left;
                    padding-top: 1rem;
                    label {
                        position: relative;
                        display: inline-block;
                        margin: 0.5rem 0 0;
                        &::after {
                            content: "";
                            position: absolute;
                            right: 1.2rem;
                            top: 50%;
                            transform: translateY(-50%);
                            width: 0;
                            height: 0;
                            border-left: 0.5rem solid transparent;
                            border-right: 0.5rem solid transparent;
                            border-top: 0.6rem solid #4b5563;

                            pointer-events: none; /* 重要 */
                        }
                        select {
                            appearance: none;
                            border: none;
                            text-align: center;
                            background-color: #f3f4f6;
                            font-size: 2.5rem;
                            font-weight: 400;
                            padding: 0.5em 1.2em 0.5em 0.75em;
                            border-radius: 0.8rem;
                            color: var(--color-base);
                        }
                    }
                    span {
                        display: inline-block;
                        font-size: 1.5rem;
                        font-weight: 600;
                        margin: 0 1em 0 0.5em;
                        vertical-align: -0.5em;
                    }
                }
            }
            /* エントリー内容 */
            .content_wrap {
                max-width: 79.9rem;
                width: 69.5%;
                @media screen and (max-width: 480px) {
                    width: 100%;
                }
                .post_thumbnail {
                    margin-bottom: 5.6rem;
                    @media screen and (max-width: 480px) {
                        margin-bottom: 4rem;
                    }
                }
                /* .subheading {
                    font-size: 2.3rem;
                    letter-spacing: 0.09em;
                    line-height: 1.55;
                    font-weight: 500;
                    margin-bottom: 2.8rem;
                    @media screen and (max-width: 480px) {
                        font-size: 1.6rem;
                        margin-bottom: 2.4rem;
                    }
                } */
            }
        }
    }

    /* PDFファイル */
    .pdf_link_wrap {
        font-size: 1.8rem;
    }
}
/*〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
エントリー一覧
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓*/

body.archive {
    #contents_wrap {
        overflow: hidden;
    }
    .entry_list_wrap {
        .entry_list {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            position: relative;
            &::after {
                content: "";
                display: block;
            }
        }
        .pagination {
            margin-top: 5.6rem;
            text-align: center;
            span,
            a {
                font-size: 1.6rem;
                font-family: "Barlow", sans-serif;
                display: inline-block;
                min-width: 2em;
                line-height: 2;
                text-align: center;
                border-radius: 0.8rem;
                &.current {
                    background-color: var(--color-base);
                    color: #fff;
                }
                &.next,
                &.prev {
                    position: relative;
                    span {
                        font-size: 0;
                    }
                    &::after {
                        content: "";
                        display: block;
                        position: absolute;
                        width: 0.75rem;
                        aspect-ratio: 1/1;
                        transform-origin: center center;
                        transform: rotate(45deg) translate(-50%, 0);
                        top: 50%;
                    }
                    &:hover {
                        &::after {
                            border-color: var(--color-green-hover);
                        }
                    }
                }
                &.next {
                    &::after {
                        border-right: 1px solid var(--color-base);
                        border-top: 1px solid var(--color-base);
                        right: 25%;
                    }
                }
                &.prev {
                    &::after {
                        transform: rotate(45deg) translate(-50%, 0);
                        border-left: 1px solid var(--color-base);
                        border-bottom: 1px solid var(--color-base);
                        left: 25%;
                    }
                }
            }
        }
    }
    /*--------------------*/
    /* ニュース */
    &.post-type-archive-news,
    &.tax-news_tax {
        .news_list {
            &::after {
                max-width: 36.5rem;
                width: 31.7%;
            }
            .news_item {
                max-width: 36.5rem;
                width: 31.7%;
                margin-bottom: 2.9rem;
                @media screen and (max-width: 726px) {
                    width: 48%;
                }
                @media screen and (max-width: 480px) {
                    width: 100%;
                }
                a.permalink {
                    display: block;
                    height: 100%;
                    box-sizing: border-box;
                    background-color: #fff;
                    border: 1px solid #b3c1cf;
                    color: var(--color-base);
                    &:hover {
                        border-color: var(--color-green-hover);
                        opacity: 1;
                        box-shadow: 0px 0px 17.4px rgba(0, 0, 0, 0.17);
                    }
                    .thumb {
                        aspect-ratio: 363/177;
                    }
                    .entry_data_wrap {
                        padding: 1.4rem 2.4rem;
                        @media screen and (max-width: 480px) {
                            padding: 1.2rem 2rem;
                        }
                        .postdate {
                            font-size: 1.4rem;
                            letter-spacing: 0.05em;
                            margin-bottom: 0.86em;
                            display: block;
                            @media screen and (max-width: 480px) {
                                font-size: 1.2rem;
                                margin-bottom: 0.5em;
                            }
                        }
                        .title {
                            font-size: 1.7rem;
                            line-height: 1.5;
                            color: var(--color-green-hover);
                            padding-bottom: 0.647em;
                            /* border-bottom: 1px solid #b3c1cf; */
                            /* margin-bottom: 1em; */
                            @media screen and (max-width: 480px) {
                                font-size: 1.6;
                                padding-bottom: 0.5em;
                                /* margin-bottom: 0.75em; */
                            }
                        }
                        /* .subheading {
                            font-size: 1.6rem;
                            line-height: 1.5;
                            @media screen and (max-width: 480px) {
                                font-size: 1.4rem;
                            }
                        } */
                        .tag_list {
                            margin-top: 1.5rem;
                        }
                    }
                }
            }
        }
    }
    /*--------------------*/
    /* 導入事例 */
    &.post-type-archive-case,
    &.tax-case_tax,
    &.tax-case_tag {
        .page_link_wrap {
            margin-bottom: 4rem;
            @media screen and (max-width: 480px) {
                margin-bottom: 4rem;
            }
            .pagelink_tax_wrap {
                li {
                    a {
                        span {
                            &::before {
                                background-color: var(--color-green-hover);
                            }
                        }
                    }
                }
            }
        }
        .case_list {
            &::after {
                max-width: 32.6rem;
                width: 28.3%;
            }
            .case_item {
                max-width: 32.6rem;
                width: 28.3%;
                margin-bottom: 9.2rem;
                @media screen and (max-width: 768px) {
                    width: 45%;
                }
                @media screen and (max-width: 480px) {
                    width: 100%;
                    margin-bottom: 6rem;
                }
                .thumb {
                    border: 1px solid #a4a5a9;
                    margin-bottom: 2rem;
                    aspect-ratio: 324/243;
                }
                .entry_data_wrap {
                    font-size: 1.6rem;
                    line-height: 1.625;
                    @media screen and (max-width: 480px) {
                        font-size: 1.4rem;
                    }
                    .title {
                        font-size: 1.6rem;
                        line-height: 1.5;
                        font-weight: 500;
                    }
                    .case_study {
                        margin: 0.7rem 0;
                        font-size: 1.4rem;
                        line-height: 1.5;
                        color: #a4a5a9;
                        @media screen and (max-width: 480px) {
                            font-size: 1.3rem;
                        }
                    }
                    .tag_list {
                        margin: 1rem 0;
                    }
                    .point {
                        max-width: 32.2rem;
                        margin: 1.625em auto;
                    }
                    .title-detail {
                        margin: 1.625em auto 2.2rem;
                        line-height: 1.5;
                        font-weight: 500;
                        max-width: 32.2rem;
                    }
                    .detail {
                        max-width: 32.2rem;
                        margin: auto;
                    }
                    .voice_wrap {
                        background-color: #fff;
                        border-radius: 3.2rem;
                        padding: 2.875em 1.5em 1.5em;
                        margin: 2.375em auto 0;
                        position: relative;
                        .title-voice {
                            line-height: 1;
                            font-weight: 500;
                            position: absolute;
                            left: 0;
                            top: 0;
                            background-color: var(--color-green);
                            transform: translateY(-30%);
                            padding: 1em;
                            border-radius: 999px;
                            color: #fff;
                        }
                        .voice {
                        }
                    }
                }
            }
        }
    }
    /*--------------------*/
    /* よくある質問 */
    &.post-type-archive-faq,
    &.tax-faq {
        /* ページリンク */
        .page_link_wrap {
            max-width: 946px;
            margin-bottom: 6.8rem;
            @media screen and (max-width: 480px) {
                margin-bottom: 4rem;
            }
            .title_wrap {
                margin-bottom: 5.6rem;
                @media screen and (max-width: 480px) {
                    margin-bottom: 3rem;
                }
                .en {
                    font-size: 1.4rem;
                    font-weight: 600;
                    letter-spacing: 0.06em;
                    @media screen and (max-width: 480px) {
                        font-size: 1.2rem;
                    }
                }
                h2 {
                    margin-top: 0.8rem;
                    font-size: 2rem;
                    font-weight: 500;
                    @media screen and (max-width: 480px) {
                        font-size: 1.8rem;
                    }

                    span {
                        position: relative;
                        display: inline-block;
                        padding-right: 1em;
                        &::before {
                            content: "";
                            display: block;
                            position: absolute;
                            width: 100vw;
                            height: 1px;
                            background-color: #000;
                            top: 50%;
                            right: 0;
                            transform: translateX(100%);
                        }
                    }
                }
            }
            .pagelink_tax_wrap {
                li {
                    a {
                        span {
                            &::before {
                                background-color: #8f1d22;
                            }
                        }
                    }
                }
            }
        }
        /* 回答 */
        .faq_answer_wrap {
            h3 {
                position: relative;
                margin-bottom: 3.3rem;
                @media screen and (max-width: 480px) {
                    margin-bottom: 2.4rem;
                }
                &.has-border {
                    padding: 2.4rem 0 0;
                    @media screen and (max-width: 480px) {
                        padding: 1.6rem 0 0;
                    }
                    &::before,
                    &::after {
                        content: "";
                        display: block;
                        position: absolute;
                        height: 1px;
                        right: 0;
                        width: 100%;
                        max-width: 799px;
                    }
                    &::before {
                        top: 0;
                        background-color: rgba(28, 29, 31, 0.2);
                    }
                    &::after {
                        top: 1px;
                        background: #f00;
                        background: linear-gradient(
                            90deg,
                            rgba(255, 0, 0, 1) 0%,
                            rgba(255, 0, 0, 1) 2.4rem,
                            transparent 2.4rem,
                            transparent 100%
                        );
                    }
                }
            }
            .faq_list {
                margin-bottom: 8.4rem;
                @media screen and (max-width: 480px) {
                    margin-bottom: 6rem;
                }
                .faq_item {
                    padding: 4.2rem 5rem;
                    background-color: #fff;
                    margin-bottom: 4rem;
                    &:last-child {
                        margin-bottom: 0;
                    }
                    @media screen and (max-width: 480px) {
                        padding: 3rem 2rem;
                        margin-bottom: 2rem;
                    }
                    .title {
                        font-size: 1.8rem;
                        line-height: 1.5;
                        font-weight: 500;
                        margin-bottom: 1.11em;
                        @media screen and (max-width: 480px) {
                            font-size: 1.6rem;
                            margin-bottom: 1.5em;
                        }
                    }
                    .the_content {
                        font-size: 1.5rem;
                        line-height: 1.67;
                        @media screen and (max-width: 480px) {
                            font-size: 1.3rem;
                        }
                    }
                }
            }
        }
    }
}
