@charset "utf-8";

/* other その他のページ ================================================== */

/* -----------------------------------------
　共通
-------------------------------------------- */
h1 {
    background: url(../img/checkerboard.jpg) repeat center /  80%;
    padding: calc(90px + 2rem) 0 4.5rem;
    position: relative;
    z-index: 1;
}

.wave::after {
    z-index: 0;
}

#title p {
    font-size: .9rem;
    margin-bottom: 1rem;
    & span {
        background: var(--main);
        border-radius: 1rem;
        color: var(--fff);
        margin-right:  .5rem;
        padding: 0 .5rem;
    }
}

.pdf {
    display: inline-flex;
    align-items: center;
    margin-top: .3rem;
    text-decoration: underline;
    /* pdf アイコン */
    &::before {
        content: "";
        background: url(../img/pdf.svg) no-repeat center / contain;
        margin-right: .3rem;
        width: 1.2rem;
        height: 1.2rem;
    }
    &:hover {
        opacity: .6;
    }
}


.link {
    display: inline-flex;
    align-items: center;
    text-decoration: underline;
    /* リンク アイコン */
    &::after {
        content: "";
        background: url(../img/link.svg) no-repeat center / contain;
        margin-right: .3rem;
        width: 1rem;
        height: 1rem;
    }
    &:hover {
        opacity: .6;
    }
}


/* 数字 */
ol {
    background: var(--bg_blue);
    border-radius: 5px;
    padding: 1.5rem 1.5rem 1.5rem 2.4rem;
    margin-bottom: 1rem;
    list-style-position: inside;
    text-indent: -1.2rem;
    & li {
        text-align: justify;
    }
    & li::marker {
        color: var(--blue);
    }
}

/* フッター用 余白 */
main > *:last-child {
    padding-bottom: 5rem;
}

/* -----------------------------------------
    #news お知らせ
-------------------------------------------- */
#news .news_list {
    margin: 2rem 0 1rem;
    & p {
        border-bottom: 1px dotted var(--blue);
        font-family: var(--ZenMaru);
        font-size: 1.1rem;
        font-weight: 500;
        padding: .2rem 0 1rem;
    }
}

#news .news_txt {
margin-bottom: 3rem;
}

#news .news-pager,
#news .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    margin-bottom: -4.5rem;
    padding: 2rem 0 4.5rem;
    background: url(../img/checkerboard.jpg) repeat center / 80%;
    border-radius: 30px 30px 0 0;
}

/* 各 li */
#news .news-pager li,
#news .pagination li  {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-width: 40px;
    min-height: 40px;
    /* 三角形 */
    &:first-child a::before,
    &:last-child a::before {
    content: "";
    background: var(--blue);
    width: 10px;
    height: 14px;
    /* SVGをマスク */
    -webkit-mask: url("../img/triangle.svg") no-repeat center / contain;
    mask: url("../img/triangle.svg") no-repeat center / contain;
    }
    &:first-child a::before {
        transform: rotate(180deg);
    }
}

/* 戻る 共通 */
#news .news-pager li a,
#news .pagination li a {
    background: var(--fff);
    border-radius: 2rem;
    box-shadow: var(--shadow);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    &:hover {
        background: var(--blue);
        color: var(--fff);
        &::before {
        background: var(--fff) !important;
        }
    }
}

/* 戻る テキスト */
#news .news-pager li.modoru a {
    font-family: var(--ZenMaru);
    font-weight: 500;
    padding: 0 1rem;
    width: auto;
}


/* WPでのみのcss*/
.wp-block-list {
    list-style: unset;
    margin: 0 0 1rem 1rem;
    text-align: justify;
    & li::marker {
        color: var(--blue);
        font-family: var(--Noto);
    }
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: center;
    & span {
        background: var(--blue);
        border-radius: 2rem;
        box-shadow: var(--shadow); 
        color: var(--fff);
        width: 40px;
        height: 40px;
    }
}

/* -----------------------------------------
    #category お知らせ カテゴリ
-------------------------------------------- */
#category {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem .3rem;
    text-align: center;
    & a {
        background: var(--fff);
        border: 1px solid var(--blue);
        border-radius: 2rem;
        color: var(--blue);
        font-family: var(--ZenMaru);
        font-weight: 500;
        letter-spacing: 0;
        padding: .2rem;
        &.check,
        &:hover {
            background: var(--blue);
            color: var(--fff);
        }
    }
}

/* -----------------------------------------
　table 表 共通
-------------------------------------------- */
table {
    border-collapse:separate;
    border-spacing: 0;
    margin-bottom: 1rem;
    width: 100%;
    & th,
    & td {
        font-weight: normal;
        padding: .5rem .8rem;
        vertical-align: middle;
    }
}

/* 表 赤字 */
table.red tr {
    & th {
    color: var(--red);
    border-color: var(--red);
    }
    & td {
        border-color: var(--red);
    }
}

/* -----------------------------------------
　.scroll table 表 横スクロール
-------------------------------------------- */
.scroll {
    border-radius: .5rem;
    overflow-y: auto;
    margin-bottom: 1rem;
    border: 1px solid var(--blue);

}

/* スクロールバー */
.scroll::-webkit-scrollbar {
    width: 1rem;
}
.scroll::-webkit-scrollbar-track {
    background: var(--bg_blue);
    border-top: 1px solid var(--blue);
    border-radius: 0 0 .4rem .4rem;
}
.scroll::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 0 0 .4rem .4rem;
    cursor: grab;
}

.scroll table {
    margin-bottom: 0;
    border-collapse: collapse;
    white-space: nowrap;
        & th {
        background: var(--blue);
        border-bottom: 1px solid var(--fff);
        border-right: 1px solid var(--fff);
        color: var(--fff);
        &:last-child {
        border-right: none;
        }
        
    }
    & td {
        border-right: 1px solid var(--blue);
        text-align: center;
        &:last-child {
            border-right: none;
        }
    }
    & tr:nth-child(even) td {
        background: var(--bg_blue);
        border-top: 1px solid var(--blue);
        border-bottom: 1px solid var(--blue);
    }
}

/* 三角形 */
.hint {
    display: inline-flex;
    align-items: center;
    position: relative;
    &::after {
        content: "";
        background: var(--red); /* 通常色 */
        position: absolute;
        right: -1.2rem;
        width: 1rem;
        height: .5rem;
        animation: hint 2.5s infinite ease-in-out;
        /* SVGをマスク */
        -webkit-mask: url("../img/triangle.svg") space left / contain;
        mask: url("../img/triangle.svg") space left / contain;
    }
}

/* 三角形 横に移動するアニメーション */
@keyframes hint {
    0%,10%   { right: -1.2rem; } 
    20%      { right: -1.5rem; } 
    30%      { right: -1.2rem; } 
    40%      { right: -1.3rem; } 
    50%,100% { right: -1.2rem; } 
}




/* -----------------------------------------
　table .madoguti 表
-------------------------------------------- */
table.madoguti {
    & th,
    & td {
        border-bottom: 1px dotted var(--blue);
        padding: .5rem 0 .5rem;
        text-align: justify;
    }
    & th {
        color: var(--blue);
        padding-right: 1rem;
        width: 4.2rem;
    }
    & tr:first-child th,
    & tr:first-child td 
    {
        padding-top: 0;
    }
    & tr:last-child th,
    & tr:last-child td 
    {
        border-bottom: none;
        padding-bottom: 0;
    }
    /* 三角形 */
    & td span {
        display: inline-block;
        padding-left: .7rem;
        position: relative;
        &::before {
            content: "";
            background: url(../img/triangle.svg) no-repeat center / contain;
            margin-top: .7rem;
            left: 0;
            position: absolute;
            width: .5rem;
            height: .5rem;
        }
    }
}

/* -----------------------------------------
　table .list .price 価格
-------------------------------------------- */
table.list {
    border: 1px solid var(--blue);
    border-radius: .5rem;
    & tr {
        & th {
            font-weight: normal; 
            letter-spacing: 0.1rem;
            line-height: 1.4rem;
            text-align: left;
            border-bottom: 1px solid var(--blue);
        }
        & td {
            letter-spacing: 0;
            border-bottom: 1px solid var(--blue);
            border-left: 1px dotted var(--blue);
        }
    }
}

table.list tr:first-child {
    & th { border-radius: .5rem 0 0 0; } 
    & td { border-radius: 0 .5rem 0 0; }
}

table.list tr:last-child {
    & th { border-radius: 0 0 0 .5rem; border-bottom: 0; } 
    & td { border-radius: 0 0 .5rem 0; border-bottom: 0; }
}

table.list tr:nth-child(odd) {
    background: var(--bg_blue);
}

/* 価格 */
.price td { text-align: right; }


/* -----------------------------------------
　body #rule 指定住宅…
-------------------------------------------- */
#rule h3 {
    align-items: baseline;
    & span {
        color: var(--blue);
        font-family: var(--ZenMaru);
        margin-right: .3rem;
    }
    &::before {
        content: none;
    }
}

/* -----------------------------------------
　body 料金表・医療情報
-------------------------------------------- */
/* あしらい */
.line::before {
    content: "";
    background: url(../img/line.png) repeat-x left / 420px 12px;
    display: block;
    margin: 2rem auto;
    height: 12px;
    width: 100%;
}

/* 選択するとスクロール */
form {
    margin: 0 -.5rem 2rem;
    position: sticky;
    text-align: center;
    top: 100px;
    z-index: 90;
    /* 三角形 */
    &::after {
        content: "";
        background: var(--blue);
        /* SVGをマスクに使う */
        -webkit-mask: url("../img/triangle.svg") no-repeat center / contain;
        mask: url("../img/triangle.svg") no-repeat center / contain;
        width: .6rem;
        height: .6rem;
        pointer-events: none;
        position: absolute;
        top: 53%;
        right: 2.5rem;
        transform: translateY(-50%) rotate(90deg);
    }
    /* ホバー */
    &:hover&::after {
        background: var(--fff);
        }
    & select {
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg_blue);
    border: 1px solid var(--blue);
    border-radius: 5px;
    box-shadow: var(--shadow) ,0 20px 60px var(--fff);
    cursor: pointer;
    color: var(--main);
    font-size: 1rem;
    height: 3rem; /* appearanceのバグ回避 */
    padding: 0 .6rem;
    width: calc(100% - 4rem);
    /* ホバー */
    &:hover {
        background: var(--blue);
        color: var(--fff);
        }
    }
}

/* PC用 ================================================== */
@media screen and (min-width: 1124px) {

    /* -----------------------------------------
    　h1
    -------------------------------------------- */
    h1 {
        padding: 2rem 0 4.5rem;
    }
    /* -----------------------------------------
    　body #service 料金表・医療情報
    -------------------------------------------- */
    /* 選択するとスクロール */
    form {
        top: 2rem;
    }

}