/* CSS Document */

html {
	overflow-x: hidden;
}

#menu-toggle,.menu-close,#lnavi ul li a span.alt-text,#footer_menu {
  display: none;
}
.main_img{
		display: none;
	}

/* スライド */
.footerbanner{
	clear: both;
    width: 820px;
    margin: 20px auto;
    text-align: left;
}
.footerbanner .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.footerbanner .footer-swiper { 
  padding: 8px 0;
}

.year-table.hyo {
  width: 100%;
  border-collapse: collapse;
}
.year-table.hyo td {
	margin-right: 5px;
}
.year-table.hyo a {
  color: #333;
  text-decoration: none;
}

/* PC時は非表示 */
.accordion-btn,.category-menu .accordion-btn{
  display: none; /*  */
}

.category-menu .accordion-content {
  display: block;
}

.category-menu .accordion-content a {
  margin-right: 8px;
}

/* 翻訳 */
ul#headerNavi{
	left: 490px;
}
.lang-select{
	display: block;
	position: absolute;
	top: 12px;
	right: 0;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	text-align: center;
	font-size: 20px;
	border-radius: 5px;
	border: none;
	cursor: pointer;
	transition: width 0.3s ease;
	overflow: visible; /* 重要！ */
	z-index: 200;
}

.lang-buttons {
	display: flex;
	gap: 10px; /* ボタンの間隔 */
	align-items: center;
  }
 
  .lang-dropdown {
	position: relative;
	display: inline-block;
  }
  
  .lang-trigger {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
  }
  
  .lang-trigger img {
	width: 50px;
	height: 50px;
	cursor: pointer;
  }
  
  .lang-menu {
	position: absolute;
	top: 40px;
	text-align: left;
	font-size: 1.2rem;
	left: -25px;
	display: none;
	flex-direction: column;
	gap: 5px;
	background: #ffffff;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	z-index: 9999;
  }
  
  .lang-menu li {
	list-style: none;
  }
  
  .lang-menu a img {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	transition: transform 0.2s ease;
  }
  
  .lang-menu a img:hover {
	transform: scale(1.1);
  }

.dl-grid {
	display: grid;
	grid-template-columns: max-content 1fr; /* dt = 最長幅に合わせる, dd = 残り */
	gap: 2px 4px; /* 行間・列間 */
  }
  .dl-grid.dl-p{
	font-size: large !important;
    line-height: 150%;
}
  .dl-grid dt {
	font-weight: bold;
  }

  .dl-grid dd {
	margin: 0; /* デフォルトの余白を消す */
  }

  .scroll-hint {
	display: none;
  }


/* PC(≥992px)ではナビとページネーションを隠す */
@media (min-width: 992px) {
  .footerbanner .swiper-button-prev,
  .footerbanner .swiper-button-next,
  .footerbanner .swiper-pagination {
    display: none;
  }
  .d-none{
		display: block!important;
	}
}


@media (max-width: 991px) {
	
	html,body{
		font-family:"Hiragino Sans", "ヒラギノ角ゴシック";
	}
	
	body{
		padding-bottom: 80px;
	}
	.d-none{
		display: none!important;
	}
	.w-100{
		width: 100%;
		max-width: 100%;
		height: auto;
	}
	.size-auto{
		width: auto;
		height: auto;
	}
	
/* ハンバーガーメニュー用 */
		
	.d-none,ul#headerNavi{
		display: none;
	}
  #menu-toggle {
	display: block;
	background: #316c18;
	border: 1px solid #508622;
	color: #fff;
	padding: 10px 10px 5px;
	font-size: 1.4rem;
	position: fixed;
	top: 10px;
	right: 10px;
	z-index: 2000;
	cursor: pointer;
	font-weight: bold;
	border-radius: 5px;
	line-height: 1.2rem;
  }
#menu-toggle span{
	font-size: 0.6rem;
	display: block;
}

  /* サイドメニュー */

  #lnavi.sidemenu {
	  position: fixed;
	  top: 0;
	  right: -280px;
	  width: 220px; 
	  height: 100%;
	  background: #f9f9f9;
	  overflow-y: auto;
	  transition: right 0.3s ease-in-out;
	  z-index: 1500;
	  padding: 20px 15px;
	  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
	  overflow: scroll;
  }

  /* 表示時 */
  #lnavi.sidemenu.active {
    right: 0;
  }

  #lnavi ul {
    list-style: none;
    padding: 0;
    margin:40px 0 50px;

  }

  #lnavi ul li {
    margin: 12px 0;
  }

  #lnavi ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
  }

  #lnavi ul li a img {
    display: none; /* 基本は画像を隠す */
  }
  #lnavi ul li a span.alt-text {
    display: inline; /* altテキストを表示 */
	  font-weight: bold;
	  padding-left: 15px;
  }

  /* banner クラスだけは画像を表示する */
  #lnavi ul li.banner a img {
    display: inline;
  }
  #lnavi ul li.banner a span.alt-text {
    display: none; /* altテキストは不要なので非表示 */
  }

  /* 閉じるボタン */
  #menu-close {
	display: block;
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 28px;
	background: #3c751b;
	border-radius: 5px;
	padding: 3px 10px;
	border: none;
	cursor: pointer;
	color: #ffffff;
  }

  /* 背景オーバーレイ */
  #overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1400;
  }
  #overlay.active {
    display: block;
  }
	

 /* スライド */	

	
.swiper-button-prev, .swiper-button-next {
    width: 50px!important;
    height: 35px!important;
    flex-shrink: 0!important;
    display: flex!important;
    align-items: center!important;
    justify-content: center!important;
    cursor: pointer!important;
}
.swiper-button-prev:after, .swiper-button-next:after {
    font-size: 1.2rem!important;
    font-weight: bold;
	color: #ffffff;
	background-color: #3a8918;
    border-radius: 50%;
    padding: 5px 10px;
}
.swiper-pagination-bullet-active {
    opacity: 1;
    background: #3a8918!important;
}
	

 /* 下メニュー */	

	
	#footer_menu {
        position: fixed;
        bottom: 0;
        display: flex!important;
        width: 100%;
        z-index: 3;
    }
	#footer_menu .flex-item {
        flex: 1;
        color: #fff;
        text-align: center;
        padding: 10px 10px 2px;
        font-size: 0.9rem;
        font-weight: bold;
        text-decoration: none;
        border: 1px solid #fff;
		background-color: #529e17;
    }
	#footer_menu img{
		width: 40px;
		margin-bottom: 10px;
	}
	#footerAddress p{
		font-size: 0.9rem!important;
		line-height: 1.2rem;
	}

 /* 幅調整 */	

 body {
	margin: 0;
	overflow-x: hidden; /* 一時的な保険 */
  }
	#pageblock,#headerBottomInner,
	#contents,
	#headerInner,#footerAddress,
	.footerbanner,table,
	.scroll,#headerBottomInner,
	iframe{
		width: 100%;
	}
	
	*, *::before, *::after {
		box-sizing: inherit;
	  }

	#contents h1 img{
		width: 991px;
		object-fit: cover;
		object-position: left;
	}

	#event, #topics {
		width: 50%;
	}
	#front #mainContents{
		float: left;
	}
	#mainContents{
		float: none;
        padding: 0 15px 0 10px;
        width: 95%!important;
	}

/* 見出し */
h2{
	line-height: 2rem;
	background-size: cover;
	}
h3 {
background: none;
background-color: #f9f9f9;
border-left: 5px solid #3c950e;
line-height: 1.8rem;
font-size: 1.1rem;
}
.style2 {
font-size: 1.2rem;
}
	
/* おしらせ　SP用切り替え */
  .accordion-btn {
    display: block;
    width: 97%;
    padding: 12px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
  }

  /* table風解除して縦並びに */
  .year-table, .year-table tr, .year-table td,.table-block th,.table-block td{
    display: block;
    width: 100%;
  }

  /* リンクを縦並びにする */
  .year-table a {
    display: block;
    padding: 10px!important;
    border-bottom: 1px solid #ddd;
    margin: 0;
  }
	.year-table a:before {
		content: "";
		background: url(../img/li_bg.gif);
		background-repeat: no-repeat;
		background-position: left 0.22em;
		margin-bottom: .5em;
		padding: 0 0 0 18px;
	}
  .year-table td {
	line-height: 1.4rem;
  }

  /* アコーディオン閉じる状態 */
  .year-links .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
	.year-links .accordion-content span{
		display: none;
	}
	.year-links .accordion-content table.hyo tbody{
		display: block;
	}
	.year-links .accordion-content table.hyo a{
		padding: 0;
		line-height: 1rem;
	}
	
	.history + h3{
		margin-top: 30px;
	}
	.history tr{
		border-bottom: 1px solid #000;
	}
	.history th,.history td{
		display: block;
		padding-left: 0!important;
		width: 100%;
	}
	.history th{
		text-align: center;
	}

		.category-menu .accordion-btn { 
		  display: block;
		  width: 97%;
		  text-align: left;
		  padding: 10px;
		  font-size: 16px;
		  cursor: pointer;
		  border: 1px solid #ccc;
		  background: #f9f9f9;
		}

		.category-menu .accordion-content {
		  display: none;
		  border: 1px solid #ccc;
		  border-top: none;
		  padding: 10px;
		}

		.category-menu.open .accordion-content {
		  display: block;
		}
		.category-menu .accordion-content a {
		  display: block;
		  padding: 6px 0;
		  margin: 0;
		}

  /* 翻訳*/
		.lang-select{
			right: 90px;
		}
		.lang-trigger img {
			width: 60px;
		}
}



@keyframes scroll-hint-animation {
		  0% {
			transform: translate(-50%, -50%);
		  }
		  50% {
			transform: translate(-40%, -50%);
		  }
		  100% {
			transform: translate(-50%, -50%);
		  }
		}

@media (max-width: 768px) {
	#contents h1 img {
		object-fit: contain;
    }
	.scroll,#event, #topics{
		width: 100%;
	}
	#event, #topics{
		margin-bottom: 20px;
	}
 /* メインイメージ差し替え */
	#front body {
		background: none;
	}
	#front .main_img{
		display: block;
	}
	#front #contents {
		margin-top: 0;
	}
	#front #mainContents {
		margin-top: -20px;
	}

	/*--↓ 書籍一覧--*/
	.table-container {
		margin: 0 auto;
		overflow-x: scroll;
	}
		
	.table-container .list{
			width: 100%;
			min-width: 900px;
			margin: 0 auto 1rem;
		}
	.table-container .liste, 
	.table-container .list td, 
	.table-container .list th {
			border: 1px solid #595959;
			border-collapse: collapse;
		}
		
	.table-container .list td, 
	.table-container .list th {
			font-size: .8rem;
			padding: 1em;
			box-sizing: border-box;
		}
		
	.table-container .list th {
			color: #333;
			background-color: #DEE1E6;
		}
	
	.scroll-hint {
		position: absolute;
		top: 95%;
		left: 50%;
		transform: translate(-50%, -50%);
		padding: 10px;
		background: rgba(0, 0, 0, 0.5);
		color: #fff;
		font-weight: 700;
		line-height: 1.4;
		display: block;
		animation: scroll-hint-animation 2s infinite ease;
	}

	.scroll-hint--show {
		display: block;
	}
	.accordion-btn {
		width: 94%;
	}

}
@media (max-width: 550px) {
	.img_right,.img_left {
		float: none;
		padding: 20px 0;
		display: block;
		margin: auto;
	}
	#menu-toggle{
		right: 5px;
	}
	.lang-select{
		right: 80px;
	}
	.lang-trigger img {
        width: 50px;
	}
	#logo a img{
		width: 180px!important;
		height: auto!important;
	}
}
@media (max-width: 350px) {
	#logo a img{
		width: 150px!important;
	}
}