/**************************************************************
202511 固定ページ　修繕・改修　repair
**************************************************************/
/* タブメニュー */
.tab-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.tab-2>label {
    flex: 1 1;
    order: -1;
    opacity: .5;
    min-width: 70px;
    width: 20%;
    padding: .6em 1em;
    border-radius: 5px;
    background-color: #fff;
    font-size: 1rem;
    border: 1px solid #cdcdcd;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    opacity: 1;
}

.tab-2>label:hover {
    background-color: #EA5514;
    border: 1px solid #EA5514;
    color: #fff;
}

.tab-2 input {
    display: none;
}

.tab-2 a:link,
.tab-2 a:active,
.tab-2 a:visited {
    color: #344250;
}

.tab-2>div {
    display: none;
    width: 100%;
    padding: 1.5em 1em;
    background-color: #fff;
}

.tab-2 label:has(:checked) {
    background-color: #EA5514;
    border: 1px solid #EA5514;
    color: #fff;
}

.tab-2 label:has(:checked)+div {
    display: block;
}

/* タブ内コンテンツ部 */
.center {
    text-align: center;
}

.txt-wh {
    color: #fff;
}

.no-baloon {
    /*ふきだしなし*/
    background: #fff;
    padding: 32px 0;
    margin: 0 calc(50% - 50vw);
    /*width: 100%;*/
    box-sizing: border-box;
}

.baloon {
    background: #fff;
    padding: 32px 0;
    position: relative;
    margin: 0 calc(50% - 50vw);
    /*width: 100%;*/
    box-sizing: border-box;
}

.baloon>.wrap,
.no-baloon>.wrap {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto;
}

.large-center {
    /*見出しスタイル*/
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    line-height: 1.5;
}

.large-center+p {
    text-align: center;
}

.baloon::after {
    content: "";
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 0%) scalex(2);
    width: 0;
    height: 0;
    margin: 0 auto;
    border: 30px solid #fff5e2;
    border-color: #fff5e2 transparent transparent;
    z-index: 1;
}

.baloon:nth-of-type(even) {
    background: #fff5e2;
    padding: 32px 0;

}

.baloon:nth-of-type(even)::after {
    content: "";
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 0%) scalex(2);
    width: 0;
    height: 0;
    margin: 0 auto;
    border: 30px solid #fff5e2;
    border-color: #fff5e2 transparent transparent;
    z-index: 1;
}

.tab-2 section.baloon+section {
    padding: 62px 0 32px;
}

.midashi-underline {
    display: block;
    position: relative;
    color: #333;
    text-align: center;
    font-size: 2rem;
    margin: 1.8rem 0;
    margin: 1.8rem 0 3.5rem;
}

.midashi-underline:before {
    content: '';
    display: inline-block;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #EA5514;
}

.marker-y {
    text-align: center;
    display: block;
    margin: 2em auto;
    font-weight: bold;
    font-size: 1.5rem;
    position: relative;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.marker-y span {
    background-image: linear-gradient(0deg, #f9fb257d 0.35em, transparent 0.35em);
}

/* すべてのタブ内の特定エリア設定 */
#repair .w-flex li,
#renovation .w-flex li,
#taishin .w-flex li {
    list-style: none;
    width: 33.3%;
    aspect-ratio: 2 / 1;
    color: #fff;
    font-size: 1.25em;
    box-sizing: border-box;
    line-height: 9;
    letter-spacing: 1.5px;
    text-align: center;
}

#repair .w-flex li:nth-child(1) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/reno/sec01_01.jpg);
    background-size: cover;
}

#repair .w-flex li:nth-child(2) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/reno/sec01_02.jpg);
    background-size: cover;
}

#repair .w-flex li:nth-child(3) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/reno/sec01_03.jpg);
    background-size: cover;
}

#repair .w-flex li:nth-child(4) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/reno/sec01_04.jpg);
    background-size: cover;
}

#repair .w-flex li:nth-child(5) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/reno/sec01_05.jpg);
    background-size: cover;
}

#repair .w-flex li:nth-child(6) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/reno/sec01_06.jpg);
    background-size: cover;
}


.tab-2 .col-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px;
    max-width: 1100px;
    margin: 30px auto;
    box-sizing: border-box;
}



.menu-box {
    padding: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 21px 0 rgba(52, 66, 80, .21);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-box img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px 10px 0 0;
}

.tab-2 .menu-box h3 {
    margin: 1em 1em 0;
    text-align: left;
    color: #EA5514;
    font-size: 1.2em;
}

.tab-2 .menu-box hr+p {
    /*価格*/
    margin: 1em;
}

.tab-2 .menu-box h3+p {
    text-align: left;
    margin: 1em;
}

.tab-2 .menu-box hr {
    height: 1px;
    background: #cbcbcb;
    width: 90%;
    border: none;
}

.tab-2 .menu-box p.w-flex {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.tab-2 .menu-box p.w-flex span.atari {
    font-size: 0.8em;
    line-height: 1.3;
}

.tab-2 .atari-small {
    font-size: 0.67em;
    line-height: 1.3;

}

.tab-2 .menu-box p.w-flex span.price {
    font-size: 1.8em;
    margin-left: 10px;
    font-weight: bold;
    color: #EA5514;
}

.menu-box .flex>a {
    background: #eaeced;
    display: inline-block;
    font-size: .875rem;
    font-weight: bold;
    position: relative;
}


.menu-box .flex>a:nth-of-type(1) {
    /* お問い合わせ */
    border-radius: 0 0 0 10px;
    border-right: 1px solid #ccc;

}

.menu-box .flex>a:nth-of-type(1)::before {
    /* お問い合わせメールアイコン */
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    position: absolute;
    top: 50%;
    left: 9px;
    transform: translate(10px, -50%);
    background-image: url('../../../../image/reno/mail.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

.menu-box .flex>a:nth-of-type(2) {
    /* 電話 */
    border-radius: 0 0 10px 0;
}

.menu-box .flex>a:nth-of-type(2)::before {
    /* 電話アイコン */
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    position: absolute;
    top: 50%;
    left: 1px;
    transform: translate(10px, -50%);
    background-image: url('../../../../image/reno/phone.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

.tab-2 section.contact:last-of-type {
    padding: 62px 0 32px;
    margin-bottom: -130px;
}

.flex {
    display: flex;
}

.mail {
    background: #fef;
}

.tel {
    background: #dedede;
}

.flex a {
    display: inline-block;
    width: 50%;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}



.tab-2 .contact .w-flex {
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
}

.tab-2 .contact p {
    font-weight: bold;
}

.tab-2 .contact a {
    color: #333;
    background: #fff;
    max-width: 300px;
    border-radius: 100px;
    font-weight: bold;
    font-size: 1.2em;
    display: block;
    padding: 20px 60px 18px 60px;
    position: relative;
    text-indent: 1em;
}

.tab-2 .contact a.btn-mail::after,
.tab-2 .contact a.btn-call::after {
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translate(10px, -50%);
    background-image: url('../../../../image/reno/arrow_forward.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

.tab-2 .contact a.btn-mail::before {
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translate(10px, -50%);
    background-image: url('../../../../image/reno/mail.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

.tab-2 .contact a.btn-call::before {
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translate(10px, -50%);
    background: url('../../../../image/reno/phone.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

.tab-2 .contact a:hover {
    opacity: .7;
}

/* 修繕・改修＞施工事例 */
#repair-works .wrap.col-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

dl.works-box {
    background: #fff;
    box-sizing: border-box;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 8px 21px 0 rgba(52, 66, 80, .21);
    width: calc((100% - 30px) / 2);
}

dl.works-box img {
    width: 100%;
}

dl.works-box dt {
    color: #EA5514;
    font-size: 1.2em;
    margin: 0.5em 0;
}

/* 修繕箇所と周期 */
#repair-term {
    background: #fff5e2;
}

/*増築・リノベーション*/
#renovation .w-flex li:nth-child(1) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/reno/reno-01.webp);
    background-size: cover;
}

#renovation .w-flex li:nth-child(2) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/reno/reno-02.webp);
    background-size: cover;
}

#renovation .w-flex li:nth-child(3) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/reno/reno-03.webp);
    background-size: cover;
}

#renovation .w-flex li:nth-child(4) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/reno/reno-04.webp);
    background-size: cover;
}

#renovation .w-flex li:nth-child(5) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/reno/reno-05.webp);
    background-size: cover;
}

#renovation .w-flex li:nth-child(6) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/reno/reno-06.webp);
    background-size: cover;
}

.tab-2 .about-frame-r p,
.tab-2 .about-frame-l p {
    text-align: justify;
}

.tab-2 .about-frame-r h2,
.tab-2 .about-frame-l h2 {
    font-size: 20px;
    padding: 10px;
    padding-left: 13px;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.1em;
    position: relative;
    text-align: center;
}

.tab-2 .about-frame-r h2::after,
.tab-2 .about-frame-l h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 1px;
    background: #8d8d8d;
    position: absolute;
    transform: translateX(-50%);
    top: 110%;
    left: 50%;
}

.tab-2 .about-frame:nth-of-type(odd) {
    flex-direction: row-reverse;
}

#repair-term .wrap {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 21px 0 rgba(52, 66, 80, .21);
}


.tab-2 .contact {
    background: #EA5514;
}

#repair-term img {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

/* 太陽光 section#solar */
#solar .contact {
    padding: 32px 0 32px;
}

#solar-setting img {
    width: 100%;
}

#solar .waku {
    box-sizing: border-box;
}

#solar-merit .col-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px;
}



#solar table {
    width: 100%;
    overflow: scroll;
    border-radius: 10px;
    margin-top: 30px;
}

#solar table,
#solar td,
#solar th {
    border: 1px solid #ddd;
    border-collapse: collapse;
    padding: 10px;
}

tr:nth-child(1) {
    background: orange;
    text-align: center;
}

#solar td {
    background: #fff;
    text-align: center;
    font-weight: normal;
}

#solar .contact ol {
    display: flex;
    justify-content: center;
    list-style-position: inside;
    gap: 10px;
}

#solar .contact .waku {
    box-sizing: border-box;
    border: 1px solid #fff;
    margin: 30px auto;
    padding: 20px;
    max-width: 764px;
}

#solar .col-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 30px;
}



#solar-hojokin {
    padding-top: 32px;
}

#solar-hojokin th:nth-child(1) {
    width: 100px;
}

#solar-hojokin li {
    list-style-position: inside;
    text-align: left;
    text-indent: -1em;
    margin-left: 1em;
}



#solar-tax tr:nth-child(1)>td {
    background: #EA5514;
    color: #fff;
}

#solar-tax th {
    background: #fff;
    text-align: center;
}

/* 省エネ */


#energy h3 {
    color: #EA5514;
}

#energy .col-3 {
    grid-template-rows: repeat(1, 1fr);
}

#energy .col-3 img {
    width: 100%;
    aspect-ratio: 16 / 9;
}

#energy #dannetsu {
    text-align: left;

}

/* 耐震補強 */
#taishin span.reno-blue {
    color: #EA5514;
}

#taishin .col-3 {
    grid-template-rows: repeat(1, 1fr);
    margin-top: -10px;
}

#taishin ul.col-3 li {
    list-style: none;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    font-size: 20px;
    align-content: center;
    box-sizing: border-box;
    box-shadow: 0 0 5px 0px #b7b7b74f;
    text-align: center;
    width: 33%;
}

#taishin .w-flex li:nth-child(1) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/reno/taishin_bcp.jpg);
    background-size: cover;
}

#taishin .w-flex li:nth-child(2) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/reno/taishin_hourei.jpg);
    background-size: cover;
}

#taishin .w-flex li:nth-child(3) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/reno/taishin_tenken.jpg);
    background-size: cover;
}

#taishin .about-frame {
    align-items: center;
}

/**************************************************************
モバイル
**************************************************************/
@media (max-width: 768px) {


    .tab-2 {
        width: 100%;
        justify-content: flex-start;
        gap: 0;
        margin-bottom: 50px;
    }

    .tab-2>label {
        flex: 1 1;
        order: -1;
        padding: 5px;
        font-size: 14px;
        box-sizing: border-box;
        align-content: center;
        line-height: 1.3;
        margin: 5px 0;
    }

    .tab-2>div {
        padding: 0;
    }

    .midashi-underline {
        font-size: 1.8rem;
        margin: -30px 0 40px;
    }

    .tab-2 .midashi-apply {
        margin: 20px 0;
        font-size: clamp(15px, 4vw, 22px);

    }

    .tab-2 .midashi-apply span::before {
        left: -14px;
        top: 5px;
        height: 20px;
    }

    .tab-2 .midashi-apply span::after {
        right: -14px;
        top: 5px;
        height: 20px;
    }

    .tab-2 .baloon p {
        margin: 0 auto;
    }

    .baloon:nth-of-type(even)::after {
        top: 99.9%;
    }

    .baloon>.wrap,
    .no-baloon>.wrap {
        width: 100%;
    }

    .tab-2 section.contact:last-of-type {
        margin-bottom: -81px;
    }

    /* #repair-issue こんなお困りごとはありませんか？ */
    .tab-2 ul.w-flex {
        width: 100%;
    }

    #repair .w-flex li,
    #renovation .w-flex li {
        width: 50%;
        text-align: center;
        font-size: clamp(0.875rem, 0.517rem + 1.53vw, 1.25rem);
    }

    .tab-2 .baloon p.marker-y {
        margin: 50px auto 30px;
        text-align: center;
        display: block;
        font-weight: bold;
        font-size: 1.5rem;
        position: relative;
    }

    /* #repair-menu 修繕メニュー */
    .tab-2 #repair-menu h2+p,
    .tab-2 .contact p {
        text-align: center;
    }

    .tab-2 .col-3 {
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 2%;
        grid-row-gap: 20px;
        max-width: 768px;
        width: 95%;
        margin: 30px auto;
    }

    .tab-2 .col-3 .menu-box {
        width: 100%;
        margin: 0 auto;
        box-shadow: 0 8px 5px 0 rgba(52, 66, 80, .21);
    }

    .tab-2 .menu-box h3+p {
        font-size: 13px;
    }

    .tab-2 .menu-box hr {
        margin: 0 auto;
    }

    .tab-2 .menu-box .flex {
        display: flex;
        flex-direction: column;
    }

    .menu-box .flex>a {
        display: block;
        width: 100%;

    }

    .tab-2 .menu-box p.w-flex span.atari {
        display: block;
        margin-bottom: 0.5em;
    }

    /*.tab-2 section.baloon+section {
        padding: 0 0 32px;
    }*/

    .menu-box .flex>a:nth-of-type(1) {
        border-radius: 0;
        border-right: none;
        border-bottom: 1px solid #ccc;
    }

    .menu-box .flex>a:nth-of-type(2) {
        border-radius: 0 0 10px 10px;
        padding-left: 20px;
    }

    .menu-box .flex>a:nth-of-type(1)::before {
        content: '';
        display: inline-block;
        width: 1.2em;
        height: 1.2em;
        position: absolute;
        top: 50%;
        left: 1px;
        transform: translate(10px, -50%);
        background-image: url('../../../../image/reno/mail.png');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: bottom;
    }

    .menu-box .flex>a:nth-of-type(2)::before {
        content: '';
        display: inline-block;
        width: 1.2em;
        height: 1.2em;
        position: absolute;
        top: 50%;
        left: 1px;
        transform: translate(10px, -50%);
        background-image: url('../../../../image/reno/phone.png');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: bottom;
    }

    /* #repair-term 修繕箇所と周期 */
    .tab-2 #repair-term img {
        width: 90%;
        margin: 0 5% 5%;
    }


    #repair-term .wrap {
        width: 90%;
    }

    /* お問い合わせエリア */
    .tab-2 .wrap hr {
        box-shadow: none;
        height: 1px;
        border: none;
        background: #ccc;
        width: 70%;
        margin: 17px auto;
    }

    .tab-2 .contact a {
        min-width: 180px;
        text-align: center;
    }

    /* 太陽光 */
    #solar .contact .waku {
        width: 90%;
    }

    #solar .waku .txt-center {
        font-size: 1rem;
    }

    #solar .contact ol {
        gap: 10px;
        flex-direction: column;
        width: 45%;
        margin: 0 auto;
    }

    #solar .col-3 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        grid-gap: 10px;
    }

    #solar-hojokin tr {
        display: block;
    }

    #solar-hojokin tr:nth-child(1) {
        display: none;
    }

    #solar-hojokin .shocho {
        font-weight: bold;
        background-color: #EA5514;
        color: #fff;
    }

    #solar-hojokin th,
    #solar-hojokin td {
        display: block;
    }

    #solar-hojokin .sp {
        background: #ffe3af;
        text-align: center;
    }



}

/* 省エネ #energy */

#energy {
    margin-top: 50px;
}

#energy section.m-t100 {
    margin-top: 40px;
}

#energy section.m-t100 .flex {
    flex-direction: column;
    padding: 10px;
}

#energy .col-3 {
    gap: 10px;
    margin-top: 0;
}

#energy section#dannetsu h3 {
    text-align: left;
    margin-left: 10px;
    margin-bottom: 16px;
}

/* 耐震補強 */
#taishin-issue .wrap {
    margin: 30px auto 0;
}

#taishin-issue .baloon:nth-of-type(1) {
    padding: 32px 0 0;
}

#taishin .baloon:nth-of-type(1)::after {
    border-color: #fff transparent transparent;
}

#taishin .col-3 {
    display: flex;
    padding: 0;
    margin: 0 auto;
}

#taishin ul.col-3 li {
    box-shadow: 0 0 5px 0px #a8c9f8;
    margin: 0 auto 10px;
}

#taishin .w-flex {
    text-align: center;
}

#taishin .baloon:nth-of-type(odd):after {
    border: 30px solid #fff;
    border-color: #fff transparent transparent;
}



@media (max-width: 500px) {
    .tab-2>label {
        min-width: 100%;
        padding: 10px;
    }

    /*修繕・改修*/
    #repair-works .wrap.col-2 {
        gap: 10px;
    }

    dl.works-box {
        width: 100%;
        margin: 0 10px;
    }

    /* 太陽光 */
    #solar .contact ol {
        width: 60%;
    }

    #solar-hojokin th .sp {
        display: block;
    }

    /* 耐震補強 */
    #taishin .col-3 {
        flex-direction: column;
    }

    #taishin ul.col-3 li {
        width: 100%;
    }
}