* {
  margin: 0;
  padding: 0;
}

.flex-layout {
  margin: 3em auto;
  display: flex;
  flex-flow: column;
  gap: 2em 0;
}

.flex-layout li {
  list-style: none;
}

.flex-layout img {
  width: auto;
  max-width: 90%;
  max-height: 640px;
  margin: auto;
}

.lightbox {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all .5s;
}

.lightbox picture {
  position: relative;
}

.lightbox:target {
  visibility: visible;
  opacity: 1;
}

.lightbox figure {
  position: relative;
  width: 80%;
  max-width: 900px;
}

.lightbox figcaption {
  position: relative;
  padding: 0.6em 2.4em 0.6em 0.6em;
  color: #fff;
}

.lightbox figure img {
  object-fit: contain;
  position: relative;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 640px;
  margin: auto;
}

.lightbox .close {
  display: block;
  position: absolute;
  right: 0;
  bottom: 0.4rem;
  text-decoration: none;
}

.lightbox .close::after {
  content: "\00d7";
  position: relative;
  width: 2rem;
  height: 2rem;
  font-size: 1.5rem;
  padding: 0 0 0.15rem;
  color: #fff;
  cursor: pointer;
  background-color: rgba(0,0,0,.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.lightbox .close::before {
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: rgba(0,0,0,.8);
  cursor: default;
}

.center_ {
  justify-content: center;
  text-align: center;
}


.image-box {
  background-image: url(../images/100topback.jpg);
  background-size: cover;
  background-position: center;

  /* 余白（上下10%、左右15%） */
  padding: 10% 15%;

  color: #000;
  font-size: 18px;
  line-height: 1.6;

  display: inline-block; /* 文字量でサイズ決定 */
}

/* -------------------------------------- */
/* 本文の文字サイズ、間隔、左右空白など　 */
/* -------------------------------------- */


.text-rl {
 padding: 0 10%;
 text-align:justify;
 font-size: 1.1em;
 line-height: 1.7; 
}

.text-rlc {
 font-size: 0.9em;
 line-height: 1.6;
}

.text-rlm {
 padding: 0 5%;
 text-align:justify;
 font-size: 1.1em;
 line-height: 1.7;
}


.text-c {
 text-align: center;
}

.text-cb {
 font-weight:bold;
 font-size:2em;
 text-align: center;
}

.text-lbb {
 font-weight:bold;
 font-size:2em;
 text-decoration: none;
 padding: 0 5%;
 color:#156700;
 
 border-bottom: 2px solid #156700; /* 線の太さ、種類、色を指定 */
 display: block; /* もしくは width: 100%; */
 width: 90%;

 position: sticky;
 top: 30px;
 background: #ffffff;


 
}
/* 
.text-lbb {
 font-weight:bold;
 font-size:2em;
 text-decoration: underline;
 padding: 0 5%;
 color:#156700;
}
*/
.text-lb {
 font-weight:bold;
 font-size:1.5em;
 padding: 0 5%;
 color:#2F803A;
}

.text-l {
 padding: 0 10%;
 text-align: left;
 font-size: 1.2em;
}


/*------------------------------------------------------
 Tablet ~
------------------------------------------------------*/
@media screen and (min-width:768px) {

  /* contents
  ================================================ */
  .flex-layout {
    background-color: #fff3eb;
    max-width: 1000px;
    padding: 2%;
    display: flex;
    flex-flow:row wrap;
    justify-content: center;
    gap: 0;
  }

  .flex-layout li {
    width: calc(100% / 3);
    padding: 2%;
  }

  .flex-layout img {
    width: 100%;
    max-width: none;
    height: 250px;
    object-fit: cover;
  }

  .lightbox figure {
    width: auto;
  }

  .lightbox img {
    max-width: 100%;
  }

}

/*------------------------------------------------------
 style25に影響を与えない様に作成 ~
------------------------------------------------------*/


/* ブロック全体のコンテナ */
.main-blocks-container_s {
    /* content-wrapper (max-width: 1200px) の中に配置 */
    padding: 30px 20px;
    background-color: white;
}

/* 各行のラッパー */
.block-row_s {
    display: flex;
    flex-wrap: wrap; /* 画面が狭くなった場合に折り返す */
justify-content: flex-start;
    gap: 20px 1.5%; /* ブロック間の間隔 */
    margin-bottom: 5px;
}

/* 🌟 新規追加: 中央寄せ用の修飾クラス 🌟 */
.block-row_s.center-blocks_s {
    justify-content: center; /* 3の倍数じゃないブロックを中央に配置する */
}

/* 最後のブロック行の下マージンを調整したい場合 */
.main-blocks-container_s .block-row_s:last-child {
    margin-bottom: 0; /* 最後のブロック行のデフォルトの下マージンをリセット */
}

/* リンク付きの四角いブロック */
.square-block_s {
    width: calc( (100% - 4% ) / 2 );
    min-height: 250px;
    
background-color: #fff;
    /*border: 1px solid #ddd;
    border-radius: 8px;*/
    text-decoration: none;
    /*color: #333;*/
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /*align-items: stretch;*/
    
    /*overflow: hidden; */
    /*transition: all 0.2s;*/
}


@media screen and (max-width: 1100px) {
.square-block_s {
    width: calc((100% - 4%) / 2);
	}
}	

@media screen and (max-width: 600px) {
.square-block_s {
    width: calc((100% - 4%) / 1);
    
	}
}
/*	
.square-block_s:hover {
    /* background-color: #e0e0e0; */
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
*/

/* 🌟 修正点2: ブロック内の画像 🌟 */
.block-image_s {
width: 90%;
    height: 190px;
    object-fit: cover;
    display: block;
    margin: 15px auto;
object-position: top;
}

.block-content-area_s {
/* 画像下の残りのスペース全体を占有 */
    flex-grow: 1; 
    display: flex;
    flex-direction: column; /* タイトルと説明文を縦並びにする */
    
    /* 🌟 修正1: justify-content を削除または flex-start に変更 🌟 */
    /* 説明文とタイトルエリアが上から順に詰まって配置される */
    justify-content: flex-start; 
    
    padding: 5px 20px 15px 20px;
}

/* 🌟 修正点3: タイトルと矢印のエリア 🌟 */
.block-text-area_s {
display: flex;
    justify-content: space-between; 
    align-items: center; 
    /* 説明文がすぐ下にくるように、下のマージンを調整 */
    margin-bottom: 5px; 
    padding: 0;
}

/* 🌟 修正点4: ブロックのタイトルテキスト 🌟 */
.block-title-text_s {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    white-space: normal; /* タイトルが折り返さないように */
    overflow: visible; /* はみ出した部分は隠す */
    /* text-overflow: ellipsis;*/ /* ...で表示 */
    flex-grow: 1; /* 矢印のスペースを確保しつつタイトルが広がる */
    margin-right: 10px; /* タイトルと矢印の間隔 */
max-height: 2.8em; /* フォントサイズ16pxで lineHeight 1.4 の場合の2行分の目安 */
    line-height: 1.4; /* 行高さを明示的に指定 */
	width:95%;
}

/* 🌟 修正点5: 矢印アイコン 🌟 */
.block-arrow_s {
    /* 矢印アイコンのスタイル調整 */
    font-size: 0; /* 元の &#x2192; を非表示にする */
    position: relative; /* 擬似要素の基準にする */
    
    display: flex; /* 中央寄せのためにFlexboxを使用 */
    justify-content: center;
    align-items: center;
    
    /* 🌟 角丸四角形の背景 🌟 */
    width: 28px; /* 四角形の幅 */
    height: 28px; /* 四角形の高さ */
    background-color: #0053ad; /* 背景色 */
    border-radius: 4px; /* 角丸の半径 */
   
    transition: background-color 0.2s; /* ホバーエフェクト */
}
/* 🌟 修正点4: 説明テキストのスタイル 🌟 */
.block-description_s {
    font-size: .9em; /* 小さめのフォントサイズ */
    color: #666;
    line-height: 1.4;
    margin: 0;
    /* 重要な点: Flexboxの特性により、テキストの行数に関わらず、
       .block-content-area_s が親 (.square-block_s) の残りの高さを占有し、
       .block-row_s の align-items: stretch (デフォルト) によって、
       横のブロックと高さが揃います。 */
flex-grow: 1;
}

/* 🌟 矢印がホバーされた時の背景色 🌟 */

/*.square-block_s:hover .block-arrow_s {
    background-color: #0053ad;
}
*/

/* -------------------------------------- */
/* 9. 標準テーブル (Table) 仕様 特別展用 */
/* -------------------------------------- */

.standard-table2 {
    /* width: calc(100% - 40px); */ /* content-wrapperのパディング(左右20px)を考慮 */
    max-width: 100%;
    border-collapse: collapse; /* セルの境界線を一つにする */
    margin: 10px 20px; /* 上下の余白と左右のパディング調整 */
    font-size: 1em;
    table-layout: fixed; /* テーブル幅の固定 */
}

/* --- ヘッダー (thead) --- */
.standard-table2 thead th {
    background-color: #156700;
    color: white;
    font-weight: normal;
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #0056b3;
}

/* --- ボディ (tbody) --- */
.standard-table2 tbody tr {
    transition: background-color 0.2s;
}

.standard-table2 tbody td {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
    line-height: 1.5;
}

@media screen and (max-width: 780px) {
/*
.teikyo2 tbody td {
    border-top: 0px solid #ddd;
    border-bottom: 0px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}
*/
.standard-table2 tbody td.head {
    background-color: #ddd; /* 薄い黄色 */
}	
}

/* 🌟 ホバーエフェクト (マウスオーバーで色を変える) 🌟 */
/*
.standard-table2 tbody tr:hover {
    background-color: #f0f0ff;
    cursor: pointer;
}
*/

/* 🌟 強調したい行 (例: 合計行) 🌟 */
.standard-table2 .highlight-row {
    background-color: #fffacd; /* 薄い黄色 */
    font-weight: bold;
    border-top: 2px solid #ffcc00;
}



/* 🌟 アクションボタンの色違い 🌟 */
.action-button2 {
/* display: inline-block;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 20px 8px 50px;
    margin-right: 30px;
    background-image: url(../images/arrow_white.png);
    background-color: #fff;
    border: 2px solid #156700;
    color: #156700;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    background-repeat: no-repeat;
    background-size: 33px;
    background-position: 10px 42%;
	font-weight: normal;
    width: 16em;
	font-size: 1.1em;  
*/
/*
    display: inline-block;
    padding: 8px 15px;
    background-color: #fff;
    color: #007bff;
    text-decoration: none;
    border: 2px solid #156700;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
    margin-right: 10px;
*/
    display: inline-block;
    padding: 8px 15px;
    background-color: #156700;
    color: #fff;
    text-decoration: none;
    border: 2px solid #156700;
    border-radius: 40px;
    font-size: 1.3em;
    white-space: nowrap;
    transition: all 0.2s;
    margin-right: 10px;
    margin-bottom: 20px;


}

@media screen and (max-width: 780px) {
.action-button2 {
 display: block;
 width: fit-content;
 font-size: 0.85em;
 /*	line-height: 3em;*/
}
}

.action-button2:hover,
.action-button2 a:hover {
    background-color: #002000; /* ホバー時に背景を変える */
   /* color: #15800;  ホバー時に背景を変える */
}

.action-button2 a:link,
.action-button2 a:visited,
.action-button2 a:active {
    color: #fff; /* a の文字色 */
}

/* 🌟 アクションボタンまとめ用 🌟 */
.action-button3 {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;

}

.tr-vt {
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-align: center;
  vertical-align: middle;
}

