/*
Theme Name: Original theme for balena
Author: Naoki Sakaibara
Description: 汎用的に使用できるオリジナルテーマ
Version: 1.0
*/

h1 {
    font-size: 32px;
    color: #555555;
    font-family: 'Noto Serif JP', serif;
    margin-top: 100px;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 40px;
    line-height: 40px;
}

h2 {
    font-size: 24px;
    color: #555555;
    font-family: 'Noto Serif JP', serif;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 10px;
    line-height: 40px;
}

h3 {
    font-size: 20px;
    color: #555555;
    font-family: 'Noto Serif JP', serif;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    line-height: 40px;
}

h4 {
    font-size: 16px;
    color: #555555;
    font-family: 'Noto Serif JP', serif;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    line-height: 40px;
}

:where(.wp-block-columns.is-layout-flex) {
    gap: 40px;
    margin-bottom: 0;
}

header {
    position: fixed;
    z-index: 1;
    display: flex;
    justify-content: space-between;
	align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 3% 3px 0;
    background-color: rgb(255 255 255 / 50%);
}

header img {
    object-fit: cover;
    height: auto;
    width: 170px;
    margin-left: 10px;
    margin-top: 10px;
}

/* 【始】nav header footer 共通 */

nav {
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    margin-left: 25px;
}

nav li {
    list-style: none;
    padding-right: 30px;
}

nav a {
    text-decoration: none;
    color: inherit;
    font-size: 18px;
}

/* 【終】nav header footer 共通 */


/* 【始】nav header のみ */

header .header-menu-class {
    margin-top: 10px;
}

/* 【終】nav header のみ */


/* 【始】nav footer のみ */

footer nav {
    display: flex;
    justify-content: center;
}

footer nav a {
    font-size: 14px;
    color: #ffffff;
    font-family: 'Noto Serif JP', serif;
    margin-right: 9px;
    line-height: 2.5;
}

footer nav ul {
    margin-left: 15px;
}

footer nav li {
    padding-right: 15px;
}

/* 【終】nav footer のみ */



/* 【始】footer */

footer .black a span {
    font-size: 14px;
    color: #ffffff;
    font-family: 'Noto Serif JP', serif;
    margin-right: 9px;
    line-height: 2.5;
}

footer .black .icon-box,
footer .black .link-box {
    margin: 5px 0px;
}

footer .black .cp-info-box {
    margin-left: auto;
}

footer .black .cp-info-box span {
    font-size: 13px;
    color: #ffffff;
}

footer .black .cp-info-box div {
    text-align: right;
    margin: 5px 0px;
}

/* 【終】footer */


/* 【始】パンくず */

.breadcrumbs {
    font-size: 8px;
    line-height: 9px;
    color: #555555;
    margin-left: 26px;
}

/* 【終】パンくず */


main {
    max-width: 1130px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
    line-height: 24px;
    color: #555555;
    letter-spacing: 1px;
    padding: 0px;
}


/*【始】トップページ*/

.button_event_syousai {
	margin-top: 10px;
    width: 190px;
    height: 29px;
    color: white;
    background-color: #555555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 5px;
}

/*【終】トップページ*/


/*【始】家造りの進め方*/

.sub-menu-howto-build-house-class,
.sub-menu-azumino-house-howto-roof-class,
.sub-menu-azumino-wisdom-to-live-class,
.sub-menu-company-profile-class {
    display: flex;
    margin: 60px 0px;
}

.sub-menu-howto-build-house-class a,
.sub-menu-azumino-house-howto-roof-class a,
.sub-menu-azumino-wisdom-to-live-class a,
.sub-menu-company-profile-class a {
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    font-family: 'Noto Serif JP', serif;
}

.sub-menu-howto-build-house-class ul,
.sub-menu-azumino-house-howto-roof-class ul,
.sub-menu-azumino-wisdom-to-live-class ul,
.sub-menu-company-profile-class ul {
    margin: 0px;
    width: 100%;
}

.sub-menu-howto-build-house-class li:first-child,
.sub-menu-azumino-house-howto-roof-class li:first-child,
.sub-menu-azumino-wisdom-to-live-class li:first-child,
.sub-menu-company-profile-class li:first-child {
    border-left: 1px solid #333;
    border-top: none;
}

.sub-menu-howto-build-house-class li,
.sub-menu-azumino-house-howto-roof-class li,
.sub-menu-azumino-wisdom-to-live-class li,
.sub-menu-company-profile-class li {
    flex: 1;
    border-right: 1px solid #333;
    height: 50px;
    padding: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: none;
}

/*【終】家造りの進め方*/


/*【始】イベントテンプレート*/

.event-thumbnail img {
    width: 100%;
    height: auto;
}

/* フォーム */

.item-frame {
    display: flex;
    flex-wrap: wrap;
    margin: 0px 20px 27px 20px;
}

.item_font {
    font-weight: bold;
}

.hissu-icon {
    padding: 1px 5px;
    background-color: #a5d165;
    border-radius: 3px;
    font-size: 8px;
    line-height: 9px;
    color: #ffffff;
}

.ninni-icon {
    padding: 1px 5px;
    background-color: #bdbdbd;
    border-radius: 3px;
    font-size: 8px;
    line-height: 9px;
    color: #ffffff;
}

input {
    outline: none;
    border-bottom: 1px solid #999;
}

.questions {
    display: flex;
}

.your_questions {
    margin-left: 8px;
    border: 1px solid #999;
    width: 100%;
}

.button_confirmation_send,
.button_confirm_send {
    border: none;
    background-color: #dedede;
    padding: 15px 40px;
    border-radius: 3px;
    font-size: 15px;
    line-height: 9px;
    color: #ffffff;
    font-family: 'Noto Serif JP', serif;
}

.button_confirm_send {
    background-color: #686868;
}


.mwform-radio-field input {
    margin-right: 0px;
}


.submitConfirm_item_frame {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin: 0px 0px 27px 20px;
    border-bottom: 1px solid #999;
    width: 80%;
}

/*【終】イベントテンプレート*/


/*【始】施工事例*/

.waku_select_construction_example {
    width: 140px;
}

.waku_select_construction_example input {
    margin-right: 13px;
    transform: scale(1.5);
    margin-bottom: 2px;
}


/*【終】施工事例*/


/*【始】お問合せ・資料請求*/
.explanation_inquiry_document_request {
    margin: 4rem 0;
    text-align: center
}

.form_inquiry_document_request {
    margin-bottom: 5rem;
}


/*【終】お問合せ・資料請求*/


.pagination {
    display: flex;
    justify-content: center;
    margin: 0 0 60px 0;
}

.nav-links {
    display: flex;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    display: inline-block;
    margin-right: 8px;
    padding: 4px 12px;
    color: #accc64;
    border: solid 1px #accc64;
    border-radius: 3px;
    background: #fff;
}

.pagination .current {
    padding: 4px 12px;
    background: #accc64;
    color: #fff;
}

.pagination .prev,
.pagination .next {
    display: flex;
    align-items: center;
    font-size: 40px;
    background: transparent;
    box-shadow: none;
    color: #accc64;
    border: none;
}

.pagination .dots {
    background: transparent;
    box-shadow: none;
}








.flex-on-off {
    display: flex;
}

/* モーダルを開くボタン */
.modal-open {
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: 16px;
    font-weight: bold;
    width: 300px;
    height: 60px;
    color: #fff;
    background: #000;
    border: none;
    cursor: pointer;
    translate: -50% -50%;
}

/* モーダルと背景の指定 */
.modal {
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 50%);
    padding: 40px 20px;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    box-sizing: border-box;
}

/* モーダルの擬似要素の指定 */
.modal:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 100%;
    margin-left: -0.2em;
}

/* クラスが追加された時の指定 */
.modal.is-active {
    opacity: 1;
    visibility: visible;
}

/* モーダル内側の指定 */
.modal-container {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    max-width: 600px;
    width: 90%;
}

/* モーダルを閉じるボタンの指定 */
.modal-close {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    color: #fff;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
}

/* モーダルのコンテンツ部分の指定 */
.modal-content {
    background: #fff;
    text-align: left;
    line-height: 1.8;
    padding: 20px;
}

/* モーダルのコンテンツ部分のテキストの指定 */
.modal-content p {
    margin: 1em 0;
}

.pc-nav {
    margin-left: auto;
}

.sp-nav {
    display: none;
}

.pc {
    display: block !important;
}

.sma {
    display: none !important;
}


/* ■■■■■■■ */
/* ■■スマホ■■ */
/* ■■■■■■■ */

@media (max-width: 782px) {

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 21px;
        line-height: 22px;
		letter-spacing: -3px;
    }

    h3 {
        font-size: 19px;
        line-height: 20px;
		letter-spacing: -1px;
    }

    h4 {
        font-size: 17px;
    }

    .pc {
        display: none !important;
    }

    .sma {
        display: block !important;
    }

    .pc-nav {
        display: none;
    }

    .sp-nav {
        z-index: 1;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: block;
        width: 100%;
        background: rgba(0, 0, 0, .7);
        transition: all .2s ease-in-out;
        opacity: 0;
        transform: translateY(-100%);
    }

    .sp-nav ul {
        padding: 30px 0 0 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        margin: 0 auto;
    }

    .sp-nav li {
        margin: 0;
        padding: 0;
    }

    .sp-nav li span {
        font-size: 15px;
        color: #FFFFFF;
    }

    .sp-nav li a,
    .sp-nav li span {
        display: block;
        padding: 20px 0;
        font-size: 14px;
        color: #FFFFFF;
    }

    #hamburger span,
    #hamburger::before,
    #hamburger::after {
        transition: all 0.3s ease;
        /* ここでトランジション効果を追加 */
    }

    #hamburger {
        position: relative;
        display: block;
        width: 30px;
        height: 25px;
        margin: 15px 0 0 auto;
    }

    #hamburger span {
        position: absolute;
        top: 50%;
        left: 0;
        display: block;
        width: 100%;
        height: 2px;
        background-color: #000000;
        transform: translateY(-50%);
    }

    #hamburger::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #000000;
    }

    #hamburger::after {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 70%;
        height: 2px;
        background-color: #000000;
    }

    #hamburger.active {
        z-index: 1;
    }

    #hamburger.active span {
        /* 中央のバーを非表示にする */
        opacity: 0;
    }

    #hamburger.active::before,
    #hamburger.active::after {
        /* 上下のバーを中央に移動 */
        top: 50%;
        width: 100%;
        /* 下のバーの幅を修正 */
    }

    #hamburger.active::before {
        /* 上のバーを45度回転させる */
        transform: translateY(-50%) rotate(45deg);
        background-color: #FFFFFF;
    }

    #hamburger.active::after {
        /* 下のバーを-45度回転させる */
        transform: translateY(-50%) rotate(-45deg);
        background-color: #FFFFFF;
    }

    .toggle {
        transform: translateY(0);
        opacity: 1;
    }


    main {
        padding: 0 3vmin !important;
    }

    .flex-on-off {
        display: block !important;
    }

    .sub-menu-howto-build-house-class ul,
    .sub-menu-azumino-house-howto-roof-class ul,
    .sub-menu-azumino-wisdom-to-live-class ul,
    .sub-menu-company-profile-class ul {
        display: block;
    }

    .sub-menu-howto-build-house-class li:first-child,
    .sub-menu-azumino-house-howto-roof-class li:first-child,
    .sub-menu-azumino-wisdom-to-live-class li:first-child,
    .sub-menu-company-profile-class li:first-child {
        border-left: none;
        border-top: 1px solid #333;
    }

    .sub-menu-howto-build-house-class li,
    .sub-menu-azumino-house-howto-roof-class li,
    .sub-menu-azumino-wisdom-to-live-class li,
    .sub-menu-company-profile-class li {
        border-right: none;
        border-bottom: 1px solid #333;
    }

    /* フォーム */

    .item-frame {
        display: block;
    }

}