@charset "utf-8";



/*全端末（PC・タブレット・スマホ）共通設定
------------------------------------------------------------------------------------------------------------------------------------------------------*/

/*全体の設定
---------------------------------------------------------------------------*/
body {
	margin: 0px;
	padding: 0px;
	color: #333;	/*全体の文字色*/
	font-family: "ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic Pro","ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;	/*フォント種類*/
	font-size: 14px;	/*文字サイズ*/
	line-height: 2;		/*行間*/
	background: #fff url(../images/bg.jpg);	/*背景色と背景壁紙*/
	-webkit-text-size-adjust: none;
	overflow-x: hidden;
}
h1,h2,h3,h4,h5,p,ul,ol,li,dl,dt,dd,form,figure,form {margin: 0px;padding: 0px;font-size: 100%;}
ul {list-style-type: none;}
ol {padding-left: 40px;}
img {border: none;max-width: 100%;height: auto;vertical-align: middle;}
table {border-collapse:collapse;font-size: 100%;border-spacing: 0;}
iframe {width: 100%;}

/*リンク（全般）設定
---------------------------------------------------------------------------*/
a {
	color: #666;	/*リンクテキストの色*/
}
a:hover {
	color: #f9a107;			/*マウスオン時の文字色*/
	text-decoration: none;	/*マウスオン時に下線を消す設定。残したいならこの１行削除。*/
}

/*コンテナー
---------------------------------------------------------------------------*/
#container {
	max-width: 1400px;	/*最大幅*/
	margin: 0 auto;
}

/*コンテンツ（左右ブロックを囲むボックス）
---------------------------------------------------------------------------*/
#contents {
	padding: 5% 8% 0;
	position: relative;z-index: 10;
	top: 0px;
	overflow: hidden;
}

/*メインコンテンツ
---------------------------------------------------------------------------*/
#main {
	float: right;	/*右側に回り込み*/
	width: 73%;		/*幅*/
	overflow: hidden;
	padding-top: 10%;	/*コンテンツ上にあける余白*/
}
/*トップページのmain*/
#top #main {
	padding-top: 30%;	/*コンテンツ上にあける余白*/
}
/*メインコンテンツのh2タグの設定*/
#main h2 {
	clear: both;
	font-size: 16px;	/*文字サイズ*/
	font-weight: bold;
        margin-bottom: 30px;
	padding: 8px 30px;	/*上下、左右への余白*/
	background: #f9a107;	/*背景色*/
	border-radius: 30px;	/*角丸のサイズ*/
	color: #fff;			/*文字色*/
	position: relative;
}
/*装飾用画像の土台設定*/
#main h2::after, #main h3::after {
	display: block;
	position: absolute;
	right: 0px;	/*h2,h3タグに対して右から0pxの場所に配置*/
	top: -15px;	/*h2,h3タグに対して上から-20pxの場所に配置*/
}
/*装飾用画像（飛行機）*/
#main h2.bg1::after, #main h3.bg1::after {
	content: url(../images/bg1.png);
}
/*装飾用画像（木馬）*/
#main h2.bg2::after, #main h3.bg2::after {
	content: url(../images/bg2.png);
}
/*装飾用画像（列車）*/
#main h2.bg3::after, #main h3.bg3::after {
	content: url(../images/bg3.png);
}
/*装飾用画像が入った場合、テキストと画像が重ならないように右側に余白をとる設定*/
#main h2.bg1, #main h3.bg1,
#main h2.bg2, #main h3.bg2,
#main h2.bg3, #main h3.bg3 {
	padding-right: 160px;
}
/*メインコンテンツのh3タグの設定*/
#main h3 {
	clear: both;
	font-size: 14px;	/*文字サイズ*/
	margin-bottom: 25px;
	padding: 8px 30px;	/*上下、左右への余白*/
	border: 2px solid #f9a107;	/*線の幅、線種、色*/
	border-radius: 30px;	/*角丸のサイズ*/
	background: #fff;		/*背景色*/
	color: #666;			/*文字色*/
	position: relative;
}
/*メインコンテンツのp(段落)タグ設定*/
#main p {
	padding: 13px 30px 14px;	/*上、左右、下への余白*/
}
#main h2 + p,
#main h3 + p {
	margin-top: -15px;
}

.back {
	margin: -25px auto -10px auto;
	padding: 13px 10px;	/*上下、左右への余白*/
	width: 90%;
	background: rgba(247,247,247,0.95);	/*背景色。0,0,0は黒の事で0.05は透明度5%の事。*/
}

#map {
  width: 100%;
  height: 450px;
  overflow: hidden;
}
#map iframe {
  width: 100%;
  height: 850px;
  margin-top: -200px
}



/*一覧ページ用ボックス
---------------------------------------------------------------------------*/
/*各ボックスの設定*/
#main .list {
	width: auto;
	margin: 0 3% 15px;
	border: 1px solid #ccc;	/*枠線の幅、線種、色*/
	padding: 3%;			/*ボックス内の余白*/
	background: #FFF;		/*背景色（古いブラウザ用）*/
	background: -webkit-linear-gradient(#FFF, #f1f1f1);	/*グラデーション*/
	background: linear-gradient(#FFF, #f1f1f1);			/*同上*/
	position: relative;
	overflow: hidden;
	border-radius: 10px;	/*角丸のサイズ*/
}
/*ボックス内の写真設定*/
#main .list figure img {
	float: left;			/*画像を左へ回り込み*/
	background: #FFF;		/*画像の背景色。ここでは枠線と画像の間の色になります。*/
	padding: 0.8%;			/*余白。ここに上の行で設定した背景色が出ます。*/
	border: 1px solid #CCC;	/*枠線の幅、線種、色*/
	width: 30%;	/*写真の幅*/
	-webkit-box-shadow: 2px 2px 3px rgba(0,0,0,0.15);	/*ボックスの影。右へ、下へ、広げる範囲、rgb指定での色。0,0,0は黒のことで、0.15が透明度15%の事。*/
	box-shadow: 2px 2px 3px rgba(0,0,0,0.15);			/*同上*/
}
/*ボックス内のh4タグ設定*/
#main .list h4 {
	font-size: 16px;	/*文字サイズ*/
	border-bottom: 2px dotted #f9a107;	/*下側の線の幅、線種、色*/
	margin-bottom: 10px;
	margin-left: 34%;	/*左の画像とバランスをとって設定する*/
	color: #f9a107;		/*文字色*/
}
#main .list h4::first-letter {
	border-left: 3px solid #f9a107;	/*左側のアクセント用ラインの幅、線種、色*/
	padding-left: 10px;	/*アクセントラインと文字の間にとる余白*/
}
/*ボックス内の段落タグ設定*/
#main .list p {
	padding: 0px;
	margin-left: 34%;	/*左の画像とバランスをとって設定する*/
}


/*各ボックスの設定*/
#main .list2 {
	width: auto;
	margin: 0 3% 15px;
	border: 1px solid #ccc;	/*枠線の幅、線種、色*/
	padding: 3%;			/*ボックス内の余白*/
	background: #FFF;		/*背景色（古いブラウザ用）*/
	background: -webkit-linear-gradient(#FFF, #f1f1f1);	/*グラデーション*/
	background: linear-gradient(#FFF, #f1f1f1);			/*同上*/
	position: relative;
	overflow: hidden;
	border-radius: 10px;	/*角丸のサイズ*/
}
/*ボックス内の写真設定*/
#main .list2 figure img {
	float: right;			/*画像を右へ回り込み*/
	background: #FFF;		/*画像の背景色。ここでは枠線と画像の間の色になります。*/
	padding: 0.8%;			/*余白。ここに上の行で設定した背景色が出ます。*/
	border: 1px solid #CCC;	/*枠線の幅、線種、色*/
	width: 30%;	/*写真の幅*/
	-webkit-box-shadow: 2px 2px 3px rgba(0,0,0,0.15);	/*ボックスの影。右へ、下へ、広げる範囲、rgb指定での色。0,0,0は黒のことで、0.15が透明度15%の事。*/
	box-shadow: 2px 2px 3px rgba(0,0,0,0.15);			/*同上*/
}
/*ボックス内のh4タグ設定*/
#main .list2 h4 {
	font-size: 16px;	/*文字サイズ*/
	border-bottom: 2px dotted #f9a107;	/*下側の線の幅、線種、色*/
	margin-bottom: 10px;
	margin-right: 34%;	/*左の画像とバランスをとって設定する*/
	color: #f9a107;		/*文字色*/
}
#main .list2 h4::first-letter {
	border-left: 3px solid #f9a107;	/*左側のアクセント用ラインの幅、線種、色*/
	padding-left: 10px;	/*アクセントラインと文字の間にとる余白*/
}
/*ボックス内の段落タグ設定*/
#main .list2 p {
	padding: 0px;
	margin-right: 34%;	/*左の画像とバランスをとって設定する*/
}



/*よく頂く質問ページ
---------------------------------------------------------------------------*/
.faq {
	padding: 0 30px;
}
.faq dt {
	font-weight: bold;
	color: #f9a107;
}
.faq dd {
	padding-bottom: 15px;
}

/*サブコンテンツ
---------------------------------------------------------------------------*/
#sub {
	float: left;	/*左に回り込み*/
	width: 22%;		/*幅*/
}
/*subコンテンツ内のh2タグ設定*/
#sub h2 {
	font-size: 100%;
	padding-bottom: 10px;
}
/*subコンテンツのh2タグの１文字目への設定*/
#sub h2::first-letter {
	border-left: 3px solid #f9a107;	/*左側のアクセント用ラインの幅、線種、色*/
	padding-left: 10px;
}

/*ロゴ画像
---------------------------------------------------------------------------*/
#logo, #logo-s {
	background: #f9a107;	/*背景色*/
	text-align: center;
	padding: 40px;			/*ボックス内の余白。この余白に合わせてロゴ画像がリサイズされます。*/
	border-radius: 15px;	/*角丸のサイズ*/
	margin-bottom: 30px;	/*ロゴボックスの下にあけるスペース*/
	border: 5px solid #fff;	/*枠線の幅、線種、色*/
	-webkit-box-shadow: 2px 2px 4px rgba(0,0,0,0.2);	/*ボックスの影。右へ、下へ、広げる範囲、rgb指定での色。0,0,0は黒のことで、0.2が透明度20%の事。*/
	box-shadow: 2px 2px 4px rgba(0,0,0,0.2);			/*同上*/
}

/*メインメニュー
---------------------------------------------------------------------------*/
/*メニューブロック全体の設定*/
#menubar,
#menubar-s {
	overflow: hidden;
	font-size: 16px;
}
/*メニュー１個あたりの設定*/
#menubar a,
#menubar-s a {
	display: block;
	text-decoration: none;
	background: #fff;	/*背景色（古いブラウザ用）*/
	background: linear-gradient(#fff 50%, #eee);	/*背景色グラデーション*/
	text-align: center;	/*文字をセンタリング*/
	padding: 10px 0px;	/*上下、左右へのメニュー内の余白*/
	margin: 0px 2px 10px;	/*上、左右、下へあけるメニューの外側への余白*/
	border: 2px solid #f9a107;	/*枠線の幅、線種、色*/
	border-radius: 15px;	/*角丸のサイズ*/
	line-height: 1.6;		/*行間。少し狭くする。*/
	-webkit-box-shadow: 0px 2px 4px rgba(0,0,0,0.2);	/*ボックスの影。右へ、下へ、広げる範囲、rgb指定での色。0,0,0は黒のことで、0.2が透明度20%の事。*/
	box-shadow: 0px 2px 4px rgba(0,0,0,0.2);			/*同上*/
}
/*マウスオン時*/
#menubar a:hover {
	background: #fff;	/*背景色*/
	position: relative;
	left: 1px;	/*マウスオン時い左から1pxずらす*/
	top: 1px;	/*マウスオン時い上から1pxずらす*/
}
/*英語表記*/
#menubar a span,
#menubar-s a span{
	display: block;
	color: #f9a107;	/*文字色*/
	font-size: 9px;	/*文字サイズ。小さく。*/
	letter-spacing: 0.2em;	/*文字間隔を広く*/
}
/*小さな端末（800px以下）用メニューとロゴを表示させない*/
#menubar-s,#logo-s {
	display: none;
}
/*３本バーアイコンを表示させない*/
#menubar_hdr {
	display: none;
}

/*サブコンテンツ内のサブメニュー
---------------------------------------------------------------------------*/
/*メニュー全体の設定*/
#sub ul.submenu {
	margin-bottom: 15px;	/*メニューブロックの下に空けるスペース*/
	border-top: solid 1px #e4e4e4;	/*上の線の線種、幅、色*/
}
/*メニュー１個ごとの設定*/
#sub ul.submenu li {
	background: #fff;	/*背景色*/
	border-bottom: solid 1px #e4e4e4;	/*下の線の線種、幅、色*/
}
#sub ul.submenu li a {
	text-decoration: none;
	display: block;
	padding: 2px 10px;	/*メニュー内の余白。上下、左右への設定。*/
}

/*サブコンテンツ内のbox1
---------------------------------------------------------------------------*/
#sub .box1 {
	padding: 15px;			/*ボックス内の余白*/
	margin-bottom: 15px;	/*ボックスの下に空けるスペース*/
	background: #f3f3f3;	/*背景色（古いブラウザ用）*/
	background: rgba(0,0,0,0.05);	/*背景色。0,0,0は黒の事で0.05は透明度5%の事。*/
	border: solid 1px #ccc;	/*線の線種、幅、色*/
	-webkit-box-shadow: 0px 0px 1px 1px #fff inset;	/*ボックスの影。内側に白のラインを入れる。*/
	box-shadow: 0px 0px 1px 1px #fff inset;			/*同上*/
	border-radius: 10px;	/*角丸のサイズ*/
}
/*box1内のメニューの設定*/
#sub .box1 ul.submenu {
	margin-bottom: 0px;
}

/*フッター設定
---------------------------------------------------------------------------*/
footer {
	clear: both;
	text-align: center;
	padding: 10px 0px;
}
footer a {
	text-decoration: none;
}
footer .pr {
	display: block;
	font-size: 80%;
}

/*トップページのアニメーション設定（画面左から右に移動するアニメーション）
---------------------------------------------------------------------------*/
/*キーフレーム。
0%はアニメーション開始地点。左から-200px、上から30%の場所からスタート。
100%で左から100%、上から0pxの場所へゴール。*/
@keyframes animation1 {
	0% {left: -200px; top: 30%;}
	100% {left: 100%; top:0px;}
}
/*画像ブロック*/
#animation1 {
	width: 200px;	/*画像幅*/
	position: absolute;
	z-index: 5;
	-webkit-animation: animation1 10s ease-in both;	/*「3s」はアニメーションの実行時間（３秒）。変更してもらってOKです。*/
	animation: animation1 10s ease-in both;			/*同上*/
	-webkit-animation-fill-mode: backwards;
	animation-fill-mode: backwards;
}

/*トップページ「以外」の、上部にある装飾画像
---------------------------------------------------------------------------*/
#subimg {
	position: fixed;
	top: -50px;
	left: 0px;
	width: 100%;
}

/*トップページ内「更新情報・お知らせ」ブロック
---------------------------------------------------------------------------*/
/*ブロック全体の設定*/
#new dl {
	padding-left: 20px;
	margin-bottom: 15px;
	height: 170px;	/*高さ*/
	overflow: auto;	/*高さを超えた場合にiframe風にする設定。全部表示させていたいならこの行と上のheightの行を削除。*/
}
/*日付設定*/
#new dt {
	font-weight: bold;	/*太字にする設定。標準がいいならこの行削除。*/
	float: left;
	width: 8em;
}
/*記事設定*/
#new dd {
	padding-left: 8em;
}

/*テーブル（ta1）
---------------------------------------------------------------------------*/
.ta1 {
	width: 94%;
	margin: 0 auto;
	margin-bottom: 25px;
	background: #fff;					/*背景色（古いブラウザ用）*/
	background: rgba(255,255,255,0.8);	/*背景色。255,255,255は白の事で0.8は透明度80%の事。*/
	border: 5px solid #ccc;				/*テーブルの枠線の幅、線種、色*/
}
.ta1 th {
	border: 1px dashed #999;	/*テーブルの枠線の幅、線種、色*/
	padding: 10px;				/*ボックス内の余白*/
	word-break: break-all;
}
.ta1 td {
	border: 1px dashed #999;	/*テーブルの枠線の幅、線種、色*/
	padding: 10px 30px;	/*ボックス内の余白*/
	word-break: break-all;
}
/*テーブル１行目に入った見出し部分*/
.ta1 th.tamidashi {
	width: auto;
	text-align: center;	/*中央*/
	color: #fff;	/*全体の文字色*/
	background: #b6b6b6;	/*背景色*/
}
/*ta1の左側ボックス*/
.ta1 th {
	width: 140px;	/*幅*/
	text-align: center;	/*センタリング*/
	background: #f7f7f7;	/*背景色（古いブラウザ用）*/
	background: rgba(0,0,0,0.05);	/*背景色。0,0,0は黒の事で0.05は透明度5%の事。*/
}
/*olタグのpadding変更*/
.ta1 ol {
	padding-left: 35px;
}
/*ulタグのpadding変更*/
.ta1 ul.disc {
	padding-left: 30px;
}
/*段落タグのpadding変更*/
.ta1 p {
	padding: 0px !important;
}

.vertical {
	  writing-mode: vertical-rl;
          text-orientation: upright;
}

/*テーブル（ta2）
---------------------------------------------------------------------------*/
.ta2 {
	width: 94%;
	margin: 0 auto;
	margin-bottom: 15px;
        table-layout: fixed;
	background: #fff;					/*背景色（古いブラウザ用）*/
	background: rgba(255,255,255,0.8);	/*背景色。255,255,255は白の事で0.8は透明度80%の事。*/
}
.ta2 th {
	padding: 10px;				/*ボックス内の余白*/
	word-break: break-all;
}
.ta2 td {
	border: 0px solid #666;	/*テーブルの枠線の幅、線種、色*/
	padding: 2.5px ;	/*ボックス内の余白*/
        color: #666;
	text-align: center;	/*中央*/
        font-weight: bold;
	word-break: break-all;
}
/*テーブル１行目に入った見出し部分*/
.ta2 th.tamidashi {
	width: auto;
	text-align: center;	/*中央*/
	color: #035ace;	/*全体の文字色*/
	background: #f0f4f9;	/*背景色*/
}
/*ta1の左側ボックス*/
.ta2 th {
	width: 100%;	/*幅*/
	text-align: center;	/*センタリング*/
	background: #f7f7f7;	/*背景色（古いブラウザ用）*/
	background: rgba(0,0,0,0.05);	/*背景色。0,0,0は黒の事で0.05は透明度5%の事。*/
}
/*olタグのpadding変更*/
.ta2 ol {
	padding-left: 35px;
}
/*ulタグのpadding変更*/
.ta2 ul.disc {
	padding-left: 30px;
}
/*段落タグのpadding変更*/
.ta2 p {
	padding: 0px !important;
}

/*テーブル（ta3）
---------------------------------------------------------------------------*/
.ta3 {
	width: 94%;
	margin: 0 auto;
	margin-bottom: 15px;
        table-layout: fixed;
	background: #fff;					/*背景色（古いブラウザ用）*/
	background: rgba(255,255,255,0.8);	/*背景色。255,255,255は白の事で0.8は透明度80%の事。*/
}
.ta3 th {
	padding: 10px;				/*ボックス内の余白*/
	word-break: break-all;
}
.ta3 td {
	border: 0.5px dashed #999;	/*テーブルの枠線の幅、線種、色*/
	padding: 2.5px ;	/*ボックス内の余白*/
        color: #666;
	text-align: left;	/*中央*/
        font-weight: ;
	word-break: break-all;
}
/*テーブル１行目に入った見出し部分*/
.ta3 th.tamidashi {
	width: auto;
	text-align: center;	/*中央*/
	color: #035ace;	/*全体の文字色*/
	background: #f0f4f9;	/*背景色*/
}
/*ta1の左側ボックス*/
.ta3 th {
	width: 100%;	/*幅*/
	text-align: center;	/*センタリング*/
	background: #f7f7f7;	/*背景色（古いブラウザ用）*/
	background: rgba(0,0,0,0.05);	/*背景色。0,0,0は黒の事で0.05は透明度5%の事。*/
}
/*olタグのpadding変更*/
.ta3 ol {
	padding-left: 35px;
}
/*ulタグのpadding変更*/
.ta3 ul.disc {
	padding-left: 30px;
}
/*段落タグのpadding変更*/
.ta3 p {
	padding: 0px !important;
}

/*PAGE TOP設定
---------------------------------------------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 30px;
    right: 20px;
}
/*マウスオン時*/
#pagetop img:hover {
	position: relative;
	left: 1px;	/*マウスオン時い左から1pxずらす*/
	top: 1px;	/*マウスオン時い上から1pxずらす*/
}

/*トップページのNEWアイコン
---------------------------------------------------------------------------*/
.newicon {
	background: #F00;
	color: #FFF;
	font-size: 10px;
	padding: 0px 5px;
	border-radius: 2px;
	margin: 0px 5px;
}

/*その他
---------------------------------------------------------------------------*/
.look {background: #dcdcdc;padding: 4px;border-radius: 4px;}
.mb15,.mb1em {margin-bottom: 15px;}
.mb30 {margin-bottom: 30px;}
.clear {clear: both;}
ul.disc {padding-left: 60px;list-style: disc;}
.color1 {color: #f9a107;}
.pr {font-size: 10px;}
.wl {width: 96%;}
.ws {width: 50%;}
.c {text-align: center;}
.r {text-align: right;}
.l {text-align: left;}
img.fr {float: right;margin-left: 10px;margin-bottom: 10px;}
img.fl {float: left;margin-right: 10px;margin-bottom: 10px;}
.big1 {font-size: 30px;letter-spacing: 0.2em;}
.mini1 {font-size: 11px;}



/*photo1
---------------------------------------------------------------------------*/
/* 親コンテナのリセット */
#page {
  max-width: 100%; /* ページ幅を調整 */
  margin: -30px 10px 10px 10px;
  padding: 10px 10px 10px 10px; /* 上・右・下・左の順で指定 */
}

/* メイン画像の設定 */
#imgMain {
  text-align: center; /* 中央揃え */
  margin-bottom: 15px;
}

#imgMain img {
  width: 100%; /* 幅いっぱいに拡大 */
  max-width: 600px; /* 最大幅を指定 */
  height: auto; /* アスペクト比を維持 */
  border-radius: 10px; /* 角を丸くする（オプション） */
}

/* ギャラリーのスタイル */
#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); /* 自動調整 */
  gap: 3px; /* 写真の間隔 */
  list-style: none;
  padding: 0;
  margin: 0;
}

#gallery li {
  overflow: hidden; /* 画像がはみ出さないようにする */
  height: 50px; /* 画像の高さと同じに設定 */
  display: flex;
  justify-content: center; /* 中央揃え */
  align-items: center;
}

#gallery img {
  width: 100%; /* 幅を親要素に合わせる */
  height: 50px; /* 高さを固定 */
  object-fit: cover; /* 画像のアスペクト比を維持しながら中央を表示 */
  border-radius: 8px; /* 角を丸くする（オプション） */
  transition: transform 0.3s ease; /* ホバー時のズーム用 */
}

#gallery img:hover {
  transform: scale(1.05); /* ホバー時にズームイン */
}

/* clearfixの代わりにモダンなフロー調整 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* スマホ画面用のメディアクエリ */
@media (max-width: 768px) {
  #imgMain img {
    max-width: 90%; /* 幅を縮小 */
  }

  #gallery {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* スマホ用の幅を調整 */
    gap: 8px; /* 写真間隔を少し狭く */
  }
}

/*photo2
---------------------------------------------------------------------------*/
/* 親コンテナのリセット */
#page2 {
  max-width: 100%; /* ページ幅を調整 */
  margin: -30px 10px 10px 10px;
  padding: 10px 10px 10px 10px; /* 上・右・下・左の順で指定 */
}

/* メイン画像の設定 */
#imgMain2 {
  text-align: center; /* 中央揃え */
  margin-bottom: 15px;
}

#imgMain2 img {
  width: 100%; /* 幅いっぱいに拡大 */
  max-width: 600px; /* 最大幅を指定 */
  height: auto; /* アスペクト比を維持 */
  border-radius: 10px; /* 角を丸くする（オプション） */
}

/* ギャラリーのスタイル */
#gallery2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); /* 自動調整 */
  gap: 3px; /* 写真の間隔 */
  list-style: none;
  padding: 0;
  margin: 0;
}

#gallery2 li {
  overflow: hidden; /* 画像がはみ出さないようにする */
  height: 50px; /* 画像の高さと同じに設定 */
  display: flex;
  justify-content: center; /* 中央揃え */
  align-items: center;
}

#gallery2 img {
  width: 100%; /* 幅を親要素に合わせる */
  height: 50px; /* 高さを固定 */
  object-fit: cover; /* 画像のアスペクト比を維持しながら中央を表示 */
  border-radius: 8px; /* 角を丸くする（オプション） */
  transition: transform 0.3s ease; /* ホバー時のズーム用 */
}

#gallery2 img:hover {
  transform: scale(1.05); /* ホバー時にズームイン */
}

/* clearfixの代わりにモダンなフロー調整 */
.clearfix2::after {
  content: "";
  display: table;
  clear: both;
}

/* スマホ画面用のメディアクエリ */
@media (max-width: 768px) {
  #imgMain2 img {
    max-width: 90%; /* 幅を縮小 */
  }

  #gallery2 {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* スマホ用の幅を調整 */
    gap: 8px; /* 写真間隔を少し狭く */
  }
}


/*画面幅800px以下の設定
------------------------------------------------------------------------------------------------------------------------------------------------------*/
@media screen and (max-width:800px){

/*コンテンツ（左右ブロックを囲むボックス）
---------------------------------------------------------------------------*/
#contents {
	padding: 3% 3% 0;
}

/*main,subコンテンツ
---------------------------------------------------------------------------*/
#main, #sub {
	float: none;
	width: auto;
}

/*main
---------------------------------------------------------------------------*/
#main {
	padding: 0 !important;
}

/*ロゴ画像
---------------------------------------------------------------------------*/
#logo-s {
	margin-bottom: 5%;
	z-index: 11;
	position: relative;
	top: -15px;	/*上に移動する距離*/
	left: 3%;	/*左からの距離*/
	width: 20%;	/*ロゴの幅*/
	padding: 15px;	/*ボックス内の余白*/
}
/*小さな端末用（800px以下）のロゴとメニューを非表示から表示に切り替える*/
#logo-s, #menubar-s {
	display: block;
}
/*大きな端末用（801px以上）のロゴとメニューを非表示にする*/
#logo, #menubar {
	display: none;
}

/*メインメニュー
---------------------------------------------------------------------------*/
#menubar-s {
	position: relative;z-index: 12;
	margin: 0 3%;
	font-size: 14px;
}
/*メニュー１個あたりの設定*/
#menubar-s li {
	float: left;
	width: 49%;
	margin: 0 0.5% 0;
}

/*３本バーアイコン設定
---------------------------------------------------------------------------*/
/*３本バーブロック*/
#menubar_hdr {
	display: block;
	z-index: 13;
	position: absolute;
	top: 10px;		/*上から10pxの場所に配置*/
	right: 3%;		/*右から3%の場所に配置*/
	width: 30px;	/*幅*/
	border: 1px solid #000;	/*枠線の幅、線種、色*/
	border-radius: 4px;		/*角丸のサイズ*/
	padding: 12px 10px 5px;	/*上、左右、下へのボックス内余白*/
	background: #fff;		/*背景色*/
}
/*３本のバー（1本あたり）*/
#menubar_hdr span {
	display: block;
	border-top: 3px solid #000;	/*枠線の幅、線種、色*/
	margin-bottom: 7px;	/*バー同士の余白*/
}

/*トップページ「以外」の、上部にある装飾画像
---------------------------------------------------------------------------*/
#subimg {
	top: 60px;	/*上から60pxの場所に。少し下げる設定。*/
}

/*トップページ内「更新情報・お知らせ」ブロック
---------------------------------------------------------------------------*/
section#new h2.open {
	background: #f9a107 url(../images/btn_minus.png) no-repeat right center/34px 34px;
}
section#new h2.close {
	background: #f9a107 url(../images/btn_plus.png) no-repeat right center/34px 34px;
}

/*その他
---------------------------------------------------------------------------*/
body.s-n #sub {display: none;}

}



/*画面幅480px以下の設定
------------------------------------------------------------------------------------------------------------------------------------------------------*/
@media screen and (max-width:480px){

/*メインコンテンツ
---------------------------------------------------------------------------*/
/*mainコンテンツのh2タグの設定*/
#main h2 {
	padding: 4px 15px;
}
/*mainコンテンツのh3タグの設定*/
#main h3 {
	padding: 3px 14px;
}
/*メインコンテンツのp(段落)タグ設定*/
#main p {
	padding: 0px 15px 14px;	/*上、左右、下への余白*/
}

/*一覧ページ用ボックス
---------------------------------------------------------------------------*/
/*各ボックスの設定*/
#main .list {
	margin: 0 0 15px;
}
/*ボックス内の写真設定*/
#main .list figure img {
	float: none;
	padding: 0;
	border: none;
	width: 100%;
}
/*ボックス内のh4タグと段落タグ設定*/
#main .list h4,#main .list p {
	margin-left: 0;
}

/*ロゴ画像
---------------------------------------------------------------------------*/
#logo-s {
	margin-bottom: 0;
	width: 30%;	/*ロゴの幅*/
}

/*テーブル
---------------------------------------------------------------------------*/
/*テーブル内の左側*/
.ta1 th {
	width: 100px;
	padding: 5px;
}
/*テーブル内の右側*/
.ta1 td {
	width: auto;
	padding: 5px;
}

/*その他
---------------------------------------------------------------------------*/
.ws,.wl {width: 90%;}
img.fr,img.fl {float: none;margin: 0;width: 100%;}


