@charset "utf-8";
@import url("root.css");

/***************************************
---------------- news ----------------
***************************************/
#news{
margin:80px auto 0;
width: 1200px;
background-color: var(--sub-color02);
border-radius: 20px;
padding: 50px;
}

#news .title{

}
#news h2{
font-size: 38px;
text-align:center;
font-weight: 500;
font-family: ten-mincho, serif;
line-height: 1.4;
margin: 0 auto 0;
width: 100%;
}

#news .link_a{
width: 50%;
display: flex;
justify-content: flex-end;
}
#news .link_a a {
width: 230px;
margin: 0 0 0 auto;
}

.tab01 {
  width: 100%;
  margin: 0 auto 50px;
}

.tab_container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  margin: 30px auto 0;
}
/*タブのスタイル*/
.tab_menu {
flex-grow: 1;  /* 文字の幅に応じて伸縮 */
flex-basis: auto; /* 基本サイズは文字サイズに応じる */
padding: 5px 10px; /* 上下と左右の余白を適用 */
text-align: center;
color:var(--base-color02);
border: 0.5px solid var(--base-color02);
background-color: var(--base-color03);
font-weight:400;
transition: all 0.2s ease;
font-family: ten-mincho, serif;
font-size: 16px;
margin: 0 10px 0 0;
line-height: 1.4;
}

.tab_menu:nth-child(16){
margin: 0 0 0 0;
}

.tab_menu:hover {
  opacity: 0.75;
}
/*ラジオボタンを全て消す*/
input[name="tab_menu"] {
  display: none;
}
/*タブ切り替えの中身のスタイル*/
.tab_contents {

  transition: .5s opacity;
  width: 100%;
  margin: 50px auto 0;
}

.tab_contents dl{
display: flex;
flex-wrap: wrap;
border-bottom: 2px dotted var(--base-color02);
margin: 0 auto 10px;
}

.tab_contents dt{
width: 120px;
font-family: ten-mincho, serif;
padding: 0 0 0 0;
line-height: 2;
text-align: center;
}
.tab_contents dd{
padding:0;
}
.tab_contents .w_cate{
width: 100px;
background-color: var(--base-color01);
color: var(--base-color03);
padding: 5px 10px;
line-height: 1.4;
text-align: center;
font-size: 14px;
margin:0 auto 10px;
display: flex;
align-items: center;
justify-content: center;
}

.tab_contents .w_txt{
width:880px;
padding: 0 0 10px 10px;
line-height: 1.8;
}
.w_txt a:hover {color:  var(--base-color01)}


/*選択されているタブを表示*/
#menu01:checked ~ #menu01,
#menu02:checked ~ #menu02,
#menu03:checked ~ #menu03,
#menu04:checked ~ #menu04,
#menu05:checked ~ #menu05,
#menu06:checked ~ #menu06,
#menu07:checked ~ #menu07,
#menu08:checked ~ #menu08 {
  display: block;
}
/*選択されているタブのスタイル*/
.tab01 input:checked + .tab_menu {
  background-color: var(--base-color01);
  color: #fff;
  border: 1px solid var(--base-color01);
}

#news_detail{
margin: 50px auto 0;
}

#news_detail h4{
    width: 100%;
    color: var(--base-color03);
    background-color: var(--base-color01);
    border-radius: 8px;
    padding: 5px 20px;
	font-size: 20px;
}

#news_detail .data{
margin: 20px auto;
text-align: right;
font-size: 16px;
}



#news_detail .txt{
margin: 0 auto 40px;
font-size: 16px;
}


#news_detail .news_img{
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
}


#news_detail a{
width: calc(23.5% - 2px);
padding: 0;
margin: 2% 2% 2% 0;
border: 1px solid #CCCCCC;
box-sizing: border-box;
}

#news_detail a:nth-child(4n){
margin: 2% 0 2% 0;
}



@media screen and (max-width: 768px) {
.container {
        width: 100%;
        margin: 0 auto 0;
        padding: 10px 0 0 0;
    }


#news{
margin:40px auto;
width:90%;
background-color: var(--sub-color02);
border-radius: 20px;
padding: 20px;
}



#news .title{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
#news h2{
font-size:20px;
text-align: left;
font-weight: 500;
font-family: ten-mincho, serif;
line-height: 1.4;
margin: 0 auto 0;
width: 100%;
}

#news .link_a{
width:100%;
display: flex;
justify-content: flex-end;
}
#news .link_a a {
width:40%;
margin: 0 0 0 auto;
font-size: 14px;
}

.tab01 {
  width: 100%;
  margin: 0 auto 50px;
}

.tab_container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  margin: 20px auto 0;
}
/*タブのスタイル*/
.tab_menu {
flex-grow: 1;  /* 文字の幅に応じて伸縮 */
flex-basis: auto; /* 基本サイズは文字サイズに応じる */
padding: 5px 5px; /* 上下と左右の余白を適用 */
text-align: center;
color:var(--base-color02);
border: 0.5px solid var(--base-color02);
background-color: var(--base-color03);
font-weight:400;
transition: all 0.2s ease;
font-family: ten-mincho, serif;
font-size: 14px;
margin: 0 0 5px 0;
line-height: 1.4;
width: 100%;
}

.tab_menu:nth-child(16){
margin:0 0 5px 0;
}

.tab_menu:hover {
  opacity: 0.75;
}
/*ラジオボタンを全て消す*/
input[name="tab_menu"] {
  display: none;
}
/*タブ切り替えの中身のスタイル*/
.tab_contents {

  transition: .5s opacity;
  width: 100%;
  margin: 20px auto 0;
}


.tab_contents dl{
display: flex;
flex-wrap: wrap;
border-bottom: 2px dotted var(--base-color02);
margin: 0 auto 10px;
}

.tab_contents dt{
width: 70%;
padding: 0 0 0 0;
line-height: 2;
text-align: right;
}
.tab_contents dd{
padding:0;
}


.tab_contents .w_cate{
width:30%;
padding: 5px 10px;
line-height: 1.4;
text-align: center;
font-size: 14px;
margin:0 0 5px auto;
display: flex;
align-items: center;
justify-content: center;
}

.tab_contents .w_txt{
width:100%;
padding: 0 0 10px 0;
line-height: 1.6;
}

#news_detail{
margin: 20px auto 0;
width: 90%;
}

#news_detail h4{
    width: 100%;
    color: var(--base-color03);
    background-color: var(--base-color01);
    border-radius: 8px;
    padding: 5px 20px;
	font-size: 20px;
}

#news_detail .data{
margin: 20px auto;
text-align: right;
font-size: 16px;
}

#news_detail .news_img{
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
}


#news_detail a{
width: calc(90% - 2px);
padding: 0;
margin: 2% 0 2% 0;
border: 1px solid #CCCCCC;
box-sizing: border-box;
}

#news_detail a:nth-child(4n){
margin: 2% 0 2% 0;
}


}

.pagination {
    width: min(100%, 500px);
    margin: 40px auto 0;
}

@media screen and (max-width: 768px) {

.pagination {
    width: min(100%, 500px);
    margin: 20px auto 0;
}


}