@charset "utf-8";
/* CSS Document */

.footerFixed {
  display: grid;
  grid-template-rows: 1fr min-content;
  grid-template-columns: 100%;
  min-height: 100vh;
}

header {
	grid-area: header-contents;
	margin: 0;
	text-align: center;
}

header img {
	width: 100%;
	height: auto;
}

#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: #E3487A;
	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: #EC8C9E;
	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(236,143,158,0.60);
	text-align: center;
	text-decoration: none;
}

/* 表示領域が767.98px以下の場合に適用するスタイル */
@media print, screen and (max-width: 767.98px) {
	header {
		padding: 15px;
		max-width: 767.98px;
		margin: 0 auto;
	}
	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;
	}
  .pcOnly {
    display: none !important;
  }
	.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;
	}
	#contents { /* 以上 */
		display: flex;
		justify-content: space-between;
		margin: 0 auto;
	}

	.spOnly {
    display: none !important;
  }
}

/* スマートフォンで見たときは"sp"のclassがついた画像が表示される */
@media only screen and (max-width: 767.98px) {
	.pcOnly2 { display: none !important; }
	.spOnly2 { display: block !important; }
}
/* スマートフォンで見たときは"pc"のclassがついた画像が表示される */
@media only screen and (min-width: 767.98px) {
	.pcOnly2 { display: block !important; }
	.spOnly2 { display: none !important; }
}

/* スマートフォンで見たときは"sp"のclassがついた画像が表示される */
@media only screen and (max-width: 575.98px) {
	.pcOnly3 { display: none !important; }
	.spOnly3 { display: block !important; }
}
/* スマートフォンで見たときは"pc"のclassがついた画像が表示される */
@media only screen and (min-width: 575.98px) {
	.pcOnly3 { display: block !important; }
	.spOnly3 { display: none !important; }
}