* {
  margin: 0;
  padding: 0;
}

.flex-layout {
  margin: 3rem auto;
  display: flex;
  flex-flow: column;
  gap: 2rem 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.6rem 2.4rem 0.6rem 0.6rem;
  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;
}

.text-rl .text-rlc {
 font-size: small;
}

.text-rlm {
 padding: 0 5%;
 text-align:justify;
}


.text-c {
 text-align: center;
}

.text-cb {
 font-weight:boled;
 font-size:2em;
 text-align: center;
}

.text-lbb {
 font-weight:boled;
 font-size:2em;
 text-decoration: none;
 padding: 0 5%;
 color:#156700;
 
 border-bottom: 2px solid #156700; /* 線の太さ、種類、色を指定 */
 display: block; /* もしくは width: 100%; */
 width: 90%;

 
}
/* 
.text-lbb {
 font-weight:boled;
 font-size:2em;
 text-decoration: underline;
 padding: 0 5%;
 color:#156700;
}
*/
.text-lb {
 font-weight:boled;
 padding: 0 5%;
 color:#2F803A;
}



/*------------------------------------------------------
 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: 20px;
}

/* 🌟 新規追加: 中央寄せ用の修飾クラス 🌟 */
.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;
}
*/



