.size_check1,
.size_check2,
.size_check3,
.size_check4,
.size_check5,
.size_check6,
.size_check7{
  display:none;
}

.size_check{
  display:flex;
  flex-direction: column;
}
.sns-box{
  background-color: lightblue;
}
.sns-box img{
  height:36px;
}
.banners-block{
  background-color: #ffff1150; 
  justify-content: center; /* 子要素を水平方向の中央に配置 */
  align-items: start; /* 子要素を垂直方向の中央に配置 */   
  width:100%;
  gap:10px;
}
/* .banners-block img{
   height:48px; 
} */
.banner-line img{
  margin-left:3em;
  height:48px;  
}
.block-link0,
.block-link1{
    display:flex;
    /* display:none; */
    flex-direction: row;
    justify-content: center; /* 横方向に中央寄せ */
    align-items: center; /* 子要素を垂直方向の中央に配置 */   
    gap: 1rem;               /* 要素同士の間隔（必要なら） */    
}

.block-link1 img{
  width:400px;
  /* max-width:600px; */
  min-width:240px;
   height:auto; 
}

.block-link2{
    display:flex;
    flex-direction: row;
}
.block-link2 img{
  width:150px;
  /* max-width:600px; */
  min-width:80px;
   height:auto; 
} 
.block-site{
  /* display:none; */
  display:flex;
  flex-direction: column;
  align-items:end;
}
.banners-block{
  display:flex;
}
.block-message{
  display:none;
  writing-mode: vertical-rl;
  font-size:3em;
}
.block-link1-a{
    justify-content: center; /* 横方向に中央寄せ */
    gap: 1rem;               /* 要素同士の間隔（必要なら） */    

}

.chart-box{
  display:flex;
  width:650px;
  height:400px;
  margin-top:1em;
}
.chart-box-sp{
  display:none;
  width:400px;
  height:320px;
}
.sns-box{
  display:flex;
  flex-direction: column; 
  /* width:100%; */
}

.banner-box {
  width: 400px;         /* バナーの横幅 */
  height: 600px;        /* バナーの高さ */
  position: relative;   /* Vegasを適用するために必要 */
  overflow: hidden;     /* 中身をはみ出させない */
  border-radius: 10px;  /* 角を丸める（好みで） */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.banner-box2 {
  width: 400px;         /* バナーの横幅 */
  height: 200px;        /* バナーの高さ */
  position: relative;   /* Vegasを適用するために必要 */
  overflow: hidden;     /* 中身をはみ出させない */
  border-radius: 10px;  /* 角を丸める（好みで） */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.banner-box3 {
  width: 640px;         /* バナーの横幅 */
  height: 300px;        /* バナーの高さ */
  position: relative;   /* Vegasを適用するために必要 */
  overflow: hidden;     /* 中身をはみ出させない */
  border-radius: 10px;  /* 角を丸める（好みで） */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.banner-slideshow {
  width: 100%;
  height: 100%;
}

.banner-slideshow2 {
  width: 100%;
  height: 100%;
}

.banner-slideshow3 {
  width: 100%;
  height: 100%;
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2; /* スライドの上に表示 */
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 15px;
  background: rgba(0,0,0,0.6);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
}


.container {
  display: flex; /* 親要素に指定 */
	flex-direction: row;
  justify-content: center; /* 子要素を水平方向の中央に配置 */
  align-items: center; /* 子要素を垂直方向の中央に配置 */
	background-color:silver;
}

.test_list {
  display: flex; /* 親要素に指定 */
  justify-content: center; /* 子要素を水平方向の中央に配置 */
  align-items: center; /* 子要素を垂直方向の中央に配置 */
	background-color:yellow;
	flex-direction: column;
}

.test_list dl{
  display: flex; /* 親要素に指定 */
  justify-content: center; /* 子要素を水平方向の中央に配置 */
  align-items: center; /* 子要素を垂直方向の中央に配置 */
	background-color:red;
}

.test_list dl2{
  display: flex; /* 親要素に指定 */
  justify-content: center; /* 子要素を水平方向の中央に配置 */
  align-items: center; /* 子要素を垂直方向の中央に配置 */
	background-color:blue;
	flex-direction: row;
}

.test_list dt{
  display: flex; /* 親要素に指定 */
  justify-content: center; /* 子要素を水平方向の中央に配置 */
  align-items: center; /* 子要素を垂直方向の中央に配置 */
	background-color:green;
	flex-direction: row;
}

.accordion {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.accordion-header {
  width: 100%;
  padding: 12px;
  background: #f5f5f5;
  border: none;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
}

.accordion-content {
  max-height: 0; /* 初期状態は非表示 */
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 12px;
  background: #fff;
}

.accordion-item.active .accordion-content {
  max-height: 200px; /* 内容に応じて十分な高さを設定 */
  padding: 12px;
}

/* 固定ヘッダー */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #333;
  color: white;
  padding: 10px 20px;
  z-index: 1000;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: bold;
	padding:0em 2em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
}
.nav-toggle{
  display:none;
}
/* サイドメニュー（左からスライドイン） */
.side-menu {
  position: fixed;
  top: 0;
  left: -350px;
  width: 350px;
  height: 100%;
  background: linear-gradient(180deg, rgb(230, 255, 240), rgb(150, 240, 200));
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  transition: left 0.3s ease;
  z-index: 1001;
  overflow: hidden; /* 中で横にスライドさせるため */
}

.side-menu.open {
  left: 0;
}

/* メニュー階層 */
.menu-level {
  position: absolute;
  top: 0;
  left: 100%; /* 初期は右に隠す */
  width: 100%;
  height: 100%;
 /* background: #fff;*/
  background: linear-gradient(180deg, rgb(210, 255, 210), rgb(100, 200, 100));
  transition: left 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.menu-level.active {
  left: 0; /* 表示中 */
  /* background: #fff; */
}

.menu-level h2 {
  margin-bottom: 10px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-level ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-level li {
  padding: 4px;
  cursor: pointer;
}

.menu-level li:hover {
  background: #f0f0f0;
}

.arrow {
  float: right;
}

.back {
  cursor: pointer;
  color: blue;
  margin-right: 10px;
}

/* オーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}
/* フッタ */
.section-foot{
  display:flex;  
  justify-content: center;
  align-items: start;
  border-width: 5px;
  border-color:#999aaa;
  width:75%;
}
.block-foot-2{
  width:100%;
  display:flex;
  justify-content:space-between;
  background-color:#6de589bc;
  /* margin:0px; */
  /* padding:0 50px 50px ; */
  /* gap:10px; */
  margin-bottom:1em;
  color:#f0f0f0;
}
.block-foot{
  width:100%;
  display:flex;
  justify-content:space-between;
  background-color:#6de589bc;
  margin:0px;
  padding:0 50px 50px ;
  gap:10px;
  color:#f0f0f0;
}
.block-copyright{
  display:flex;
  justify-content: center;
  align-items:center;
  border-width: 5px;
  border-color:#999aaa;
  width:auto;
}
.site-footer{
  background-color: #033118d4;
  color:#f0f0f0;
  align-items: right;
}

.block-50{
    width:50%;
}    
.footer-container {
  display: flex;
  justify-content: center; /* 中央寄せ */
  padding: 1rem 0;
}

/* アスペクト比維持（横:縦 = 1024:320 = 約 3.2:1） */
.footer-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding-top: calc(320 / 1480 * 100%); /* 高さを比率で決定 */
}

.footer-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 100%;
  border: none; /* frameborder="0" 相当 */
  /* overflow: hidden; */  /* ← これが scrolling="no" 相当 */
}

.chart-container {
  display: flex;
  justify-content: center; /* 中央寄せ */
  padding: 1rem 0;
}
/* アスペクト比維持（横:縦 = 1024:320 = 約 3.2:1） */
.chart-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  padding-top: calc(320 / 500 * 100%); /* 高さを比率で決定 */
}
.chart-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 300px;
  border: none; /* frameborder="0" 相当 */
  overflow: hidden;  /* ← これが scrolling="no" 相当 */
}

.copyright{
  display:flex;
  justify-content: center;
  align-items:center;
  border-width: 5px;
  border-color:#999aaa;
}

/* 食品サンプル */
/* 2025.8.4 スライドショー確定 */
.six-text-container {
	--text-shift: 50px;
	position: relative;
	writing-mode: vertical-rl;
	width: 100%;
	height: 100%;
    max-height: 100%; /* 短い方の高さに合わせる */
	transform: translateX(50%);
	transition: transform 50s ease;
}
.six-text-container .six-header-h2 {
	position: absolute;
	right: 80%;
	top: var(--text-shift);
}
.six-text-container .six-header-h3 {
	position: absolute;
	right: 70%;
	top: var(--text-shift);
}

.six-text-container.active {
	transform: translateX(0);
}

.six-text-container3,
.six-text-container2 {
	position: relative;
	display: flex;
	background: white;
	width: 100%;
	transform: translateX(50%);
	transition: transform 100s ease;
}
.six-text-container3 {
	transform: translateX(0%);
}
.six-text-container3.inactive,
.six-text-container2.inactive {
	transform: translateX(0);
}
.six-text-container3>*,
.six-text-container2>* {
	flex: 0 1 33.33%;
	padding-bottom:0px;
}
.six-text-container3 img,
.six-text-container2 img {
	width: 100%;
	height: 100%;
}

.six-header-h2{
	color:#000;
	font-size:2.8em;
	line-height:1.2em;	
	background-color:#ffffff80;
	padding:10px;
}
.six-header-h3{
	color:#000;
	font-size:1.8em;
	line-height:1.2em;	
	background-color:#ffffff80;
	padding:10px;
    text-align: start; /* ← これを追加 */
}

/* 2025.9.6 定型予定のスライドショー */
.top_block{
  display:flex;
	padding-bottom:0px;
  justify-content: center; /* 横方向の中央寄せ */
  align-items:center;     /* 縦方向の中央揃え（高さを揃えたい場合） */
  gap: 20px;               /* ブロック間の余白 */
}
.slide-container {
    position: relative;
    /* スライドショーのテキストを配置する場所 */
    height: 280px;  /* 適宜調整 */
    width: 620px;
    overflow: hidden;
    border: blue;
    border-radius: 4%;
    border-style: solid;
    padding-top: 0px;
    top: 20px;
}
.slide-text {
    /* 縦書き設定 */
    writing-mode: vertical-rl;
    
    /* 初期位置 */
    position: absolute;
    top: 70%;
    transform: translateY(-50%) translateX(-100%); /* 画面左の見えない位置に配置 */
    left: 0;
    
    /* スタイリング */
    font-size: 1.2rem;
    font-weight: bold;
    white-space: nowrap;
    color: #aa3333;
    background-color:#00000070;
    
    /* アニメーションの準備 */
    transition: transform 15s ease-out; /* アニメーションの速度とイージング */
}

/* アニメーション後の状態 */
.slide-text.is-visible {
    /* left: 80% の位置まで移動させる */
    transform: translateY(-120%) translateX(30vw); 
}

/* db_handbook.cgi db_mainte.cgi */
.banner-box-1 {
  width: 360px;         /* バナーの横幅 */
  height: 540px;        /* バナーの高さ */
  position: relative;   /* Vegasを適用するために必要 */
  overflow: hidden;     /* 中身をはみ出させない */
  border-radius: 10px;  /* 角を丸める（好みで） */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.banner-box-2 {
  width: 500px;         /* バナーの横幅 */
  height: 320px;        /* バナーの高さ */
  position: relative;   /* Vegasを適用するために必要 */
  overflow: hidden;     /* 中身をはみ出させない */
  border-radius: 10px;  /* 角を丸める（好みで） */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.banner-slideshow-1,
.banner-slideshow-2 {
  width: 100%;
  height: 100%;
}

.banner-content-1,
.banner-content-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2; /* スライドの上に表示 */
}

.btn-2 {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 15px;
  background: rgba(0,0,0,0.6);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
}


@media (max-width: 1280px) {
  .size_check1{
    display:none;
  }
  .block-site {
      display: none;
      /* display: flex;
      flex-direction: column;
      align-items: end; */
  }  
}

@media (max-width: 1024px) {
  .size_check2{
    display:none;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    margin-top: 10px;
    background: #444;
    padding: 10px;
    border-radius: 8px;
  }

  .navbar.open .nav-links {
    display: flex;
    flex-direction: column;  
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
  }

  /* ボタンを×に切り替え */
  .navbar.open .nav-toggle::before {
    content: "✖";
    font-size: 26px;
  }

  /* デフォルトは☰ */
  .nav-toggle::before {
    content: "☰";
  }  
  .block-link1 img {
      width: 360px;
      /* max-width: 600px; */
      /* min-width: 240px;
      height: auto; */
  }
}

@media (max-width: 840px) {
  .size_check3{
    display:none;
  }
}

/* タブレット用 */
@media (max-width: 768px) {
	.logo {
	  font-size: 14px;
		padding:0em 0.5em;
	}
  .size_check4{
    display:none;
  }
  .top_block{
    display:flex;
    flex-direction:column;
  }
  .banners-block{
    flex-direction: column;
  }
  .block-link1{
    /* display:flex; */
    flex-direction: column;
  }
  .block-site{
    display:none;
    /* flex-direction: column; */
  }
  .block-message{
    writing-mode:horizontal-tb;
    font-size:1.5em;
  }

  .contents-menu{
    display:none;
    width:400px;
    height:320px;
  }
  .chart-box{
    display:none;
    width: 300px;
    height:220px;
  }
  .chart-box-sp{
    display:flex;
    width:400px;
    height:320px;
  }
  .sns-box{
    flex-direction: row;
    /* flex-direction: column; */
    width:auto;
    /* margin-bottom:1em; */
  }
    .section-foot{
    flex-direction: column;
  }
  .footer-frame {
    height: 400px;
    width:90%;
  } 
    
  .slide-container {
      /* position: relative;
      height: 280px; */
      width: 520px;
      /* overflow: hidden;
      border: blue;
      border-radius: 4%;
      border-style: solid;
      padding-top: 0px;
      top: 20px; */
  }
  .banner-box3 {
      width: 320px;
      height: 180px;
    /*  position: relative;
      overflow: hidden;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.3); */
      /* width: 40%; */
  }  
  /* .chart-box {
    display:flex;
      width: 450px;
      height: 300px;
     margin-top: 0em;
   }  */
  .chart-frame {
      position: absolute;
      top: 100px;
      left: 50px;
      width: 280px;
      height: 140px;
      border: none;
      overflow: hidden;
  }
  .block-foot{
    flex-direction: column;
  }
  .banner-line img {
      /* margin-left: 3em; */
      height: 30px;
  }    
 /* .chart-box {
    width: 300px;
    height: 140px;
}  */
}


/* スマホ用 */
@media (max-width: 540px) {
  .size_check5{
    display:none;
  }

  .block-link1 img{
    width:auto;
    max-width:350px;
    min-width:240px;
    height:auto; 
  }
 .block-link0{
    flex-direction: column;
  }
  .banner-line img{
    height:24px;  
  }
/* アスペクト比維持（横:縦 = 1024:320 = 約 3.2:1） */  
  .footer-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding-top: 1; /* calc(320 / 1480 * 100%); */ /* 高さを比率で決定 */
  }
}

/* スマホ用 */
@media (max-width: 340px) {
  .size_check6{
    display:none;
  }
  .block-link1 img{
    width:auto;
    max-width:390px;
    min-width:240px;
    height:auto; 
  }
  .banner-line img{
    height:28px;  
  }

  .block-50{
    width:100%;
  }
  .footer-frame {
    height: 500px;
  }  
  
}

.x-btn {
  position: absolute;  /* side-menu を基準に配置 */
  top: 10px;           /* 上から10px */
  right: 15px;         /* 右から15px */
  font-size: 28px;     /* 文字サイズ */
  color: #333;        /* ボタンの色 */
  background: none;    /* 背景なし */
  border: none;        /* 枠線なし */
  cursor: pointer;     /* カーソルをポインターに */
  padding: 0;
  line-height: 1;      /* 高さを文字に合わせる */
}

.body-section{
    display:flex;
    flex-direction: column; 
}
.body-section img{
    width:80px; 
}
