/*---------------------------------------------------------
                共通css
---------------------------------------------------------*/

:root {
    --ja-font: "Noto Sans JP", sans-serif;
    --en-font: "Onest", sans-serif;
    --base-color: #FFF;
    --bg-color: #05364A;
    --text-color01: #333;
    --text-color02: #FFF;
    --bd-color: #666666;
    --ttl-bg: #F7F9F9;
    --link-color: "#0000ee";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: var(--text-color01);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: 0.3s;
}

html {
    min-height: 100lvh;
    color: var(--text-color01);
    font-family: var(--ja-font);
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: normal;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100lvh;
    background-color: var(--base-color);
    background-size: contain;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

p {
    font-family: var(--ja-font);
    font-style: normal;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.05em;
}


/*---------------------------------------------------------
                フロントページ
---------------------------------------------------------*/


/* ヒーローセクション */

.section-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10vh;
    margin-top: 80px;
    width: 100%;
    height: calc(100svh - 80px);
}

.section-hero h1 {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .12em;
    text-align: center;
}

.section-hero h1 span {
    display: block;
}

.section-hero .main_txt {
    margin: 0 auto;
    width: 90%;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.section-hero .main_txt p {
    text-align: center;
}

.section-hero .main_txt p+p {
    margin-top: 1em;
}

@media screen and (max-width:560px) {
    .section-hero .main_txt p {
        text-align: left;
    }
}


/* カテゴリーリスト */

.section-category {
    margin: 0 auto;
    width: 80%;
}

.section-category .category-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.section-category .category-list li {
    width: calc((100% - 40px)/3);
}

.section-category .category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px;
    width: 100%;
    border: 1px solid var(--bd-color);
    border-radius: 4px;
    transition: .3s;
}

.section-category .category-list li a .arrow {
    position: relative;
    width: 8px;
    height: 12.5px;
}

.section-category .category-list li a .arrow::before,
.section-category .category-list li a .arrow::after {
    position: absolute;
    display: inline-block;
    content: "";
    width: 1px;
    height: 9.5px;
    background: var(--text-color01);
    transition: .3s;
}

.section-category .category-list li a .arrow::before {
    top: -2px;
    right: 50%;
    transform: rotate(-45deg) translateX(-50%);
}

.section-category .category-list li a .arrow::after {
    bottom: -2px;
    right: 50%;
    transform: rotate(45deg) translateX(-50%);
}

@media (hover:hover) {
    .section-category .category-list li a:hover {
        background: var(--bd-color);
        color: var(--base-color);
    }
    .section-category .category-list li a:hover .arrow::before,
    .section-category .category-list li a:hover .arrow::after {
        background: var(--base-color);
    }
}

@media screen and (max-width:990px) {
    .section-category .category-list li {
        width: calc((100% - 20px)/2);
    }
}

@media screen and (max-width:768px) {
    .section-hero h1 {
        font-size: 36px;
    }
    .section-category {
        width: 90%;
    }
    .section-category .category-list li {
        width: 100%;
    }
}

@media screen and (max-width:500px) {
    .section-hero h1 {
        font-size: 24px;
    }
}


/*---------------------------------------------------------
                page
---------------------------------------------------------*/

.page {
    margin-top: 50px;
    padding-top: 80px;
    min-height: calc(100svh - 50px - 50px - 80px);
}

.page h1.page-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .15em;
    text-align: center;
}

.page .text_area {
    margin: 48px auto 0;
    width: 80%;
}

.page .text_area h2 {
    padding: 20px 28px;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    background: var(--ttl-bg);
    border-left: 8px solid var(--bg-color);
}

.page .text_area h2:not(:first-of-type) {
    margin-top: 40px;
}

.page .text_area p+h2,
.page .text_area ul+h2,
.page .text_area ol+h2 {
    margin-top: 40px;
}

.page .text_area h3 {
    position: relative;
    margin: 0 0 12px calc(2rem + 10px);
    color: var(--bg-color);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.page .text_area h3::before {
    position: absolute;
    top: 7px;
    left: calc(-1em + -10px);
    display: block;
    content: "";
    width: 18px;
    height: 18px;
    background: var(--bg-color);
    border-radius: 50%;
}

.page .text_area h3:not(:first-of-type) {
    margin-top: 28px;
}

.page .text_area ul,
.page .text_area ol {
    margin-left: 2em;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

.page .text_area ul li {
    list-style: disc;
}

.page .text_area p {
    min-height: 1.8em;
}

.page .text_area .is-style-example {
    margin: 12px 0;
    padding: 1em;
    background: var(--ttl-bg);
    border-radius: 6px;
}

.page .text_area p.is-style-notice {
    margin: 12px 0;
    padding: 1em;
    background: #fff5f5;
    border-left: 4px solid #e53935;
}

.page .text_area .wp-block-file {
    margin-top: 12px;
}

.page .text_area .wp-block-file a {
    color: var(--link-color);
    text-decoration: underline;
}

.page .text_area .wp-block-file a.wp-block-file__button {
    padding: 5px 10px;
    background: var(--text-color01);
    color: var(--base-color);
    text-decoration: none;
}

.page .text_area .is-style-tel-card {
    display: flex;
    gap: 24px;
}

.page .text_area .is-style-tel-card .is-style-tel-name {
    width: 50px;
}

.page .text_area .is-style-tel-card .wp-block-buttons {
    width: calc(100% - 24px - 50px);
}

.page .text_area .is-style-tel-card .is-style-tel-button .wp-block-button__link {
    position: relative;
    margin-left: 11.5px;
    padding: 0;
    background: transparent;
    color: var(--text-color01);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.05em;
    border-radius: unset;
}

.page .text_area .is-style-tel-card .is-style-tel-button .wp-block-button__link:before {
    position: absolute;
    top: 50%;
    left: -11.5px;
    transform: translateY(-50%);
    display: block;
    content: "";
    width: auto;
    height: 15px;
    aspect-ratio: 392.58/512;
    background: url(../img/ic_tel.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto 100%;
}

.page .text_area img {
    width: 100%;
}

.page .back_btn {
    display: block;
    margin: 80px auto 0;
    padding: 12px 32px;
    width: fit-content;
    font-size: 18px;
    border: 1px solid var(--bd-color);
    border-radius: 4px;
    transition: .3s;
}

@media (hover:hover) {
    .page .back_btn:hover {
        opacity: .7;
    }
}

@media screen and (max-width:990px) {
    .page .text_area {
        width: 90vw;
    }
}

@media screen and (max-width:500px) {
    .page .text_area h2 {
        padding: 20px 12px;
        font-size: 20px;
    }
    .page .text_area h3 {
        font-size: 18px;
    }
    .page .text_area h3::before {
        width: 16px;
        height: 16px;
    }
}