@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

body.performance .pageMv_warp:after {
    background: url(https://www.rebible.co.jp/wp/wp-content/themes/rebible/img/performance/p-MV.jpg)  center center / cover no-repeat;}
.wrap-performance{background:#f9f4ed}

@media (min-width: 896px) {}

	.p-title{margin-top: 24px!important; font-size:3.8em!important;  font-feature-settings: "palt";}

    .wrap-performance{width: 100%;box-sizing: border-box;}

	h2.p-head{font-size:30px;
	font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
	color:#1e1510  }
	h2.p-head::first-letter{color:#da8430}
	h2.p-head span{font-size:16px; font-weight:bold; margin-left: 20px;}
	
    .p-table{width: 100%; background: #ffffff; border-radius: 5px; padding: 0;}
    .p-table tr{border-bottom: solid 2px #f9f4ed;}
	.p-table th{font-weight: bold; padding: 20px; }
    .p-table td{ padding: 20px; line-height: 1.8;}
    ul.d-wrap{display: flex; justify-content:space-between;padding: 0;margin: 0;flex-wrap: wrap; width: 100%;}
    ul.d-wrap li{width:20%; }

    h3.p-h3{width: 100%; background: #da8430; font-size: 18px; padding: 10px 0 ; color: #ffffff; margin: 20px 0;border-radius: 5px; display: block;
        
    }
    h3.p-h3 span{margin-left: 20px; font-weight: bold;}
    .p-wrap{width: 100%; background: #ffffff; border-radius: 5px; padding: 20px 0; display: block; margin-bottom: 20px;}
    .p-wrap p{font-size: 24px; font-weight: bold; text-align: center;
        span{font-size: 36px; font-weight: bold; text-align: center; color:#da8430;}
    }


    img.map{width: 100%; height: auto; object-fit: contain; margin-bottom: 20px;}


 
.c-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 75%; 
    
    overflow: hidden;
    margin-bottom: 20px; 
}


.c-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}


    .p-flexwrap{width: 100%; margin: 0 0 20px 0; padding: 0; display: flex; flex-wrap: wrap;gap: 2%;}
    .p-flexwrap::after {content: ""; display: block; width: 32%;}

    .p-flexwrap .p-flex-content{width: 32%; aspect-ratio: 340 / 240; border-radius: 5px; position:relative; margin-bottom: 20px;border-radius: 5px;overflow: hidden;display: block;  }  
    .p-flexwrap .p-flex-content img{width: 100%; height: 100%; object-fit: cover; }
    .p-flexwrap .p-flex-content h4{background: #da8430; color: #ffffff;font-size: 16px; width: 100%; padding: 5px 0; position: absolute; bottom: 0; left: 0;
        display: flex;justify-content: space-between;
        span{margin:0 20px; font-weight: bold;}
        &::after {
                    content: "";
                    display: block;
                    width: 8px; 
                    height: 8px; 
                    border-top: 2px solid #ffffff;
                    border-right: 2px solid #ffffff;
                    transform: rotate(45deg);
                    margin-right: 10px;
                    margin-top: 10px;
                }
        @media (max-width: 896px) {
                                    font-size: 13px;
                                   padding: 1px 0; 
                                    }        
    }
    
    .p-flexwrap .p-flex-content a{width: 100%; aspect-ratio: 340 / 240; position: absolute; top:0; left: 0; display: block;transition: opacity 0.3s ease;background-color: rgba(0,0,0,0.2);opacity: 0;
        &:hover{opacity: 1;}}


/*--一覧--*/



.p-flexwrap_list {
    width: 100%;
    margin: 0 0 20px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0; 
}


.p-flexwrap_list a {
    text-decoration: none;
    display: block;
    width: 100%;
}
.p-flexwrap_list a:hover {
    color: #1e1510;
}


.p-flexwrap_list .p-flex_list-content {
    width: 100%; 
    margin-bottom: 30px; 
    border-radius: 5px;
    overflow: hidden;
    display: block;
    background: #ffffff;
    box-shadow: 10px 10px 0 0 #edb772;
    position: relative; 
    height: 0;
    padding-top: 59.09%; /* 高さを強制固定 */
}


.p-flexwrap_list .p-flex_list-content img {
    position: absolute; 
    top: 0;             
    left: 0;            
    width: 100%;
    height: 100%; 
    object-fit: cover;
    margin: 0;
    display: block;
}

.p-flexwrap_list .p-flex_list-content .text {
    width: 100%; 
    position: absolute;
    bottom: 0; 
    left: 0;
    background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 70%);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 70%);
    padding: 30px 4% 15px 4%; 
    box-sizing: border-box;
    z-index: 2; 
}
.p-flexwrap_list .p-flex_list-content .text h3 {
    font-size: 16px; 
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.1;
    font-feature-settings: "palt";
    color: #1e1510;
}
.p-flexwrap_list .p-flex_list-content .text p {
    font-size: 12px; 
    line-height: 1.2;
    margin: 0;
    color: #1e1510;
}


@media (min-width: 896px) {
    /* PCは要素の隙間をあける */
    .p-flexwrap_list {
        gap: 2%; 
    }
    /* 最後の段の左寄せ */
    .p-flexwrap_list::after {
        content: "";
        display: block;
        width: 24%;
    }
    
    /* PCは横4並びに戻す、比率の解除 */
    .p-flexwrap_list .p-flex_list-content {
        width: 24%; 
        aspect-ratio: 285 / 340;
        margin-bottom: 20px;
        position: static; 
        height: auto;
        padding-top: 0;
    }

    /* 画像のPC用リセット */
    .p-flexwrap_list .p-flex_list-content img {
        position: static; 
        width: 100%;
        height: auto;
        aspect-ratio: 285 / 200; 
        margin: 0 0 10px 0;
    }

    /* テキストエリアのPC用リセット */
    .p-flexwrap_list .p-flex_list-content .text {
        width: 94%;
        margin: 0 auto;
        position: static; 
        background: none; 
        padding: 0; 
    }
    .p-flexwrap_list .p-flex_list-content .text p {
        font-size: 14px; 
    }
}

/*--実績タグ詳細ページ--*/
.p-performance-detail{width:100% ; padding: 0 0 20px 0; background: #ffffff;}

/* ギャラリー全体の枠 */
.p-photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0; 
    width: 100%;
}

.p-photo-gallery__item {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
}
.p-photo-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.p-photo-gallery__item.-large {
    grid-column: 1 / 5;
  
    grid-row: auto;
}

@media (min-width: 768px) {
   

    .p-photo-gallery__item.-large {
        
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
}




/* ==========================================
   lightbox
========================================== */


.p-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); 
    z-index: 99999; /* 一番手前に表示 */

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    
    /* 中身の画像を画面の真ん中に配置 */
    display: flex;
    justify-content: center;
    align-items: center;
}


.p-gallery-overlay:target {
    opacity: 1;
    pointer-events: auto; /* クリックできるようにする */
}

.p-gallery-overlay__close-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: zoom-out;
}

.p-gallery-overlay__content {
    position: relative;
    max-width: 85%;
    max-height: 85%;
    background: #000;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.p-gallery-overlay:target .p-gallery-overlay__content {
    transform: scale(1);
}

/* 拡大画像自体のサイズ調整 */
.p-gallery-overlay__content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain; /* 画面からはみ出さないように綺麗に収める */
    display: block;
}


.p-gallery-overlay__close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s;
}
.p-gallery-overlay__close-btn:hover {
    color: #ccc;
}


/* ポップアップが開いている時、ヘッダーのz-indexを強制的に下げる */
:target ~ .pageMv_warp,
:target ~ * .pageMv_warp,
body:has(:target) .pageMv_warp { 
    z-index: 1 !important;
}




.p-detail-wrap{width: 94%; margin: 20px auto; display: block;
        h3{font-size: 24px; font-weight: bold;}
        }

/* テーブル全体の枠 */
.p-info-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid #f9f4ed; /* 一番上の線 */
}


.p-info-table__title,
.p-info-table__content {
    padding: 15px;
    margin: 0;
    font-size: 14px;
    border-bottom: 1px solid #f9f4ed; /* 下線 */
}


.p-info-table__title {
    background-color: #f9f4ed;
    font-weight: bold;
}


.p-info-table__content {
    background-color: #fff;
    border-right: 1px solid #f9f4ed;
}


@media (min-width: 896px) {
    .p-info-table {
        grid-template-columns: 20% 30% 20% 30%;
    }

    .p-info-table__title {
        background-color: #f9f4ed;
    }
}




.p-related-posts {
    margin-top: 60px;
    width: 100%;
}



.p-related-posts__btn-wrapper {
    text-align: center;
    margin-top: 40px;
    width: 100%;
}
.c-btn-more {
    display: inline-block;
    background-color: transparent;
    color: #1e1510; 
    border: 1px solid #1e1510;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    padding: 14px 48px; 
    border-radius: 4px;

    transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}


.c-btn-more:hover {
    background-color: #1e1510; 
    color: #fff; 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(30, 21, 16, 0.15); 
}

/* CTA */


.c-cta-section {
    width: 100%;
    padding: 40px 20px;
    background-color: #ffffff;
    box-sizing: border-box;
    margin-top: 60px;
}

.c-cta-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.c-cta-image {
    width: 100px;
    margin-bottom: 20px;
}
.c-cta-image img {
    width: 100%;
    height: auto;
    display: block;
}

.c-cta-content {
    width: 100%;
}

.c-cta-title {
    color: #e67e00;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 24px 0;
    line-height: 1.4;
    text-align: center;
}

.c-cta-action-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.c-cta-phone-box {
    background-color: #fdf6ee; 
    padding: 20px;
    border-radius: 4px;
    box-sizing: border-box;
}
.c-cta-phone-text {
    font-size: 14px;
    color: #333333;
    margin: 0 0 10px 0;
    line-height: 1.5;
    text-align: center;

}

.c-cta-phone-number {
    font-size: 28px;
    font-weight: bold;
    color: #e67e00!important;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 5px;
    line-height: 1.2;
    text-align: center;
}

.c-cta-phone-number::before {
    content: "📞";
    font-size: 22px;
    margin-right: 6px;
    vertical-align: middle;
}

.c-cta-phone-time {
    font-size: 13px;
    color: #333333;
    margin: 0;
    text-align: center;
    font-feature-settings: "palt";
}


.c-cta-email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e67e00; 
    color: #ffffff!important;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    box-sizing: border-box;
    transition: background-color 0.3s, transform 0.2s;
}
.c-cta-email-btn:hover {
    background-color: #cc7000; 
    transform: translateY(-2px);
    text-decoration: none;
}
.c-cta-email-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
}



@media (min-width: 896px) {
    
    .c-cta-section {
        padding: 30px 20px;
    }

   
    .c-cta-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        text-align: left;
    }

    
    .c-cta-image {
        width: 120px;
        margin-bottom: 0;
        margin-top: 10px;
    }

   
    .c-cta-content {
        width: calc(100% - 150px);
    }

    .c-cta-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    
    .c-cta-action-box {
        flex-direction: row;
        align-items: stretch;
        gap: 20px;
    }

   
    .c-cta-phone-box {
        width: 52%;
        padding: 10px 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    
    .c-cta-phone-number {
        pointer-events: none;
        cursor: default;
    }

    .c-cta-email-btn {
        width: 48%;
    }
}



@media only screen and (max-width: 896px) {
    .p-title{margin-top: 5px!important; font-size:2.4em!important}
	h2.p-head{font-size:20px; line-height: 1.2;}
	h2.p-head span{font-size:12px; font-weight:bold; margin-left: 0px; display: block; margin-bottom: 10px;}
    ul.d-wrap li{width:33%; }

    h3.p-h3{font-size: 12px;}
    .p-wrap p{font-size: 12px;}
    .p-wrap p span{font-size: 18px;}

    .p-flexwrap{gap: 4%;}
    .p-flexwrap::after {content: ""; display: block; width: 48%;}

    .p-flexwrap .p-flex-content{width: 48%; border-radius: 5px; position:relative; margin-bottom: 20px;border-radius: 5px;overflow: hidden;display: block;  }  

}

