html{
    background-color: white;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    margin: 0px;
    background-color: #cccccc;
}

h2 {
    
    font-weight:300;
    font-size: 3.2em;
    margin: 0 auto ;
    text-align: center;
}

.background{
  max-width: 1200px;      
  margin: 0 auto;         
  background-color: #fff; 
  min-height: 100vh;     
  box-sizing: border-box;
}

/*ロゴ*/
.header{
    background-color: black;
    height: 89px;
}

.header .logo_bace_center{
    margin: 0 auto;
    max-width: 1500px;
}

.header .logo_bace_center .omura_logo{
    margin: auto 15px;
}

.header .logo_bace_center .omura_logo img{
    margin-top:  15px;
    margin-bottom: 15px;
}

.news_headtext{
    max-width: 1200px;
    margin: 0 auto ;
    background-color: white;
}

/*検索*/
/*検索窓表示ボタン */

#search_icon{
    position: fixed;
    font-size: 2em;
    z-index:999;

}

@media screen and (max-width: 1000px) {
    #search_icon{   
    font-size: 4em;
}

}

/* 検索窓（全般） */
#search_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

#search_list {
  display: none;
  position: fixed;
  padding: 12px;
  z-index: 1000;
  background:#cccccc; 
}

#search_list h3{
    margin: 5px;
}

#search_list p{
    font-size: 0.5em;
    text-align: center;
    padding-right: 5px;
}

/* 表示状態 */
#search_overlay.is-open,
#search_list.is-open {
  display: block;
}

.search_list input {
    height: 28px; 
}

/*検索条件 */
.tag-btn {
    height: 36px;
    padding: 5px 8px;
    color: white;
    border: 2px solid #aaa;
    border-radius: 6px;
    margin: 2px;
    background: var(--tag-color);
    cursor: pointer;
}

.tag-btn.selected {
    border-color: #007bff;
    font-weight: bold;
}

@media screen and (max-width: 1000px) {
    .radio_item {  
    display: inline-flex;
    align-items: center; 
    gap: 8px;
    }

    #search_list {
    position: fixed;
    top: 10px;
    left: 10px;
    font-size: 2em;
    z-index: 1000;
    background: #cccccc;
    }

    .tag-btn {
    height: 80px;
    font-size: 1.2em;
    padding: 5px 8px;
    border: 2px solid #aaa;
    border-radius: 12%;
    margin: 2px;
    cursor: pointer;
    }
    .tag-btn.selected {
    border: 5px solid #007bff;
    font-weight: 900;
    }
}

/* カテゴリごとの色割り当て */
.tag-btn[data-tag="sg"  ] { --tag-color: rgb(255, 166, 0); }
.tag-btn[data-tag="pg1" ] { --tag-color: darkblue; }
.tag-btn[data-tag="g1"  ] { --tag-color: darkblue  ;}
.tag-btn[data-tag="g2"  ] { --tag-color: blue; }
.tag-btn[data-tag="g3" ] { --tag-color: #00c3ff; }
.tag-btn[data-tag="general"  ] { --tag-color: black  ;}

.tag-btn[data-tag="women"  ] { --tag-color: rgb(255, 137, 157); }
.tag-btn[data-tag="rookie" ] { --tag-color: green; }
.tag-btn[data-tag="midnight"  ] { --tag-color: #bd2dd6;}

.tag-btn[data-tag="pre_inspection"  ] { --tag-color: gray; }
.tag-btn[data-tag="first_day" ] { --tag-color: gray; }
.tag-btn[data-tag="qualify"  ] { --tag-color: gray  ;}
.tag-btn[data-tag="final_qualify"  ] { --tag-color: rgba(255, 0, 0, 0.733); }
.tag-btn[data-tag="semi_final" ] { --tag-color: rgba(255, 0, 0, 0.733); }
.tag-btn[data-tag="final"  ] { --tag-color: #794b26  ;}

/*～タグ色割り当てここまで*/
/* 検索ボタン */
#tag-search {
    text-align: center;
    padding: 10px;
    width: 90%;
    margin: 0 3%;
}

@media screen and (max-width: 1000px) {
   #tag-search {
    font-size: 1.5em;
} 
    
}

/*0件表示*/
.nothing_news{
    padding-top: 100px;
    padding-bottom: 300px;
    text-align: center;
}

.img{
    z-index: 100;
}

/*タグ（共通）*/
/* タグ表示 */
.news_large .categories {
  margin: 10px 5px 12px 5px;
  border: 0.2em solid var(--tag-color);
  border-radius: 12%;
  padding: 0 8px;
  color: var(--tag-color);
}

.news_small .categories {
    font-size: 0.7em;
  margin: 5px 0 12px 12px;
  border: 0.2em solid var(--tag-color);
  border-radius: 12%;
  padding: 0 4px;
  color: var(--tag-color);
}

@media screen and (max-width: 1000px) {
  .news_large .categories {
    font-size: 1.8em;
}

.news_small .categories {
    font-size: 1.6em;
}
    
}
/* カテゴリごとの色割り当て */
.categories[data-type="sg"  ] { --tag-color: rgb(255, 166, 0); }
.categories[data-type="pg1" ] { --tag-color: darkblue; }
.categories[data-type="g1"  ] { --tag-color: darkblue  ;}
.categories[data-type="g2"  ] { --tag-color: blue; }
.categories[data-type="g3" ] { --tag-color: #00c3ff; }
.categories[data-type="general"  ] { --tag-color: black  ;}

.categories[data-type="women"  ] { --tag-color: rgb(255, 137, 157); }
.categories[data-type="rookie" ] { --tag-color: green; }
.categories[data-type="midnight"  ] { --tag-color: #bd2dd6;}

.categories[data-type="pre_inspection"  ] { --tag-color: gray; }
.categories[data-type="first_day" ] { --tag-color: gray; }
.categories[data-type="qualify"  ] { --tag-color: gray  ;}
.categories[data-type="final_qualify"  ] { --tag-color: rgba(255, 0, 0, 0.733); }
.categories[data-type="semi_final" ] { --tag-color: rgba(255, 0, 0, 0.733); }
.categories[data-type="final"  ] { --tag-color: #794b26  ;}

/*～タグ色割り当てここまで*/


.search_explain{
    text-align: right;
    margin: 0;
    margin-bottom: 5px;
}

.search_explain p{
    margin: 0;
}

/* 大きい画像：縦並び */
.news_large {
    background-color: white;
    border-top: 0.5em solid #cccccc;
    border-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    gap: 10px;
    z-index:100;
}

.news_large .news_item {
    width: 48%;
    max-width: 480px;
    margin: 30px 10px;
    box-sizing: border-box;
    outline: 2px solid #cccccc;
     outline-offset: -2px;
     
}

.news_large .news_item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 320px;
    margin-bottom: 15px;
    display: block;
    object-fit: contain;
}

.news_large img {
    display: block;
    margin: 0 auto;
}

.news_large h3 {
    margin-top: 0;
    margin-left: 1%;
    font-size: 1.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(1.4em * 2);
}



.news_item a {
    text-decoration: none;
    color: inherit;
}


.news_item a:hover
 {
    color :#aaaaaa;
}

.news_large .date {
    text-align: right;
    margin-top: 0;
    margin-bottom: 10px; 
    margin-right: 3%;
    color:black;
    font-size: 1em;
    transform : scale(1.0, 1.1);
}

/* 小さい画像：横並び2列 */
.news_small {
    background-color: white;
    /*border: 2em solid #cccccc; */
    border-top: 0;
    border-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
    z-index: 100;
}

.news_small .news_small_row{
    width:100%;
    border-bottom: 1px solid #cccccc;
    display: flex;
    flex-wrap: wrap;
    margin: 0 40px;
    justify-content: space-between;

}

.news_small .news_small_row:first-of-type{
    border-top:1px solid #cccccc;
}

.news_small .news_item {
    position: relative;
    display: flex;
    width: 48%;
    padding: 10px 0 20px 0; 
}

.news_small .news_item .visible{
    display: flex;
}

.news_small img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 80px;
    margin-right: 15px;
    object-fit: contain; 
}

.news_small .text h3 {
    position:absolute;
    top:0;
    display: -webkit-box;
    margin-top: 35px;
    padding-left: 12px;
    font-size: 1.0em;
    font-weight: 500;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 2%;
    max-height: calc(1.8em * 3);
}

.news_small .text .date {
    color: #666;
    font-size: 0.9em;
    text-align: right;
    position: absolute;
    bottom: 10px; 
    right: 3%;  
}

.news_small .news_small_row:last-of-type{
    border-bottom:1px solid #cccccc;
}

/*リンク部*/

.page_bottom{
    background-color: white;
    border-bottom: 2em solid #cccccc;
    max-width: 1200px;
    border-top: 0;
    border-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
}

.page_bottom .display_more{
    margin: 0 auto;
    background-color: white;
    text-align: center;
}

.page_bottom .display_more h3{
    font-size: 1.2em;
    text-decoration: underline;
    text-decoration-thickness: 2px;  
    text-underline-offset: 2px;
    cursor: pointer;
    padding: 0;


}

.page_bottom .display_more h3:hover{
    color: blue;
    cursor: pointer;
}

@media screen and (max-width: 1280px) {

    .header .logo_bace_center{
    max-width: 1200px;
    }
    
    .news_headtext{
    max-width: 1200px;
    }
    
    .news_large{
        flex-wrap: nowrap;
        max-width: 1200px;
    }

    .news_large .news_item {
        width: 80%;
        box-sizing: border-box;
        outline: 2px solid #cccccc;
        outline-offset: -2px;
    }

    .news_small{
        max-width: 1200px;
    }

        .news_small .news_item {
    padding: 10px 0 0 0; 
}
    .news_small img {
        margin-right: 15px;
        margin-bottom: 20px;
    }


}

@media screen and (max-width: 1000px) {

     h2{
        padding: 10px 0;
    }

    .news_large{
        border: none;
        gap: 3px;
    }

    .news_large .news_item {
    padding-bottom: 50px;
     margin: 30px  0 30px 10px; 
    }

    .news_large h3 {
   
    font-size: 2.4em;
    
}

    .news_large .date {
    margin-bottom: -30px;
    font-size: 1.2em;
    }

    .news_small {
        display: block; 
        border: none;
    }

    .news_small .news_small_row:first-of-type{
    border-top:none;
    }

    .news_small .news_small_row{
    border-bottom: 0;
    margin: 0 0 0 10px;

    }

    .news_small .news_item:first-of-type{
    border-top: 1px solid #cccccc;
    }

    .news_small .news_item {
        width: 100%; 
        border-bottom: 1px solid #cccccc;
    }

    .news_small .text h3 {
    position:absolute;
    font-size: 2.4em;
    margin-top: 45px;
    top:0;
    }

    .news_small .news_small_row:last-of-type{
    border-bottom:none;
    }

    .news_small img {
    min-width: 270px;
    max-width: 360px;
    min-height: 180px;
    max-height: 180px;
    margin-top: 10px;
    margin-bottom: 40px;
}

    .news_small .text .date {
    font-size: 1.8em;
    }

    .page_bottom .display_more h3{
    font-size: 2.0em;
    }

}