.subpage_main h2 {
    margin-bottom: 2rem;
    position: relative;
}

.h2_title {
    h2 {
        margin-top: 0;
        line-height: 1;
    }
    p {
        padding-bottom: 0;
        letter-spacing: 0.5rem;
    }
}

/* h2の下線 */
.subpage_main h2::before {
    content: "";
    background-color: var(--main_color);
    width: 140px;
    height: 3px;
    position: absolute;
    bottom: -8px;
    /* 中央配置 */
    left: 50%;
    transform: translateX(-50%);
}

.subpage_main h3 {
    position: relative;
    padding-left: 10px;
}
.subpage_main h3::after {
    content: "";
    background-color: var(--main_color);
    width: 4px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* ブロックエディタ表共通 */
.wp-block-table thead tr {
    background-color: var(--sub_color);
    text-align: center;
    font-weight: bold;
}
.wp-block-table thead {
    border-bottom: none;
}

/*
＝＝＝＝＝＝＝＝＝＝＝＝＝＝
カードデザイン
＝＝＝＝＝＝＝＝＝＝＝＝＝＝
*/
/* cardDesign1 */
.cardDesign1 {
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.cardDesign1::before {
    content: "";
    display: block;
    max-width: 400px;
    height: 13px;
    margin-bottom: 0.5rem;
    left: 0;
    background-image: url(../img/bkimg.jpg);
}

.cardDesign1::after {
    content: "";
    display: block;
    max-width: 400px;
    height: 13px;
    background-color: var(--main_color);
    margin-bottom: 0.5rem;
}

.cardDesign2 {
    padding: 2rem;
    background-color: #fff;
    box-shadow:
        8px 8px 0px 4px #c9e7fd,
        -8px -8px 0px 4px var(--sub_color);
}

/* simplecard */
.simplecard {
    border: solid 1px var(--main_color);
    padding: 2rem;
    background-color: #fff;
}

/*
＝＝＝＝＝＝＝＝＝＝＝＝＝＝
広幅のパーツ
＝＝＝＝＝＝＝＝＝＝＝＝＝＝
*/
.full_wide {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 1rem;
    padding-bottom: 80px;
    padding-top: 80px;
}

.full_wide .wp-block-group__inner-container {
    max-width: var(--maxWh);
    margin: auto;
}

/*
＝＝＝＝＝＝＝＝＝＝＝＝＝＝
背景水彩
＝＝＝＝＝＝＝＝＝＝＝＝＝＝
*/

.sky_background {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 1rem;
    padding-bottom: 80px;
    padding-top: 80px;
    background: url(../img/skyimg.jpg) no-repeat center center;
    background-size: cover;
}
.sky_background .wp-block-group__inner-container {
    max-width: var(--maxWh);
    margin: auto;
}

/*
＝＝＝＝＝＝＝＝＝＝＝＝＝＝
背景三角
＝＝＝＝＝＝＝＝＝＝＝＝＝＝
*/
.tri_background {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 1rem;
    padding-bottom: 80px;
    padding-top: 80px;
}

/* 上の三角 */
.tri_background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: calc(100vh / 2);
    width: calc(100vw / 2);
    clip-path: polygon(0% 0, 0% 100%, 100% 0%);
    aspect-ratio: 1;
    background-color: var(--sub_color);
    z-index: -1;
}

/* 下の三角 */
.tri_background::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    height: calc(100vh / 2);
    width: calc(100vw / 2);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    aspect-ratio: 1;
    background-color: var(--sub_color);
    z-index: -1;
}

.tri_background .wp-block-group__inner-container {
    max-width: var(--maxWh);
    margin: auto;
}

/*
＝＝＝＝＝＝＝＝＝＝＝＝＝＝
リストデザイン
＝＝＝＝＝＝＝＝＝＝＝＝＝＝
*/

.list_design li {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.list_design li::before {
    content: "";
    background-image: url("../img/check_og.svg");
    width: 1rem;
    height: 1rem;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
}

/*
＝＝＝＝＝＝＝＝＝＝＝＝＝＝
自動生成目次
＝＝＝＝＝＝＝＝＝＝＝＝＝＝
*/
.toc_wrapper {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 4rem;
    border: solid 4px #c9e7fd;
}
@media screen and (max-width: 768px) {
    .toc_wrapper {
        padding: 1rem;
    }
}

.toc_wrapper ul {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc_wrapper li a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding-left: 1.3rem;
    background-image: url("../img/arrow_bl.svg");
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
    background-position: 0 0.6em;

    color: var(--main_color);
}

@media screen and (max-width: 768px) {
    .toc_wrapper ul {
        justify-content: flex-start;
    }
}

/* サーチ */
.phy_search_wrap {
    margin-bottom: 4rem;
    padding: 1rem;
    border-radius: 8px;
    border: solid 4px #17c89c;
    background-color: #fff;
}

.post_type {
    background-color: var(--sub_color2);
    color: #fff;
    padding: 0 1rem;
    border-radius: 50px;
    display: inline-block;
}

.search_ac_container .subpage_main h2::before {
    display: none;
}
