@charset "utf-8";
/* CSS Document */

.footerFixed {
  display: grid;
  grid-template-rows: 1fr min-content;
  grid-template-columns: 100%;
  min-height: 100vh;
}

#contents {
	width: 100%;
	padding: 0;
}

#left-contents {
	grid-area: left-contents;
}
#middle-contents {
	grid-area: middle-contents;
}
#right-contents {
	grid-area: right-contents;
}

footer {
  background: #BA487B;
	padding: 15px;
	text-align: center;
	clear: both;
	color: #FFF;
	font-size: 1.2rem;
	width: 100%;
}

footer a:link {
	color: #FFF;
}
footer a:visited {
	color: #FFF;
}
footer a:hover {
	color: #CCC;
}
footer a:active {
	color: #CCC;
}

footer address {
	display: flex;
	text-align: left;
}

.pagetop {
	display: none;
	position: fixed;
	bottom: 15px;
	right: 15px;
}
.pagetop a {
	display: block;
	background: #CD7AA0;
	text-align: center;
  color: #fff;
  font-size: 30px;
	text-decoration: none;
	padding: 10px 15px;
	filter:alpha(opacity=90);
	-moz-opacity: 0.9;
  opacity: 0.9;
  border-radius: 9999px;
  transition: all .5s ease;
  line-height: 1;
  z-index: 99;
}
.pagetop a:hover {
	display: block;
	background: rgba(186,72,123,0.5);
	text-align: center;
	text-decoration: none;
}

/* 表示領域が767.98px以下の場合に適用するスタイル */
@media print, screen and (max-width: 767.98px) {
	footer address {
		flex-direction: column;
		text-align: center;
	}
	footer address div:first-of-type {
		padding-bottom: 5px;
	}
	footer address div:nth-of-type(2) {
		border-left: none;
	}
	.fixed-bottom {
		position: static;
	}
}

/* 表示領域が768px以上の場合に適用するスタイル */
@media screen and (min-width: 768px) {
	footer {
		width: 100%;
	}
	footer address {
		flex-wrap: wrap;
		justify-content: center;
	}
	footer address div:nth-of-type(2) {
		border-left: 1px solid #CCC;
		padding: 0 10px;
		margin-left: 10px;
	}
}