html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

@media (min-width: 640px) {
    .sp {
        display: none !important;
    }
}
@media (max-width: 639px) {
    .pc {
        display: none !important;
    }
}

/*************************
* ヘッダ
*/
#site-header {
    background-color: #fff;
    box-shadow: none;
}

.site-header-container {
    column-gap: 10px;
}

.site-header-logo {
    flex-shrink: 0;
}
.site-header-sub {
    flex-shrink: 0;
}

#global-nav {
    min-width: 0;
}

.site-header-sub {
    margin: 0;
}

.site-header-sub p {
    margin: 0;
}
.site-header-sub aside .wp-block-group__inner-container {
    display: block;
}
.site-header-sub .header-links {
    gap: 0;
    align-items: center;
    margin-bottom: 0;
}

.site-header-sub .header-links .wp-block-column {
    flex-shrink: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.site-header-sub aside .phone,
.site-header-sub aside .phone a {
    margin-right: 0;
}

.site-header-sub aside .phone a {
    display: flex;
    align-items: center;
    padding-left: 0;
    gap: .5rem;
}

.site-header-sub aside .phone a:before {
    position: static;

}

.site-header-sub .reception {
    font-size: 15px;
    text-align: right;
}

@media (min-width: 991px) {
    body:not(.header_scrolled) #site-header-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    body:not(.header_scrolled) #global-nav {
        grid-row: 2;
        grid-column: span 2;
        width: 800px;
        max-width: 100%;
        margin: 0 auto;
        padding-top: 0;
    }

    body:not(.header_scrolled) #global-nav .menu {
        display: flex;
        justify-content: space-around;
    }

    body:not(.header_scrolled) #site-header-container {
        margin-top: 20px;
    }

    body:not(.header_scrolled) #site-header-container .site-header-logo {
        max-width: none;
        max-height: 80px;
    }

    body:not(.header_scrolled) #site-header-container .header-links {
        justify-content: flex-end;
        gap: 2.1rem;
    }

    body:not(.header_scrolled) #site-header-container .header-links .wp-block-column {
        flex-basis: auto;
        flex-grow: 0;
    }
    .reserve .wp-block-button, .contact .wp-block-button {
        width: 180px !important;
        height: 35px !important;
    }
}

@media (max-width: 990px){
    .site-header-container {
        align-items: center;
    }
}

@media (max-width: 840px){
    #site-header-container {
        display: block;
    }
    .site-header-logo a img {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .site-header-sub {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
    .site-header-sub .header-links {
        justify-content: center;
        column-gap: 2rem;
    }
    .site-header-sub .header-links > * {
        flex-basis: fit-content !important;
    }
    .site-header-sub .header-links .wp-block-column {
        justify-content: flex-end;
    }
    .site-header-sub aside .contact .wp-block-button .wp-block-button__link {
        width: 192px;
        max-width: unset;
        margin-left: 0;
        margin-right: auto;
    }
    .site-header-sub .reception {
        text-align: center;
    }
}

@media (min-width: 640px){
    .site-header-sub .header-links {
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 639px){
    #site-header {
        padding-bottom: 1.5rem;
    }
    .page-header {
        background-position: 21% center;
    }
    .site-header-logo {
        max-width: 85%;
        margin-left: auto;
        margin-right: auto;
    }
    .site-header-sub .header-links .wp-block-column {
        justify-content: center;
    }
    .site-header-sub aside .phone {
        padding-left: 0;
    }
    .site-header-sub aside .contact {
        justify-content: center;
    }
    .site-header-sub aside .contact .wp-block-button .wp-block-button__link {
        margin-left: auto;
    }
    .site-header-sub .reception p {
        font-size: .9rem;
    }
}

@media (max-width: 639px){
    #breadcrumb {
        margin-bottom: 1rem;
    }
}


/*************************
* フッタ
*/

footer.site-footer {
    margin-top: 120px;
}

.site-footer-content {
    font-size: var(--vk-size-text);
}

.site-footer-content p {
    margin-bottom: .5rem;
}

.site-footer-content .phone a {
    display: flex;
    justify-content: flex-start;
    column-gap: 0.5rem;
    padding: 0 !important;
    margin-right: 0;
    width: 100% !important;
}

.site-footer-content .phone a:before {
    position: relative;
}

.site-footer-content .contact > .wp-block-button {
    margin-right: auto;
}

@media (max-width: 646px){
    .site-footer-content .phone a {
        justify-content: center;
    }
}


#go-top {
    position: fixed;
    right: 0;
    bottom: 60px;
    width: 50px;
    height: 50px;
    background-color: var(--vk-color-primary);
    border-radius: 5px;
    opacity: 60%;
}

#go-top:hover {
    opacity: 1;
}

#go-top a {
    display: block;
    width: 100%;
    height: 100%;
    background: url("assets/image/go-top.svg") no-repeat center center / 70%;
}

/*************************
* フッタメニュー
*/

.site-footer .menu {
    width: 400px !important;
}

.site-footer .widget_nav_menu a {
    border-bottom: none !important;
}

.site-footer .widget_nav_menu .menu-item {
    border-bottom: 1px solid #d1d1d1;
}

.site-footer .widget_nav_menu .sub-menu .menu-item {
    border-bottom: none;
    position: relative;
}

.site-footer .widget_nav_menu .sub-menu a {
    font-size: .85rem;
    padding-top: .5em;
    padding-bottom: .5em;
    padding-left: 3rem;
}

.site-footer .widget_nav_menu .sub-menu .menu-item::before {
    content: '';
    display: block;
    width: 1px;
    height: 100%;
    background: #d1d1d1;
    position: absolute;
    left: 30px;
}

.site-footer .widget_nav_menu .sub-menu .menu-item::after {
    content: '';
    display: block;
    width: 1rem;
    height: 1px;
    background: #d1d1d1;
    position: absolute;
    left: 30px;
    top: 50%;
}

.site-footer .widget_nav_menu .sub-menu .menu-item:last-child::before {
    height: 50%;
}


/*************************
* トップページ
*/

.home .swiper-slide .mini-content {
    display: none !important;
}

.lightning_swiper-container {
    margin-left: auto;
    margin-right: auto;
}

.home .btn_layout_01 {
    margin-top: 6rem;
}

.home .btn_layout_01 a {
    min-width: 250px;
}

.banner-works {
    padding: 50px 0 !important;
}

.banner-works img {
    width: 1024px;
    max-width: 100%;
    padding: 1em;
    box-shadow: 0 0 8px #AEB6BF;
}

@media (max-width: 639px) {
    .contents-pattern_01 {
        margin-bottom: 0;
    }
    .contents-layout_01 {
        padding-bottom: 0;
    }
    .home .btn_layout_01 {
        margin-top: 3rem;
    }
}



/*************************
* お知らせ一覧
*/

.archive.category-news .post-list .vk_post_excerpt {
    display: none;
}

.archive.category-news .post-list .vk_post_body {
    display: grid;
    grid-template-columns: 100px auto;
}

.archive.category-news .post-list .vk_post {
    margin-bottom: 1rem;
    padding-top: 0;
}

.archive.category-news .post-list .vk_post_body .vk_post_date {
    order: 0;
}

.archive.category-news .post-list .vk_post_body .vk_post_title {
    order: 1;
    margin-bottom: 0;
}

.archive.category-news .post-list .vk_post_body .vk_post_btnOuter {
    order: 2;
    grid-column: span 2;
}

.archive .vk_post-btn-display.media .vk_post_body {
    padding-bottom: 1rem;
}

.archive .vk_post-btn-display .vk_post_btnOuter {
    position: relative;
    margin-top: 1rem;
}

.archive .vk_post .vk_post_btn.btn-primary {
    font-size: .9rem;
    color: #fff;
}

.category-news .main-section>.vk_posts>.media.vk_post-col-lg-12 .media-img {
    display: none;
}

/*************************
* お知らせ詳細
*/
.vk_posts.next-prev .vk_post {
    border-bottom: 0;
    background: #efefef;
    padding: .7rem;
}

.entry-footer {
    margin-top: 4rem;
}

/*************************
* 会社概要
*/
#about-table tr td:first-child {
    min-width: 130px;
    font-weight: bold;
}

#about-table td {
    padding: .75rem;
    line-height: 1.8;
}

/*************************
* 施工実績一覧
*/
.works-note {
    text-align: right;
    margin-bottom: 2rem;
    font-size: .9rem;
    color: #555;
}
.work-list .post-entry:not(:first-child) {
    margin-top: 2rem;
}
.work-list h2 {
    text-align: left;
    font-size: 1.2em;
    margin-bottom: 1rem;
}

.work-list th {
    width: 30%;
    background: #f2f3f4;
}

@media (max-width: 639px) {
    .works-note {
        text-align: left;
        font-size: .85rem;
    }
    .work-lead {
        font-size: 1.6rem !important;
    }
}

/*************************
* 固定ページ
*/
.home .entry-body > :last-child {
    padding-bottom: 0;
}


/*************************
* サイトマップ
*/
.sitemap {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
}
.sitemap ul {
    list-style: none;
}

.sitemap .menu > li {
    margin-bottom: 2.5rem;
}
.sitemap .menu > li > a {
    display: inline-block;
    padding: .25rem 1rem;
    min-width: 10rem;
    border-bottom: 1px solid #919191;
    font-weight: bold;
}

.sitemap .menu > li > a:hover {
    background: #efefef;
    color: #333;
}

.sitemap .sub-menu {
    margin-top: 1rem;
    list-style: disc;
    padding-left: 3rem;
}

.sitemap .sub-menu > li {
    margin-bottom: 1rem;
}

/*************************
* 事業のご紹介
*/

.guide-detail {
    margin-bottom: 1.75rem;
}

.guide-detail > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 4rem;
    grid-template-rows: auto 1fr;
}

.guide-detail h3 {
    grid-row: 1;
    margin-bottom: 3rem;
}

.guide-detail .guide-text {
    grid-row: 2;
}

.guide-detail .wp-block-image {
    grid-column: 2;
    grid-row: span 2;
}

@media (max-width: 639px) {
    .guide-detail {
        margin-bottom: 4rem;
    }
    .guide-detail > div {
        grid-template-columns: 100%;
        row-gap: 1.5rem;
    }
    .guide-detail > div > * {
        grid-row: auto !important;
        grid-column: auto !important;
    }

    .guide-detail h3 {
        margin-bottom: 0;
    }
}

