/* 
 *　小谷村移住なび
 *　　定住支援
 */

/* top */
#top {
	margin: 7px auto 57px;
	max-width: 902px;
	overflow: hidden;
	width: 95%;
}
#top h2 {
	display: block;
	float: left;
	margin: 38px 0 0;
}
#top h2 img {
	display: block;
}
.headline{
	padding: 33px 27px 33px 24px;
	max-width: 1087px;
	width: 95%;
	margin: auto;
}
.headline h3{
	background: url(https://otarigurashi.com/property/wp-content/themes/otarigurashi/img/line05.png) repeat-x left bottom;
	color: #4D2E2E;
    font-size: 3.5rem;
    margin: 0;
    padding: 0 0 4px 6px;
    text-shadow: 1px 1px 2px white, -1px -1px 2px white, 1px -1px 2px white, -1px 1px 2px white;
}
.headline p{
	font-size: 3.0rem;
}
.headline a{
	font-size: 2.5rem;
	display: block;
	margin-top: 10px;
	text-decoration: none;
}
#wrapper {
	background: url(../img/common/flower.png) no-repeat right top;
	float: left;
	padding: 88px 27px 33px 24px;
}
#wrapper p {
	background: url(../img/trial/line01.png) repeat left top;
	color: #523833;
	font-size: 2.9rem;
	font-weight: bold;
	line-height: 46px;
	margin: 0;
	/* max-width: 462px; */
	padding: 0 19px 1em;
	width: calc(100% - 38px);
	text-shadow: 4px 4px 2px white, -3px -3px 2px white, 1px -1px 2px white, -1px 1px 2px white;
}

/* 施設 */
div.facilities {
	background: url(../img/trial/bg_property.png) no-repeat left top;
	background-size: 100% 100%;
	color: #5F6439;
	/*min-height: 796px;*/
	margin: 0 auto 56px;
	max-width: 1087px;
	padding-bottom: 60px;
	position: relative;
	width: 95%;
}
p.name {
	float: left;
	font-size: 3rem;
	font-weight: bold;
	margin: 38px 0 6px 89px;
}
div.large_photo_wrapper {
	clear: left;
	float: left;
	margin-left: 83px;
	max-width: 498px;
	width: 100%;
}
div.large_photo {
	position: relative;
	width: 100%;
}
div.large_photo:before {
	content: "";
	display: block;
	padding-top: 75.1%;
}
div.large_photo.low:before {
	padding-top: 66.466%;
}
div.large_photo_inner {
	height: 100%;
	position: absolute;
	top: 0;
	width: 100%;
}
div.large_photo_inner img {
	display: block;
	height: auto;
	left: 0;
	opacity: 0;
	position: absolute;
	top: 0;
	transition: all 0.6s;
	width: 100%;
}
div.large_photo_inner input.photo {
	display: none;
}
div.large_photo_inner input.photo:checked + img,
div.large_photo_inner img.active {
	opacity: 1;
}
div.small_photos {
	float: left;
	font-size: 0;
	height: 140px;
	margin: 27px 0;
	overflow: hidden;
	width: 100%;
}
a.btn_left {
	cursor: pointer;
	display: inline-block;
	margin: 50px 28px 0 27px;
	vertical-align: top;
	visibility: hidden;
}
div.photo_wrap {
	display: inline-block;
	height: 100%;
	overflow: hidden;
	width: calc(100% - 166px);
}
div.photo_wrap ul {
	font-size: 0;
	padding: 0;
	width: inherit;
}
div.photo_wrap ul li {
	display: inline-block;
	margin-right: 35px;
}
div.photo_wrap ul li:last-child {
	margin-right: 0;
}
label.photo {
	cursor: pointer;
}
a.btn_right {
	cursor: pointer;
	display: inline-block;
	margin: 50px 27px 0;
	vertical-align: top;
}
div.content {
	overflow: hidden;
	/*position: absolute;
	right: 0;*/
	width: calc(100% - 581px);
}
a.googleMap {
	cursor: pointer;
}
div.googleMap {
	display: flex;
	flex-direction: column-reverse;
	float: right;
	margin: 69px 45px 0 0;
	max-width: 153px;
}
a.googleMap {
	float: right;
	margin: 69px 45px 0 0;
}
div.googleMap a.googleMap {
	float: none;
	margin: 0;
}
a.googleMap.trial {
	float: left;
	margin: 28px 0 0;
}
.googleMap img {
	display: block;
}
ul.address {
	float: right;
	font-size: 1.4rem;
	list-style: none;
	margin: 78px 0 13px;
	padding: 0;
	width: 274px;
}
p.outline {
	clear: both;
	float: right;
	font-size: 1.6rem;
	margin-right: 106px;
	max-width: 350px;
	width: 100%;
}
dl.charge {
	clear: both;
	float: left;
	font-size: 0;
	margin-bottom: 20px;
	margin-left: 50px;
}
dl.charge dt {
	display: block;
	font-size: 2.1rem;
	margin-right: 41px;
	width: 90px;
}
dl.charge dt.wide {
	width: 200px;
}
dl.charge dd {
	display: inline-block;
	font-size: 1.6rem;
	margin: 0;
}
div.facilities hr {
	background: url(../img/trial/line02.png) no-repeat left top;
	border: none;
	clear: both;
	height: 3px;
	margin-right: 105px;
	max-width: 352px;
}
p.note {
	float: right;
	font-size: 1.4rem;
	line-height: 1.2em;
	margin: 0 98px 0 0;
	width: 344px;
}
p.note:before {
	content: "※";
	display: inline;
	margin-left: -1em;
}
div.detail {
	clear: both;
	margin: 16px auto 0;
	max-width: 884px;
	position: relative;
	width: 95%;
}
a.btn_detail {
	background: url(../img/trial/btn_detail.png) no-repeat left top;
	color: white;
	cursor: pointer;
	display: block;
	font-size: 2rem;
	height: 54px;
	line-height: 54px;
	margin: 0 auto;
	text-align: right;
	width: 100%;
}
a.btn_detail span.text {
	display: inline-block;
	margin-right: 15px;
	width: 90px;
}
a.btn_detail:after {
	content: url(../img/trial/btn_down.png);
	display: inline;
	height: 17px;
	margin-right: 25px;
	transform-origin: 10px 25px;
	transition: all 0.6s;
	vertical-align: top;
	width: 20px;
}
a.btn_detail.up:after {
	transform: rotate(180deg);
}
div.overview {
	background: url(../img/trial/bg_detail.png) no-repeat left top;
	background-size: 100% 100%;
	display: none;
	margin: -5px 7px 0;
	/*min-height: 485px;*/
	position: absolute;
	width: calc(100% - 14px);
	z-index: 2;
}
a.btn_detail.up + div.overview {
	display: block;
}
div.overview dl {
	background: url(../img/trial/line03.png) repeat-y left top;
	font-size: 0;
	margin: 35px 35px 0;
	padding-bottom: 31px;
}
div.overview dl dt {
	display: inline-block;
	font-size: 2rem;
	margin-left: 56px;
	margin-top: 5px;
	vertical-align: top;
	white-space: nowrap;
	width: 106px;
}
div.overview dl dd {
	display: inline-block;
	font-size: 1.7rem;
	line-height: 31px;
	margin-left: 40px;
	width: calc(100% - 202px);
}
div.overview dl dd.inline {
	font-size: 0;
	overflow: hidden;
}
div.overview dl dd.inline span {
	display: inline-block;
	float: left;
	font-size: 1.7rem;
	margin-right: 1em;
}
div.overview h4 {
	font-size: 2.2rem;
	font-weight: normal;
	height:  31px;
	margin: 35px 0 0 55px;
}
div.overview h4 + dl {
	margin-top: 0;
}
dl.charge dt div,
a.btn_detail span div,
div.overview dl dt div {
	display: flex;
	justify-content: space-between;
}
div.inquiry {
	font-size: 1.8rem;
	padding: 0 16px;
	text-align: center;
}
div.inquiry p {
	display: block;
	font-size: 1.6rem;
	margin: 0.5em auto;
	max-width: 840px;
	text-align: left;
	width: 100%;
}
div.inquiry p + br {
	display: none;
}
div.inquiry ol {
	font-size: 1.6rem;
	list-style-position: inside;
	margin: 0 auto;
	max-width: 840px;
	padding: 0;
	text-align: left;
}
div.inquiry ol li {
	padding-left: 1em;
}
div.inquiry a {
	/* color: #5F6439; */
	display: inline-block;
	text-decoration: none;
	/*vertical-align: bottom;*/
}
div.inquiry a span {
	background-color: #5f6439;
	color: white;
	display: inline-block;
	height: 26px;
	margin-right: 8px;
	text-align: center;
	width: 41px;
}
div.inquiry a img {
	display: block;
}
a.btn_reserve {
	cursor: pointer;
}
a.btn_reserve img {
	height: auto;
	width: 270px;
}
a.btn_facebook {
	cursor: pointer;
	padding-bottom: 9px;
}

/* slide */
p.wrap_next {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: flex-end;
	margin: 0;
	opacity: 0;
	position: absolute;
	transition: all 0.2s;
	right: 0;
	top: 0;
	width: calc(100% / 3);
	z-index: 1;
}
a.next {
	background: url(../img/common/icon_right.png) no-repeat center center;
	background-size: 100% 100%;
	cursor: pointer;
	filter: drop-shadow(2px 2px 4px black);
	height: 48px;
	margin-right: 8px;
	width: 48px;
}
p.wrap_prev {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: flex-start;
	left: 0;
	margin: 0;
	opacity: 0;
	position: absolute;
	transition: all 0.2s;
	top: 0;
	width: calc(100% / 3);
	z-index: 1;
}
a.prev {
	background: url(../img/common/icon_left.png) no-repeat center center;
	background-size: 100% 100%;
	cursor: pointer;
	filter: drop-shadow(2px 2px 4px black);
	height: 48px;
	margin-left: 8px;
	width: 48px;
}
p.wrap_next:hover,
p.wrap_prev:hover {
	opacity: 1;
}
span.underline {
	text-decoration: underline;
}

/* pending */
a.pending {
	filter: grayscale(0.5);
	opacity: 0.5;
	pointer-events: none;
}
a[target="new"].pending {
	text-decoration: line-through;
}

@media (max-width: 1160px) {
	div.facilities {
		background-color: white;
		background-image: none;
		border-radius: 46px;
	}
	div.content {
		clear: both;
		margin: 0 auto 20px;
		max-width: 880px;
		position: static;
		width: 95%;
	}
	div.googleMap {
		flex-direction: row-reverse;
		flex-wrap: wrap;
		margin-top: 0.5em;
		max-width: 320px;
	}
	a.googleMap {
		margin-top: 0.5em;
	}
	div.googleMap a.googleMap {
		margin-top: 0;
	}
	ul.address {
		margin-top: 0.5em;
	}
	p.outline {
		margin-right: 0;
		max-width: inherit;
	}
	div.facilities hr {
		background-repeat: repeat-x;
		margin-bottom: 16px;
		margin-right: 0;
		max-width: inherit;
	}
	p.note {
		margin-right: 0;
		width: calc(100% - 1em);
	}
}

@media (max-width: 880px) {
	div.facilities {
		padding-bottom: 2em;
	}
	div.inquiry p {
		margin-bottom: 0;
	}
	div.inquiry p + br {
		display: block;
	}
}
@media (max-width: 690px) {
	#wrapper {
		padding: 88px 24px 33px;
	}
	p.name {
		margin-left: 2.5%;
		width: 95%;
	}
	div.large_photo_wrapper {
		clear: left;
		float: none;
		margin: 0 auto;
		width: 95%;
	}
	a.btn_left {
		margin: 50px 8px 0 7px;
	}
	a.btn_right {
		margin: 50px 7px 0;
	}
	div.photo_wrap {
		width: calc(100% - 86px);
	}
}
@media (max-width: 620px) {
	div.overview dl {
		background-position: left bottom;
		background-repeat: no-repeat;
	}
	div.overview dl dt {
		background: url(../img/trial/line03.png) no-repeat left top;
		display: block;
		margin-left: 0;
		padding-right: calc(100% - 106px);
		padding-top: 8px;
	}
	div.overview dl dd {
		display: block;
		margin: 0;
		padding-left: 40px;
		width: calc(100% - 40px);
	}
	div.overview h4 {
		clear: both;
		padding-top: 21px;
	}
	a.next,
	a.prev {
		height: 32px;
		width: 32px;
	}
}
@media (max-width: 420px) {
	#btn_menu {
		top: 152px;
	}
	#wrapper {
		padding: 88px 12px 33px;
	}
}

/* 予約フォーム */
#reserve_back {
	background-color: rgba(0, 0, 0, 0);
	color: #5F6439;
	display: none;
	height: 100%;
	left: 0;
	opacity: 0;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 10;
}
#reserve {
	background: url(../img/trial/bg_form.png) no-repeat left top;
	background-size: 100% 100%;
	display: none;
	min-height: 1004px;
	max-width: 804px;
	opacity: 0;
	padding-bottom: 40px;
	position: absolute;
	width: 95%;
	z-index: 11;
}
#reserve a img {
	display: block;
	height: auto;
	width: 100%;
}
#btn_close_form {
	background: rgba(187, 187, 187, 0.3);
	color: #A4A8B7;
	cursor: pointer;
	display: inline-block;
	float: right;
	font-size: 3rem;
	font-weight: bold;
	height: 31px;
	line-height: 28px;
	margin: 42px 46px 0 0;
	text-align: center;
	width: 30px;
}
#btn_close_form:hover {
	background-color: #4B2B2B;
	color: #FFFEDF;
}
#reserve > a[target="new"] {
	display: block;
	margin: 20px auto 0;
	max-width: 243px;
	text-align: center;
	width: 90%;
}

#reserve h5 {
	clear: both;
	font-size: 2.8rem;
	font-weight: bold;
	margin: 0 0 0 58px;
}
#sisetsu {
	font-size: 2rem;
	font-weight: bold;
	text-align: center;
}
#sisetsu::before {
	content: "《 ";
}
#sisetsu::after {
	content: " 》の予約";
}
#reserve > p {
	font-size: 1.6rem;
	margin: 1em auto 0;
	max-width: 670px;
	width: calc(100% - 3em);
}
#reserve dl {
	background-image: url(../img/trial/line04.png), url(../img/trial/line04.png);
	background-position: left top, left bottom;
	background-repeat: no-repeat, no-repeat;
	font-size: 0;
	margin: 8px 52px;
	padding: 35px 0;
}
#reserve dl dt {
	display: inline-block;
	font-size: 2rem;
	font-weight: bold;
	height: 35px;
	line-height: 20px;
	padding-top: 11px;
	position: relative;
	text-align: right;
	vertical-align: top;
	width: 210px;
}
#reserve dl dt p {
	background-color: darkred;
	bottom: -46px;
	color: white;
	display: none;
	font-size: 1.2rem;
	height: 36px;
	line-height: 36px;
	left: 0;
	position: absolute;
	text-align: center;
	width: 100%;
	z-index: 1;
}
#reserve dl dt p:before {
	border-style: solid;
	border-width: 0 10px 10px 10px;
	border-color: transparent transparent darkred transparent;
	display: block;
	height: 0;
	left: 50%;
	margin-left: -10px;
	content: "";
	position: absolute;
	top: -10px;
	width: 0;
}
#reserve dl dt p.error {
	display: block;
}
#reserve dl dd {
	background: url(../img/trial/bg_form_input1.png);
	display: inline-block;
	font-size: 1.3rem;
	height: 46px;
	margin-left: 8px;
	max-width: 426px;
	width: calc(100% - 218px);
}
#reserve dl dd.label {
	font-size: 1.6rem;
	font-weight: bold;
	height: 20px;
	padding: 13px 26px;
	width: calc(100% - 326px);
}
#reserve dl dd.family {
	background-image: url(../img/trial/bg_form_input2.png);
}
#reserve dl dd.family:not(.label) {
	font-size: 0;
}
#reserve dl dd.family *:not(span) {
	font-size: 1.3rem;
}
span.profile {
	display: inline-block;
}
#reserve dl dd.comment {
	background-image: url(../img/trial/bg_form_comment.png);
	height: 141px;
}
#reserve dl dd.meiwa {
	background-image: url(../img/trial/bg_form_comment.png);
	height: 70px;
}
#reserve dl dd textarea#comment {
	height: calc(100% - 24px);
	resize: none;
	width: calc(100% - 24px);
}
#reserve input[type="text"],
#reserve textarea {
	background-color: inherit;
	border: none;
	color: #5F6439;
	font-size: 1.3rem;
	font-weight: bold;
	line-height: 22px;
	margin: 12px;
	outline: none;
}
#reserve input[type="text"].active,
#reserve textarea.active {
	background-color: rgba(255, 255, 255, 0.7);
	box-shadow: 0 0 12px white;
}
#reserve input#date1 {
	text-align: right;
	width: calc(50% - 1em - 26px);
}
#reserve input#date2 {
	text-align: left;
	width: calc(50% - 1em - 30px);
}
#reserve input#address,
#reserve input#phone,
#reserve input#email,
#reserve input#email2 {
	width: 30em; /*calc(100% - 24px);*/
}
#reserve input#name0 {
	width: calc(100% - 9.5em - 48px);
}
#reserve form.ipad input#name0 {
	width: 17em;
}
#reserve input#name1,
#reserve input#name2,
#reserve input#name3,
#reserve input#name4 {
	width: calc(100% - 15em - 48px);
}
#reserve form.ipad input#name1,
#reserve form.ipad input#name2,
#reserve form.ipad input#name3,
#reserve form.ipad input#name4 {
	width: 11em;
}
#reserve input#age0 {
	width: 3.5em;
}
#reserve input#age1,
#reserve input#age2,
#reserve input#age3,
#reserve input#age4 {
	width: 2em;
}
/* 2022-11-24 */
#reserve .mei {
	width: 80%;
	margin: auto;
	font-size: 1.5rem;
}

#reserve .mei p {
	text-align: center;
	margin: 0;
}

#reserve .mei input {
	border:1px solid black;
}

#reserve .mei .err {
	/* background-color: darkred;/ */
	bottom: -46px;
	/* color: white; */
	color: red;
	font-weight: bold;
	display: none;
	font-size: 1.2rem;
	height: 36px;
	line-height: 36px;
	text-align: center;
	/* width: 60%; */
	z-index: 1;
}

#reserve .mei .error {
	display: block;
}

input[name="relationship[]"] {
	width: 4em;
}

ul#buttons {
	font-size: 0;
	list-style: none;
	padding: 0;
}
ul#buttons li {
	display: inline-block;
	margin-left: calc((100% - 306px) / 3);
}
ul#buttons li a {
	cursor: pointer;
}
#sending {
	background: rgba(0, 0, 0, 0.6);
	display: none;
	height: 100%;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 200;
}
#spinner {
  animation: sk-scaleout 1.0s infinite ease-in-out;
  background-color: yellow;
  border-radius: 100%;
  height: 60px;
  left: calc(50% - 30px);
  margin: 0;
  position: absolute;
  top: calc(50% - 30px);
  width: 60px;
}
dd.laws label {
	padding: 12px;
	display: block;
}

@media (max-width: 860px) {
	#reserve {
		background-color: white;
		background-image: none;
		border: 3px solid #A7C4AC;
		border-radius: 20px;
	}
	#reserve dl {
		margin: 38px 16px 8px;
	}
	#reserve dl dd.label {
		background-repeat: no-repeat;
		width: calc(100% - 270px);
	}
}
@media (max-width: 720px) {
	#reserve {
		height: inherit;
	}
	#reserve dl dt {
		display: block;
		text-align: left;
	}
	#reserve dl dd {
		background-color: #C9EDD2;
		background-image: none;
		height: inherit !important;
		width: calc(100% - 8px);
	}
	#reserve dl dd.label {
		max-width: 374px;
		width: calc(100% - 60px);
	}
	#reserve dl dd.family {
		background-color: #FCFAAB;
		background-image: none;
	}
	#reserve dl dd.comment {
		background-color: #FFF2FB;
		background-image: none;
	}
	ul#buttons {
		margin-bottom: 30px;
	}
}
@media (max-width: 630px) {
	dl.charge dd span {
		display: none;
	}
}
@media (max-width: 470px) {
	#reserve dl dd.family:not(.label) {
		text-align: right;
	}
	#reserve input#name1,
	#reserve input#name2,
	#reserve input#name3,
	#reserve input#name4 {
		margin-bottom: 0;
		width: calc(100% - 24px);
	}
	#reserve input#age1,
	#reserve input#age2,
	#reserve input#age3,
	#reserve input#age4 {
		margin-top: 0;
	}
	span.profile {
		display: block;
		padding-right: 1.3rem;
		text-align: right;
	}
}
@media (max-width: 420px) {
	body.experience #btn_menu {
		top: 158px;
	}
	body:not(.top) nav {
		top: 230px;
	}
	#reserve dl dd#main-person {
		text-align: right;
	}
	#reserve input#name0 {
		margin-bottom: 0;
		width: calc(100% - 24px);
	}
	#reserve input#age0 {
		margin-top: 0;
	}
}

@-webkit-keyframes sk-scaleout {
	100% {
		opacity: 0;
	}
}

@keyframes sk-scaleout {
	0% { 
		transform: scale(0);
	}
	100% {
		transform: scale(1.0);
    	opacity: 0;
	}
}
