
/* 右側NEWS */
.side-panel {
  position: absolute;
/*  position: fixed;*/
  bottom: 0;
  right: 0;
  width: 400px;/* 幅28% */
/*  width: 27%;/* 幅28% */
  height: 60%;
/*  background-color: rgba(0, 0, 0, 0.7); /* 黒70%透過 */
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(0);  /* 初期状態：表示 */
  transition: transform 0.4s ease; /* アニメーション */
}

/* CLOSEボタン */
.close-btn {
/*  background: none;*/
  color: #fff;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  background-color: rgba(0,0,0,0.3);
}
.close-btn{
  border-bottom: 1px solid #888;
  border-top: none;
  border-right: none;
  border-left: none;
  font-size: 180%;
  line-height: 1.2!important;
  width: 1.5em;
  margin-left: auto;
  background-color: rgba(0,0,0,0.8);
  display: flex;  /* 1. Flexboxを有効にする */
  justify-content: center;  /* 2. 主軸（デフォルトは水平方向）で中央に配置 */
  align-items: center;  /* 3. 交差軸（垂直方向）で中央に配置 */
}

.close-btn:hover {
color: #36afee!important;
}

/*
.other_news{
  border-top: 1px solid #888;
  border-bottom: none;
  border-right: none;
  border-left: none;
  padding: 1rem;
  background-color: rgba(0,0,0,0.8);
}

.close-btn:hover {
color: #36afee!important;
}

.other_news a:link {
color: #fff!important;
text-decoration:none;
}

.other_news a:visited{
color: #fff!important;
text-decoration:none;
}

.other_news a:hover{
color: #36afee!important;
text-decoration:none;
}

.other_news a:active{
color: #e60012!important;
text-decoration:none;
}
*/

/* 非表示状態 */
.side-panel.hidden {
  transform: translateX(100%); /* 右にスライドして消える */
}

/* パネル内テキスト */
.panel-content {
  padding: 0rem 1.3rem 1rem 1.3rem;
  color: #fff;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.7); /* 黒70%透過 */
}

/* OPENボタン：右端中央に縦長 */
.open-btn {
  position: fixed;
  top: 72%;
  right: 0;
  transform: translateY(-75%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  padding: 1rem 0.5rem 1rem 0.7rem;
/*  writing-mode: vertical-rl;  /* 縦書きにする */
/*text-orientation: mixed;*/
  cursor: pointer;
  font-size: 1rem;
  z-index: 9998;
  display: none; /* 初期状態は非表示 */
  border-radius: 4px 0 0 4px;
}

.open-btn:hover {
color: #36afee!important;
/*  opacity: 0.6;*/
}

/* パネルが閉じているときにOPENボタン表示 */
.side-panel.hidden ~ .open-btn {
  display: block;
}

/*----------------------------------------------*/
/*NEWS記事*/
#sidePanel .news_head {
letter-spacing: 0.15em;
padding: 1.3em 0 1.0em 0;
border-bottom: #9e9e9e solid 1px;
margin: 0 0 0.8em 0;
display: flex;
justify-content: space-between;
}

#sidePanel h2 {
font-size: 1.6rem;
text-align: left;
}

#sidePanel .news_name {
color: #1d2087;
font-size: 260%;
border-bottom: #9e9e9e solid 1px;
padding: 1.5em 0 0.5em 0;
text-align: center;
margin-bottom: 0.5em;
}

/*#sidePanel .news_name span {
letter-spacing: 0.15em;
}*/

#sidePanel .news {
padding-bottom: 5em;
width: 75%;
margin: 0 auto;
}

/*NEWS／日付・タイトル--------------------------------------------*/
#sidePanel .news_top {
  border-left: 8px solid #009fe8;
  padding: 0.4em 0 0.4em 0.6em;
  display: flex;
  align-items: center;   /* 日付を天地センター */
}

/* 日付：左の固定幅カラム */
#sidePanel .data {
  font-weight: bolder;
  color: #009fe8;
  font-size: 90%;
  flex: 0 0 7.5em;         /* ← ここが “日付カラム幅” */
}

/* タイトル：右側の可変カラム */
#sidePanel .news_title {
  font-weight: bolder;
  font-size: 100%;
  flex: 1;               /* 残り幅を全部使う */
}
/*NEWS／日付・タイトル--------------------------------------------*/

/*#sidePanel .news_top {
border-left: 8px solid #009fe8;
padding: 0.5em 0 0.5em 0.8em;
}

#sidePanel .data {
font-weight: bolder;
color: #009fe8;
font-size: 90%;
display: inline-block;
width: 8em;
}

#sidePanel .news_title {
font-weight: bolder;
font-size: 110%;
}*/

#sidePanel .news_txt {
font-size: 90%;
padding: 1em 0 1.5em 0;
line-height: 1.7em;
border-bottom: 1px solid #9e9e9e;
margin-bottom: 1.5em;
margin-top: -1em;
}

#news_right .top_f {
display: none;
}
#news_right .top_r {
display: block;
}

/*過去記事リンク*/
.other_news {
/*  background: none;*/
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
font-weight: 800;
}

.other_news a:link {
color: #fff!important;
text-decoration:none;
}
.other_news a:visited{
color: #fff!important;
text-decoration:none;
}
.other_news a:hover{
color: #36afee!important;
text-decoration:none;
}
.other_news a:active{
color: #e60012!important;
text-decoration:none;
}




