/**************************************************************
202503 固定ページ 修繕・改修 repair
**************************************************************/
.txt-center {
    text-align: center;
}

/* タブメニュー */
.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;
    color: #333;
    font-size: 1rem;
    border: 1px solid #cdcdcd;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    opacity: 1;
}

.tab-2>label:hover {
    background-color: #e4007f;
    border: 1px solid #e4007f;
    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: #e4007f;
    border: 1px solid #e4007f;
    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: 100vw;
}

.baloon {
    background: #fff;
    padding: 32px 0;
    position: relative;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
}

.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;
}

.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 #fff;
    border-color: #fff transparent transparent;
    z-index: 1;
}

.baloon:nth-of-type(even) {
    background: #ededed;
    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 #fff;
    border-color: #ededed 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: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #e4007f;
}

.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/repair/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/repair/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/repair/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/repair/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/repair/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/repair/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;
}

.tab-2 .col-2 {
    display: grid;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px;
}

.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: #e4007f;
    font-size: 1.2em;
    text-align: center;
}

.tab-2 .menu-box hr+p {
    /*価格*/
    margin: 1em;
    text-align-last: right;
}

.tab-2 .menu-box h3+p {
    text-align: left;
    margin: 1em;
}

.tab-2 .menu-box hr {
    height: 1px;
    background: #cbcbcb;
    width: 90%;
    border: none;
    display: none;
    /* 一時的非表示 */
}

.tab-2 .menu-box p.w-flex {
    justify-content: center;
    align-items: center;
    display: none;
    /* 一時的非表示 */
}

.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: #098bde;
}

.menu-box .flex>a {
    background: #ff1698;
    display: inline-block;
    font-size: .875rem;
    font-weight: bold;
    position: relative;
    color: #fff;
    text-indent: 1em;
}

.menu-box .flex>a:hover {
    opacity: 0.6;
}

.menu-box .flex>a:nth-of-type(1) {
    /* お問い合わせ */
    border-radius: 0 0 0 10px;
    border-right: 1px solid #fff;
    letter-spacing: 0.03em;
    text-indent: 1em;
}

.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/repair/mail.svg');
    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: 9px;
    transform: translate(10px, -50%);
    mask-image: url(../../../../image/repair/phone.svg);
    mask-size: contain;
    mask-repeat: no-repeat;
    background-color: currentColor;
}

.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;
}

#repair-term .wrap {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 21px 0 rgba(52, 66, 80, .21);
}

#repair-term img {
    margin: 0 auto;
    display: block;
    padding: 0 0 50px;
}

/* 施工事例 */
#repair-works .works-flex {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 30px;
}

#repair-works .works-flex figure {
    display: flex;
    flex-direction: column;
    width: calc((100% - 50px) / 2);
}

#repair-works .works-flex figcaption {
    width: 90%;
    text-align: center;
    display: block;
    background: #e4007f;
    color: #fff;
    margin: 10px auto 0;
}

#repair-works .works-flex figure:nth-of-type(odd) figcaption {
    background: #bf9224;
}

.works-flex figure img {
    width: 90%;
    margin: 0 auto;
}

.works-flex img[src$="svg"] {
    width: 50px;
}

#repair-term,
.tab-2 .contact {
    background: #e4007f;
    text-align: center;
}

.tab-2 .contact .w-flex {
    justify-content: center;
    align-items: 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 40px 18px 40px;
    position: relative;
    text-indent: 1em;
    width: 300px;
    box-sizing: border-box;
}

.tab-2 .contact a.btn-mail::before {
    content: '';
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    position: absolute;
    top: 53%;
    left: 18px;
    transform: translate(10px, -50%);
    background-image: url('../../../../image/repair/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: 54%;
    left: 45px;
    transform: translate(10px, -50%);
    background: url('../../../../image/repair/phone.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

.tab-2 .contact a:hover {
    opacity: .7;
}

/*増築・リノベーション*/
#renovation .w-flex li:nth-child(1) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/repair/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/repair/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/repair/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/repair/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/repair/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/repair/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;
}

.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;
}

/* 省エネ */
#energy h3 {
    color: #098bde;
}

#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: #098bde;
}

#taishin .col-3 {
    grid-template-rows: repeat(1, 1fr);
    padding: 60px;
}

#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 #a8c9f8;
}

#taishin .w-flex li:nth-child(1) {
    background: linear-gradient(rgba(0, 0, 60, 0.4), rgba(0, 0, 60, 0.4)), url(../../../../image/repair/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/repair/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/repair/taishin_tenken.jpg);
    background-size: cover;
}

#taishin .about-frame {
    align-items: center;
}