html, body {
    /* height: 100%;*/
}
body {
    background-color: #f6babc;

}

main{
    position: relative;
    z-index: 50;
    background-image: url(../../images/sp-2024/bg.png);
    width: 100%;
    height: auto;
    background-size: contain;
    z-index: 1; 
}
main::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 10vh;
    top: 80px;
    background-image: url(../../images/sp-2024/ribbons.png);
    background-position:bottom;
    background-size: contain;
    background-repeat: repeat-x;
}
.navbars-box.sub {
    height: 92px;

}
.navbars-box-top.sub {
    padding-top: 92px;
}
/*選單與標題*/
.top-menu-btn-box>div, .top-menu-btn-box>a {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
    height: 46px;
    background-color: #3E3A39;
    color: #fff;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, opacity .15s ease-in-out;
}
.top-menu-btn-box>div, .top-menu-btn-box>a {
    border-right: 1px solid #595757;
}
.top-menu-btn-box>div:last-child, .top-menu-btn-box>a:last-child {
    border-right: 0px;
}
.top-menu-btn-box>div:hover, .top-menu-btn-box>a:hover {
}
.top-menu-btn-box>div.active , .top-menu-btn-box>a.active {
}
.nav-pills .nav-link {
    border-radius: 0px;
    padding: 0px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: inherit;
    background-color: whitesmoke;
}
/*選單與標題*/



/*精選好屋*/
.actions-object-search-box>div:nth-child(1), .actions-object-search-box>div:nth-child(2) {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
}
.actions-object-search-box>div {
	padding-right: 12px;
}
.actions-object-search-box>div:last-child {
	padding-right: 0px;
}
@media (max-width: 680px) {
.actions-object-search-box>div:nth-child(1), .actions-object-search-box>div:nth-child(2) {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}
.actions-object-search-box>div {
	padding-right: 0px;
	padding-bottom: 12px;
}
.actions-object-search-box>div:last-child {
	padding-bottom: 0px;
}
.actions-object-search-box>div:nth-child(1) {
	padding-right: 6px;
}
.actions-object-search-box>div:nth-child(2) {
	padding-left: 6px;
}
}

.actions-object-data>span::after {
	color: #DCDDDD;
    margin: 0;
	padding: 0;
    content: "︱";
}
.actions-object-data>span:last-child::after {
    content: "";
}
.actions-page-num {
	margin-top: 16px;
	width: 100%;
	text-align: center;
	padding: 8px 12px;
	border-top: 1px solid #e6e6e6;
	border-bottom: 1px solid #e6e6e6;
	background-color: #EFEFEF;
}
.actions-object-row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: center;
    justify-content: center;
}
.actions-object-box {
    overflow: hidden;
    width: 262px;
    height: auto;
    flex: 0 0 262px;
    max-width: 262px;
    padding: 12px;
    margin: 16px 8px 0px 8px;
    border: 1px solid #e6e6e6;
    background-color: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.actions-object-box:nth-child(1), .actions-object-box:nth-child(2), .actions-object-box:nth-child(3), .actions-object-box:nth-child(4) {
    margin: 0px 8px 0px 8px;
}
@media (max-width: 1192px) {
.actions-object-box:nth-child(4) {
    margin: 16px 8px 0px 8px;
}
}
@media (max-width: 912px) {
.actions-object-box:nth-child(3) {
    margin: 16px 8px 0px 8px;
}
}
@media (max-width: 632px) {
.actions-page-num {
	margin-top: 0px;
	margin-bottom: 16px;
}
.actions-object-box:nth-child(1), .actions-object-box:nth-child(2) {
    margin: 16px 8px 0px 8px;
}
/*
.actions-object-row {
    padding-left: 4px;
    padding-bottom: 12px;
    overflow-x: auto;
    
    -ms-flex-wrap: nowrap!important;
    flex-wrap: nowrap!important;
    -ms-flex-pack: start!important;
    justify-content: start!important;    
    
    -webkit-overflow-scrolling: touch;    
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    -moz-user-select: moz-none;
    -ms-user-select: none;
    user-select: none;    
}
*/
.actions-object-box {
    flex: 0 0 100%;
    max-width: 100%;
    /*margin: 0px 8px 0px 8px!important;*/
    margin: 0px 0px 14px 0px!important;
    box-shadow: 0 0px 0px rgba(0, 0, 0, .0);
}
.actions-object-box:last-child {
    margin: 0px 0px 0px 0px!important;
}
}

.actions-object-box>div {
    margin-bottom: 4px;
}
.actions-object-box>div:last-child {
    margin-bottom: 0px;
}
.actions-object-image {
    width: 100%;
    height: 168px;
}
.mw-60px {
	max-width: 60px;
}
/*精選好屋*/

/*主視覺區塊*/

.carousel-item{
    height: auto;
    display: block;
    margin: 0 auto;
    background-color: transparent;
}
.carousel-item div img{
    width: 100%;
    height: auto;
}
.main-img-box{
    margin-top: calc(10vh + 90px);
}

.main-img-box{
    position: relative;
    z-index: 60;
}
.main-img-texts{
    padding: 2.5rem;
    padding-top: 10rem;
    margin-top: -10rem;
    position: relative;
    z-index: 55;
    color: #000;
}

.main-img-text2{

    font-weight: bold;
    font-size: 1.8rem;
    line-height: 1.5;
}
.back-search{
    position: relative;
    margin-right: 11rem;
}
.back-search::after{
    content: "";
    position: absolute;
    height: 2.5rem;
    width: 11rem;
    background-image: url(../../images/sp-2024/search.jpg);
    background-position: left;
    background-size: contain;
    background-repeat: no-repeat;
}
@media (max-width: 878px) {
    .main-img-texts{
        padding: 1.2rem;
        padding-top: 8rem;
        margin-top: -8rem;
    }
    .main-img-text2{
        font-size: 1rem;
    }
    .back-search{
        display: block;
    }
    .back-search::after{
        height: 1.3rem;
        width: 6.8rem;
    }
}

@media (max-width: 680px) {
    .main-img-texts{
        padding: 1rem;
        padding-top: 8rem;
        margin-top: -8rem;
    }
    .main-img-text2{
        font-size: 1rem;

    }
}
@media (max-width: 320px) {

}
/*主視覺區塊*/

/*活動公告*/
.img-padding {
	padding: 16px 16px 0px 16px;
}
.sp-event-container {
    padding: 0 0px!important;
}
.sp-event-box {
    position: relative;
    display: inline-block;
    width: 100%;
    padding: 16px;
    margin: 0px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
}
.sp-safe-t-box {
	width: max-content;
    display: inline-block;
    color: #fff;
    padding: 4px 8px;
    background-color: #3E3A39;
    border-radius: 0px;
}
.sp-safe-t-box.item1 {
    background-color: #ea5514;
}
.sp-safe-t-box.item2 {
    background-color: #c30d23;
}
.sp-safe-t-box.item3 {
    background-color: #956134;
}
.sp-safe-t-box-r {
	width: max-content;
    display: inline-block;
    color: #fff;
    padding: 4px 8px;
    background-color: #e60012;
    border-radius: 0px;
}
.sp-safe-number-r {
    color: #fff;
    width: 25px;
    height: 25px;
    background-color: #e60012;
    border-radius: 50%;
}
.sp-event-img1a {
    float: right;
    max-width: 200px;
    padding: 140px 0 0 12px;
    margin: 12px 0px -24px 0;
}
.sp-event-img1b {
    width: 100%;
    text-align: right;
    margin: 12px 0 -12px 0px;
    display: none;
}
.sp-event-img1b img {
    max-width: 250px!important;
}
@media (max-width: 878px) {
.sp-event-img1a {
    padding: 182px 0 0 0;
}
}
@media (max-width: 600px) {
.sp-event-box {
    padding: 16px;
}
.sp-event-img1a {
    display: none;
}
.sp-event-img1b {
    display: block;
}
}
.sp-event-col-box {
    width: 100%;
    padding: 16px;
    border: 1px dashed #e6e6e6;
	background-color: whitesmoke;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
}
.col-pr {
    padding-right: 8px;
}
.col-pl {
    padding-left: 8px;
}
.col-px {
    padding-left: 8px;
    padding-right: 8px;
}
.sp-event-item-box {
    max-width: 150px;
}

.sp-safe-number-r-box {
    position: absolute;
    right: 0px;
    bottom: 0;
    display: block;
    width: 4.4rem;
    height: 4.4rem;
    line-height: 4rem;
    border-radius: 2.2rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    background-color: #e60012;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .1);
}
@media (max-width: 680px) {
.col-pr {
    padding-right: 0px;
}
.col-pl {
    padding-left: 0px;
}
.col-px {
    padding-left: 0px;
    padding-right: 0px;
}
.sp-safe-number-r-box {

    width: 3rem;
    height: 3rem;
    line-height: 3rem;
    border-radius: 1.5rem;
    font-size: 1.2rem;

}
/*活動單位*/
.organization-box>div {
    margin: 0px 12px 12px 12px;
}
.organization-img {
    height: 41px;
}

@media (max-width: 680px) {
.organization-img {
    width: 33.33%;
    height: auto;
}
.organization-box>div {
    margin: 0px 0px 12px 12px;
}
.organization-box>div:first-child {
    margin: 0px 0px 4px 12px;
}
}
@media (max-width: 320px) {
.organization-img {

}
}

/*注意事項、得獎名單*/
.modal-box {

}
.modal-box.bg {
    position: relative;
}
.modal-box.bg::after {
    content : "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity : 0.8;
    z-index: -1;
    background-size: cover;    
    background-attachment: fixed;
}
.sp-safe-ol-box>li {
    margin-bottom: 8px;
}
.sp-safe-ol-box>li:last-child {
    margin-bottom: 0px;
}

.justify-content-c-to-s {
    -ms-flex-pack: center!important;
    justify-content: center!important
}
}
@media (max-width: 680px) {
.justify-content-c-to-s {
    -ms-flex-pack: start!important;
    justify-content: start!important
}
}
.mt-2 .fas.fa-map-marker-alt {
    margin-right: 4px;
}


/*其他*/
.col-md-333 {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%
}
.actions-title-1 {
	text-align: center;
    background-color: #3E3A39;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    padding: 10px 16px;
    margin: -16px;
    border-radius: 4px 4px 0 0;
}
.actions-title-1.house {
    background-color: #e60012;
    margin: -16px -16px 16px -16px;
}
.actions-title-2 {
	text-align: center;
    background-color: #EFEFEF;
    color: #898989;
    font-size: 24px;
    font-weight: 500;
    padding: 8px;
    margin: 0px -16px;
    border-radius: 4px 4px 0 0;
}
.actions-box {
    max-width: 100%;
    /*max-width: 768px;*/
    padding: 16px 16px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0,0,0,.1)
}
.actions-box.house {
    max-width: 100%;
    padding: 16px 16px 16px 16px;
}

.photo-col>div {
	padding: 0px 8px;
	margin-bottom: 12px;
}
.photo-col>div:nth-last-child(1), .photo-col>div:nth-last-child(2) {
	margin-bottom: 0px;
}
.photo-col>div img {
	border: 1px dashed #DCDDDD;
}
@media (max-width: 680px) {
.photo-col>div {
	padding-left: 0px;
	padding-right: 0px;
	padding-bottom: 12px;
	border-bottom: 1px dashed #DCDDDD;
	margin-bottom: 12px;
}
.photo-col>div:nth-last-child(2) {
	margin-bottom: 12px;
}
.photo-col>div:last-child {
	padding-bottom: 0px;
	border-bottom: 0px dashed #DCDDDD;
	margin-bottom: 0px;
}
}

  @media (max-width: 500px){
  .video-container iframe{
    width: 330px;height: 213px;
    }
  }