@charset "utf-8";

html{
  scroll-behavior: smooth;
}
body{
	margin: 0;
}
a{
	color:#39c;
}
a:hover, a:active{
	color: #f99300;
}

header{
	min-width: 360px;
	margin: 0 auto;
	text-align: center;
	text-shadow: 0px 1px 8px #000;
	background: url("headimg.jpg") no-repeat;
	background-size: cover;
	color: #fff;
}
header#home{
	height: 400px;
}
header#sub{
	height: 200px;
	background-position-y: center;
}
header h1{
	font-size: 44px;
	margin: 0 auto;
}
header#home h1{
	padding-top: 100px;
}
header#sub h1{
	padding-top: 40px;
}
header h2{
	font-weight: normal;
	font-size: 36px;
	margin: 0 auto;
}
header p{
	font-size: 150%;
}

#menu{
	min-height: 60px;
	width: 100%;
	top: 0;
	position: sticky;
	background-color: #eee;
	z-index:1;
}
#menu p{
	float: left;
	margin: 0;
	margin-left: 20px;
}
#menu p img{
	height: 60px;
	margin-right: 20px;
}
#menu ul{
	text-align: center;
	font-size: 120%;
	margin: 0;
	line-height: 60px;
}
#menu ul li{
	list-style: none;
	display: inline-block;
}
#menu ul li a{
	display: inline-block;
	height: 60px;
	padding: 0 20px;
}
#menu ul li a:hover{
	background-color: #f8f8f8;
}

#main{
	max-width: 1200px;
	min-width: 360px;
	margin: 10px auto;
	padding-bottom: 40px;
	position: relative;
}
#main h2{
	text-decoration: underline;
	text-decoration-color: #f99300;
	text-decoration-thickness: 5px;
	text-underline-offset: 10px;
	border-bottom: 5px solid #ddd;
	font-weight: normal;
	font-size: 30px;
	line-height: 45px;
	padding-top: 50px;
}
#main h3{
	border-left: 10px solid #f99300;
	padding: 5px 10px;
	background-color: #f6f6f6;
}
#main h4{
	border-left: 5px solid #f99300;
	padding: 0 10px;
	margin-bottom: 0;
	font-size: 110%;
}

dl{
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	margin: 20px;
}
dl.notice{
	font-weight: bold;
}
dt{
	flex-basis: 80px;
	font-weight: bold;
}
dd{
	margin-left: 0;
	margin-bottom: 10px;
	flex-basis: calc(100% - 80px);
}

details{
	border: 1px solid #ccc;
	border-radius: 5px;
	interpolate-size: allow-keywords;
	transition: all .3s ease;
}
summary{
	padding: 10px;
	cursor: pointer;
	color:#39c;
	text-decoration: underline;
}
.details-content {
  padding: 10px;
}
::details-content {
  transition: all .3s ease, content-visibility .3s allow-discrete;
  overflow: clip;
  height: 0;
}
details[open]::details-content {
  height: auto;
}

table{
	border-collapse: collapse;
}
th, td{
	padding: 5px 10px;
}
thead tr{
	border-bottom: 2px solid #ccc;
}
tbody tr:nth-child(2n){
	background-color: #f6f6f6;
}

footer{
	background-color: #eee;
	padding: 20px;
	contain: layout;
}
#footlogo{
	float: left;
	padding-top: 20px;
}
#footlogo img{
	height: 60px;
	margin-right: 20px;
}
#contact{
	float: right;
	text-align: right;
}
#contact p{
	font-weight: bold;
	margin-bottom: 5px;
}
#contact address{
	font-style: normal;
}

#button-container {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 20px;
	width: 100px;
	pointer-events: none;
}
#up{
	position: sticky;
	top: calc(100vh - 120px);
	width: 100px;
	height: 90px;
	text-align: center;
	font-size: 15px;
	background-color: #666;
	border-radius: 50%;
	pointer-events: auto;
	padding-top: 10px;
	opacity: 0;
	visibility: hidden;
	animation: showButton linear both;
	animation-timeline: scroll();
	animation-range: 0px 100px;
}
#up::first-letter{
	font-size: 24px;
}
#up a:link, #up a:visited{
	color: #fff;
	text-decoration: none;
}
@keyframes showButton {
  to {
    opacity: 1;
    visibility: visible;
  }
}
