body,
.ni-page {
	margin: 0;
	padding: 0;
/*
	padding-bottom: 44px;
	min-height: 100%;
	height: 100%;
*/
	top: 0;
	left: 0;
	width: 100%;
	position: absolute;
	border: 0;
	outline: none;
	overflow-x: hidden;
	min-height: 640px;
}

.ni-home {
	background-image: url(/img/bg_dolphin.jpg);
	background-size: cover;
	background-repeat: no-repeat;
/*
	outline: 0;
*/
}
.ni-header {
	background: #fff;
	position: relative;
	font-size: 1em;
	line-height: 1.3;
	min-height: 44px;
	text-align: center;
}
.ni-header > h2 {
	font-size: 1em;
	line-height: 44px;
	padding: 0;
	margin: 0 auto;
}
.ni-header > .ni-menu,
.ni-header > .ni-search {
	display: inline-block;
	vertical-align: middle;
	width: 2em;
	height: 2em;
	background: none;
	position: absolute;
	top: 50%;
	margin-top: -1em;
	border-radius: .3125em;
	opacity: .4;
	line-height: 2em;
}
.ni-header > .ni-menu {
	left: .3125em;
}
.ni-header > .ni-search {
	right: .3125em;
}
.ni-footer {
	position: absolute;
	bottom: 0;
	padding: 3px;
	text-align: center;
	left: 0;
	right: 0;
	width: 100%;
	min-height: 44px;
	z-index: 1000;
	font-size: 1em;
	line-height: 1.3;
	background-color: #fff;
}
.ni-content {
	text-align: center;
	color: #333;
	text-shadow: 0 1px 0 #f3f3f3;
	padding: 0;
	margin: 0 auto;
}
.ni-content > h1 {
	font-size: 2em;
	line-height: 1.3;
	padding: 0;
	margin: 0 auto;
}
.ni-content > p {
	font-size: 1.2em;
	line-height: 1.5;
	padding: 0;
	margin: 0 auto;
}
.ni-menu-panel {
	position: absolute;
	top: 44px;
	left: 0;

	max-height: 100%;
	padding: 0;
	z-index: 1001;
	background-color: rgba(255, 255, 255, 0.75);
}
.ni-menu-panel > ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.ni-menu-panel li {
	padding: 0 0 0 16px;
	margin: 0;
	font-size: 1em;
	line-height: 44px;
	color: #333;
	text-shadow: 0 1px 0 #f3f3f3;
	display: block;
	position: relative;
	text-align: left;
	border-bottom: 1px solid #ddd;
}
.ni-menu-panel a {
	display: block;
	width: 100%;
}
.ni-menu-panel a,
.ni-menu-panel a:active,
.ni-menu-panel a:hover,
.ni-menu-panel a:visited {
	text-decoration: none;
}
.ni-menu-panel a,
.ni-menu-panel a:visited {
	color: rgb(51, 51, 51);
}
.ni-menu-panel a:active,
.ni-menu-panel a:hover{
	color: #ff00ff;
}

.ni-search-panel {
	width: 17em;
	min-height: 50%;
	padding: 0;
	z-index: 1001;
	position: absolute;
	top: 44px;
	right: 0;
	background-color: rgba(255, 255, 255, 0.75);
	border-width: 0;
	border-style: solid;
	background-color: #fff;
	border-color: #ddd;
	color: #333;
	text-shadow: 0 1px 0 #f3f3f3;
	font-size: 1em;
	opacity: 0.9;
}
.ni-search-panel ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.ni-search-panel li {
	padding: 0 0 0 16px;
	margin: 0;
	font-size: 1em;
	line-height: 44px;
	color: #333;
	text-shadow: 0 1px 0 #f3f3f3;
	display: block;
	position: relative;
	text-align: left;
}
.ni-search-row {
	text-align: center;
}
.ni-search-input {
	width: 90%;
	margin: 0 auto;
}
.ni-hide {
	display: none;
}
.welcome_img {
	margin: 0 auto;
	width: 100%;
	height: 100%;
	background: transparent url('/img/miyajima_shrine_gate.png') no-repeat 75% bottom;
	background-size: 240px 240px;
}

/*
*	1136 x  640		iPhone 5 retina
*	 568 x  320		iPhone 5
*	 960 x  640		iPhone 4 retina
*	 480 x  320		iPhone 4
*	2048 x 1536		iPad Retina
*	1024 x  768		iPad
*/

/* iOS portrait */
@media screen and (max-width: 320px) {
	.ni-page {
		min-height: 320px;/* 320 -44 */
	}
	.welcome_img {
		background-size: 120px 120px;
	}
	.welcome_img img {
		width: 100px;
		height: 200px;
	}
}

/* iOS landscape */
/* iPhone 4, iPhone 5 */
@media screen and (max-width: 568px) and (max-height: 320px) {
	.ni-page {
		min-height: 320px;
	}
	.welcome_img {
		background-size: 120px 120px;
	}
}
/* iPhone 4 retina, iPhone 5 retina */
@media screen and (min-width: 569px) and (min-width: 1136px) and (max-height: 640px) {
	.ni-page {
		min-height: 640px;
	}
}
/* iPad */
@media screen and (min-width: 1024px) {
	.ni-page {
		min-height: 768px;
	}
}
/* iPad retina */
@media screen and (min-width: 2048px) {
	.ni-page {
		min-height: 1536px;
	}
}

@media (min-width: 641px) {
	.ni-menu-panel {
		display: block;
		width: 25%;
	}
}
@media (max-width: 640px) {
	.ni-menu-panel {
		display: none;
		width: 100%;
	}
}
