﻿.article, .aside {
	text-align: left;
	margin: 10px 10px 1em 10px;
	padding-top: 10px;
	padding-bottom:10px;
}
/* 1. ヘッダーを画面上部に固定 */
#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff; /* 背景色を指定して透過を防ぐ */
    border-bottom: 1px solid #ddd;
}

/* 2. サイドバーを画面内に固定（親のwrapperにalign-items: flex-startが必要な場合があります） */
#sidebar {
    position: sticky;
    top: 80px; /* ヘッダーの高さ分、少し下げて固定 */
    height: fit-content;
}

/* 3. 新着情報エリアのスクロール設定 */
.news-container {
    max-height: 650px;    /* 表示したい高さ（適宜調整してください） */
    overflow-y: auto;     /* 縦方向にスクロールバーを出す */
    padding-right: 15px;  /* スクロールバーと文字の重なり防止 */
    border: 1px solid #eee; /* 枠線をつけると「ここが別領域」と分かりやすくなります */
    padding: 10px;
    background: #fafafa;  /* ほんのり背景色を変えると視認性が上がります */
    margin-top: 10px;
}

/* スクロールバーのデザイン（お好みで。細くするとスッキリします） */
.news-container::-webkit-scrollbar {
    width: 8px;
}
.news-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

/* 4. 一覧表示エリアのスクロール設定 */
.ichiran-container {
    max-height: 700px;    /* 表示したい高さ（適宜調整してください） */
    overflow-y: auto;     /* 縦方向にスクロールバーを出す */
    padding-right: 15px;  /* スクロールバーと文字の重なり防止 */
    border: 1px solid #eee; /* 枠線をつけると「ここが別領域」と分かりやすくなります */
    padding: 10px;
    background: #fdfdfd;  /* ほんのり背景色を変えると視認性が上がります  fafafa fdfdfd*/
    margin-top: 10px;
}

/* スクロールバーのデザイン（お好みで。細くするとスッキリします） */
.ichiran-container::-webkit-scrollbar {
    width: 8px;
}
.ichiran-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

#header {
	background-color: #FFFFFF;
	text-align: left;
}
#header h1 {
	font-size: 2em;
	padding: 0.2em 0px;
	margin: 0px;
}
#header img{
	border-style:none
}
#header .title a {
	font-size: 2em;
	color: #79B244;
	font-weight: bolder;
}

#page_content,#sidebar {
	background-color: #FFFFFF;
}
#footer {
	background-color: #FFFFFF;
	clear: both;
	padding: 5px;
}
/* .wrapper {
} */
body {
	padding: 0px;
	margin: 0px;
	background-color: #CDE695;
	text-align: center;
	color: #333;
	font-family: Meiryo,Arial, Helvetica, sans-serif;
	font-size:1em
}
#page_content h1 a, #page_content h1 a:hover {
	color: #79B244;
	text-decoration: none;
}

.container {
	padding: 5px 10px 5px 10px;
	position: relative;
	margin: auto;
}
h1,h1 a:link,h1 a:visited,.aside h3 {
	margin-top: 0px;
	padding: 0px;
	line-height:1.1em;
	clear: both;
	color: #79B244;
}
/* h2, h3, h4, h5, h6, h2 a, h3 a { */
h2, h3, h2 a, h3 a {
	padding: 0px;
	line-height: 1.1em;
	clear: both;
	color: #79B244!important;
	/* color: #FFFFFF; */
}
h1 a:hover, h2 a:hover,h3 a:hover{
	text-decoration:underline!important
}


h4{
	text-indent: 1em;
	margin: 0.5em 0px 0px 0px;
	padding: 0px;
}	

.info {
	text-indent: 0;
	margin: 0.2em 0px 0px 1em;
	padding: 0px;
	/* line-height: 1.6em; */
}
/* #page_content{
	color: #FFFFFF;
} */

a:link {
	color: #06c;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	color: #FF0000;
}
.aside ul, ul.list {
	list-style-type: none;
	margin: 0px 0px 1em 0px;
	padding: 0px;
	border-top: dotted 1px;
}
.aside ul li, ul.list li{
	padding: 0.5em 0px;
	margin: 0px;
	border-bottom: dotted 1px;
}
.aside li a, .list a{
	display: block;
}
.aside ol,ul.rel {
	margin: 0px 0px 10px 2em;
	padding: 0px;
}
.aside ol li, ul.rel li {
	margin: 0px;
	padding: 5px 0px 5px 0px;
}
.center {
	text-align: center;
}
.right {
	text-align: right;
}
dt{
	font-weight:bold
}
.nav{border-style: dotted none;	border-width: 1px;	padding: 20px;	text-align: center;	clear: both;}
.nav a {
	margin: 20px 5px 20px 5px;
	padding: 10px;
	background-color: #6EBE35;
	color: #fff;
	border-radius: 7px;
	-webkit-border-radius: 7px; /* Safari,Google Chrome用 */
	-moz-border-radius: 7px; /* Firefox用 */
	text-decoration: none;
}

@media only screen{
img {max-width: 100%;height: auto;}
}

@media(min-width:1024px){
.container{
	/* width:975px */
	width:895px
}
  .wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start; /* 左→右に詰める */
    gap: 15px;                   /* サイドバーと本文の間隔 */
    max-width: 1000px;           /* 横幅の上限（お好みで調整） */
    margin: 10px auto;
  }
  #sidebar {
		order: -1;       /*  これで先頭（左側）になる */
    flex: 0 0 240px;   /* 固定幅 240px */
  }
  #page_content {
		order: 0;
    flex: 1 1 630px;   /* 最小 630px、残りは伸縮 */
    max-width: 730px;  /* 1124px 以上用に上限を指定 */
  }

#page_content, #sidebar {
	border-radius: 7px;
	-webkit-border-radius: 7px; /* Safari,Google Chrome用 */
	-moz-border-radius: 7px; /* Firefox用 */
}
.article, .aside {
	padding-top: -10px;
	margin-top: 0;
	margin-bottom:0
}
}

@media only screen and (min-width: 1124px) {
#page_content {
	max-width: 750px;
}
}

.notice-box {
  margin: 1.5em 0;
  padding: 1.2em;
  background: #f9f9f9;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  line-height: 1.8;
  font-size: 0.95em;
}
.notice-box h2 {
  margin-top: 1.2em;
  font-size: 1.1em;
  color: #4b4b4b;
  border-left: 5px solid #9bc27d;
  padding-left: 0.5em;
}
.notice-box p {
  margin: 0.6em 0;
}

/* FAQ (details/summary) */
.faq {
  margin: 1.5em 0 2.5em;
  padding: 1.2em 1.2em 0.6em;
  background: #f9fff3;
  border: 1px solid #cfe5b9;
  border-radius: 6px;
}
.faq h2 {
  margin: 0 0 0.6em;
  font-size: 1.1em;
  color: #4b4b4b;
  border-left: 5px solid #9bc27d;
  padding-left: 0.5em;
}
.faq details {
  border-top: 1px dashed #cdd9c7;
  padding: 0.6em 0;
}
.faq details:first-of-type {
  border-top: none;
}
.faq summary {
  cursor: pointer;
  /* font-weight: 600; */
  list-style: none;
  outline: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "＋";
  display: inline-block;
  margin-right: .4em;
  font-weight: 700;
}
.faq details[open] summary::before { content: "－"; }
.faq details > div {
  margin: .5em 0 .2em 1.4em;
  line-height: 1.8;
  color: #333;
}
@media (prefers-reduced-motion: no-preference) {
  .faq details > div { transition: opacity .15s ease; }
  .faq details[open] > div { opacity: 1; }
}

