/*! Copyright (c) 2015 RICOH IMAGING COMPANY, LTD. */

/**
 * 基準画面設定
 *   Screen: 320px x 可変, 600px x 可変, 960px x 可変
 */

/*--------------------------------------------------------------------------*/
/**
 * 汎用設定
 */

/**
 * フォント
 */
strong {
/* GR Specialサイト色
	color: #e50004;
*/
/* アイコン色
	color: #ff6450;
	font-weight: 400;
*/
	color: #ff5040;
	font-weight: 400;
}

/**
 * レイアウト
 */
.gr-page .ui-content[role=main], .gr-panel .ui-panel-inner {
	padding: .5em 1em;
}

.gr-page-center .ui-content[role=main], .gr-panel-center .ui-panel-inner {
	text-align: center;
}

.gr-grid {
	margin-right: -.3125em;
	margin-left: -.3125em;
}

.gr-grid [class*=ui-block-] > * {
	margin-right: .3125em;
	margin-left: .3125em;
}

.gr .ui-footer {
	text-align: center;
}

.gr .ui-footer p {
	font-size: .8em;
	color: #999;
	font-weight: 300;
	margin: 1em 1.25em;
}

.gr .ui-page-theme-a .ui-footer p, .gr .ui-body-a .ui-footer p {
	color: #666;
}

.gr .ui-panel p {
	font-size: .9em;
}

.gr .ui-panel .gr-note {
	font-size: .8em;
	margin-top: .5em;
	margin-bottom: 1em;
}

/**
 * 画像
 */
img[src*="orient=1"], img[data-gr-src*="orient=1"] {
	-moz-transform: rotate(0deg);
	-webkit-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	-ms-transform: rotate(0deg);
	transform: rotate(0deg);
}

img[src*="orient=6"], img[data-gr-src*="orient=6"] {
	-moz-transform: rotate(90deg);
	-webkit-transform: rotate(90deg);
	-o-transform: rotate(90deg);
	-ms-transform: rotate(90deg);
	transform: rotate(90deg);
}

img[src*="orient=3"], img[data-gr-src*="orient=3"] {
	-moz-transform: rotate(180deg);
	-webkit-transform: rotate(180deg);
	-o-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	transform: rotate(180deg);
}

img[src*="orient=8"], img[data-gr-src*="orient=8"] {
	-moz-transform: rotate(270deg);
	-webkit-transform: rotate(270deg);
	-o-transform: rotate(270deg);
	-ms-transform: rotate(270deg);
	transform: rotate(270deg);
}

body.gr-rotate-by-exif img[src*="size=view"],
body.gr-rotate-by-exif img[src*="size=full"],
body.gr-rotate-by-exif img[data-gr-src*="size=view"],
body.gr-rotate-by-exif img[data-gr-src*="size=full"] {
	-moz-transform: none;
	-webkit-transform: none;
	-o-transform: none;
	-ms-transform: none;
	transform: none;
}

/**
 * 画像ギャラリー
 */
img.pswp__img {
	-moz-transform-origin: left top;
	-webkit-transform-origin: left top;
	-o-transform-origin: left top;
	-ms-transform-origin: left top;
	transform-origin: left top;
}

img.pswp__img[src*="orient=6"], img.pswp__img[data-gr-src*="orient=6"] {
	-moz-transform: rotate(90deg) translateY(-100%);
	-webkit-transform: rotate(90deg) translateY(-100%);
	-o-transform: rotate(90deg) translateY(-100%);
	-ms-transform: rotate(90deg) translateY(-100%);
	transform: rotate(90deg) translateY(-100%);
}

img.pswp__img[src*="orient=3"], img.pswp__img[data-gr-src*="orient=3"] {
	-moz-transform: rotate(90deg) translate(-100%, -100%);
	-webkit-transform: rotate(180deg) translate(-100%, -100%);
	-o-transform: rotate(90deg) translate(-100%, -100%);
	-ms-transform: rotate(90deg) translate(-100%, -100%);
	transform: rotate(90deg) translate(-100%, -100%);
}

img.pswp__img[src*="orient=8"], img.pswp__img[data-gr-src*="orient=8"] {
	-moz-transform: rotate(270deg) translateX(-100%);
	-webkit-transform: rotate(270deg) translateX(-100%);
	-o-transform: rotate(270deg) translateX(-100%);
	-ms-transform: rotate(270deg) translateX(-100%);
	transform: rotate(270deg) translateX(-100%);
}

body.gr-rotate-by-exif img.pswp__img[src*="size=view"],
body.gr-rotate-by-exif img.pswp__img[src*="size=full"],
body.gr-rotate-by-exif img.pswp__img[data-gr-src*="size=view"],
body.gr-rotate-by-exif img.pswp__img[data-gr-src*="size=full"] {
	-moz-transform: none;
	-webkit-transform: none;
	-o-transform: none;
	-ms-transform: none;
	transform: none;
}

.pswp {
	text-shadow: none;
}

.pswp__share-tooltip a {
	font-weight: 400;
}

a[class*=pswp__share--]:first-child:before {
	content: '';
	display: block;
	width: 0;
	height: 0;
	position: absolute;
	top: -12px;
	right: 15px;
	border: 6px solid rgba(0, 0, 0, 0);
	border-bottom-color: #fff;
	-webkit-pointer-events: none;
	-moz-pointer-events: none;
	pointer-events: none;
}

a[class*=pswp__share--]:first-child:hover:before {
	border-bottom-color: #ddd;
}

a[class*=pswp__share--]:hover {
	background: #ddd;
}

/**
 * ポップアップ Thanks to jQueryMobile Swatch E
 */
.gr .ui-popup.ui-content {
	text-align: center;
	background: #fff9df;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#fffadf), to(#fff3a5)); /* Saf4+, Chrome */
	background-image: -webkit-linear-gradient(#fffadf, #fff3a5); /* Chrome 10+, Saf5.1+ */
	background-image: -moz-linear-gradient(#fffadf, #fff3a5); /* FF3.6 */
	background-image: -ms-linear-gradient(#fffadf, #fff3a5); /* IE10 */
	background-image: -o-linear-gradient(#fffadf, #fff3a5); /* Opera 11.10+ */
	background-image: linear-gradient(#fffadf, #fff3a5);
	border-color: #f7c942;
	color: #222;
	text-shadow: 0 1px 0 #fff;
}

/*--------------------------------------------------------------------------*/
/**
 * 全ページ共通設定
 */

/**
 * コントロールパネル
 */
.gr-cpanel [class*=ui-grid-] {
	width: 100%;
}

.gr-cpanel [class*=ui-block-] > .ui-btn, .gr-cpanel [class*=ui-block-] > .ui-select {
	margin: .3125em;
}

.gr-cpanel [class*=ui-block-] > .ui-slider-switch {
	display: block;
	margin: .5em auto;
	width: 6.8em;
}

.gr-cpanel [class*=ui-block-] > label {
	display: block;
	text-align: center;
	margin: .25em auto -.25em auto;
	font-size: .8em;
}

.gr-cpanel-icon {
	font-size: 20px;
	position: absolute;
	left: 50%;
	margin-left: -12.5px;
	top: 5px
}

.gr-cpanel .ui-btn {
	padding-left: .5em;
	padding-right: .5em;
}

.gr-cpanel.gr-cpanel-large .ui-btn {
	padding: 1.15em .5em;
}

.gr-cpanel.gr-cpanel-large-2l .ui-btn {
	padding: .5em .5em;
}

/**
 * ナビゲーションバー
 */
.gr-navbar {
	margin: .5em auto;
	width: 100%;
}
.gr-navbar li {
	-webkit-border-radius: .3125em;
	border-radius: .3125em
}

.gr-navbar li .ui-btn {
	-webkit-border-radius: 0;
	border-radius: 0;
	padding: .5em;
}

.gr-navbar li .ui-btn:not(.ui-btn-active),
.gr-navbar li .ui-btn:not(.ui-btn-active):hover,
.gr-navbar li .ui-btn:not(.ui-btn-active):active {
	background-color: transparent;
}

.gr .ui-page-theme-a .gr-navbar .ui-btn:not(.ui-btn-active) .fa,
.gr .ui-body-a .gr-navbar .ui-btn:not(.ui-btn-active) .fa {
	opacity: .5;
	filter: Alpha(Opacity=50);
}

.gr .ui-page-theme-a .gr-navbar li .ui-btn, .gr .ui-body-a .gr-navbar li .ui-btn {
	border-color: #38c;
}

.gr .ui-page-theme-b .gr-navbar li .ui-btn, .gr .ui-body-b .gr-navbar li .ui-btn {
	border-color: #2ad;
}

.gr-navbar li:first-child .ui-btn {
	-webkit-border-top-left-radius: inherit;
	border-top-left-radius: inherit;
	-webkit-border-bottom-left-radius: inherit;
	border-bottom-left-radius: inherit;
}

.gr-navbar li:last-child .ui-btn {
	-webkit-border-top-right-radius: inherit;
	border-top-right-radius: inherit;
	-webkit-border-bottom-right-radius: inherit;
	border-bottom-right-radius: inherit;
	border-right-width: 1px;
	margin-right: 0;
}

/**
 * サムネール
 */
img.gr-thumb {
	position: absolute;
	background: #eee;
	padding: 0;
	object-fit: cover;
	width: 79px;
	height: 79px;
	margin: 0;
}

img.gr-thumb[src*="size=thumb"]  {
	width: 128px;
	height: 96px;
	clip: rect(9px, 104px, 88px, 25px);
	margin: -9px -25px;
}

img.gr-thumb.gr-thumb-mini {
	width: 68px;
	height: 68px;
}

img.gr-thumb.gr-thumb-mini[src*="size=thumb"]  {
	width: 106px;
	height: 80px;
	clip: rect(6px, 87px, 74px, 19px);
	margin: -6px -19px;
}

/**
 * 画像選択
 */
.ui-page.gr-state-select .gr-not-on-select,
.ui-page:not(.gr-state-select) .gr-on-select,
.ui-panel.gr-state-select .gr-not-on-select,
.ui-panel:not(.gr-state-select) .gr-on-select {
	display: none;
}

/**
 * スタンドアローンモード
 */
body.gr-state-standalone .gr-not-on-standalone,
body:not(.gr-state-standalone) .gr-on-standalone {
	display: none;
}

/**
 * 機能制限
 */
body.gr-state-restrict-wifi .gr-not-on-restrict-wifi,
body:not(.gr-state-restrict-wifi) .gr-on-restrict-wifi {
	display: none;
}

/**
 * miniモード
 */
body.gr-state-mini .gr-not-on-mini,
body:not(.gr-state-mini) .gr-on-mini {
	display: none;
}

/**
 * 開発モード
 */
body.gr-state-develop .gr-not-on-develop,
body:not(.gr-state-develop) .gr-on-develop {
	display: none;
}

/**
 * デモモード
 */
/* Thanks to jQueryMobile Swatch E */
.gr .ui-btn.gr-demo-focus {
	background: #fceda7;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#f8d94c), to(#fadb4e)); /* Saf4+, Chrome */
	background-image: -webkit-linear-gradient(#f8d94c, #fadb4e); /* Chrome 10+, Saf5.1+ */
	background-image: -moz-linear-gradient(#f8d94c, #fadb4e); /* FF3.6 */
	background-image: -ms-linear-gradient(#f8d94c, #fadb4e); /* IE10 */
	background-image: -o-linear-gradient(#f8d94c, #fadb4e); /* Opera 11.10+ */
	background-image: linear-gradient(#f8d94c, #fadb4e);
	border-color: #f2c43d;
	color: #111;
	text-shadow: 0 1px 0 #fff;
}

/**
 * 著作権文字列
 */
.gr-copyright-text:after {
	content: "© RICOH IMAGING COMPANY, LTD.";
}

/*--------------------------------------------------------------------------*/
/**
 * ページ個別対応
 */

/**
 * メニューパネル
 */
#gr-menuheader {
	margin: -1em -1em 1em;
	padding: .5em;
	text-align: center;
}

#gr-menuheader h2 {
	margin: 0;
	line-height: 0;
}

#gr-menuheader h2 img {
	height: 40px;
}

#gr-phrase {
	margin: 0;
	font-size: .9em;
	line-height: 1.1em;
}

#gr-phrase span {
	font-size: .8em;
	color: #2ad;
}

/**
 * コマンダーページ
 */
#gr-home .ui-content[role=main] {
	padding: 0 0 1px 0; /* @note */
}

#gr-view-container {
	width: 100%;
}

#gr-view {
	margin: 0 auto;
}

#gr-view img {
	display: block;
	width: 100%;
	background: #000 url(../fallback/liveview.jpg) no-repeat center center;
	background-size: contain;
}

#gr-control-container {
	max-width: 480px;
	margin: 0 auto;
}

#gr-control-navbar {
	display: block;
	width: 90%;
}

#gr-control {
	position: relative;
	margin-top: -.3125em;
}

#gr-control .gr-cpanel {
	height: 198px;
}

#gr-control-func {
}

@media (min-width: 600px) {
	#gr-view {
		max-width: 768px;
	}

	#gr-control-container {
		max-width: 768px;
	}

	#gr-control-navbar {
		display: none;
	}

	#gr-control {
		overflow: hidden;
		margin-top: auto;
	}

	#gr-control .gr-cpanel {
		width: 50%;
		height: auto;
		float: left;
		display: block !important/*style属性を無視させる*/;
	}

	#gr-control .gr-cpanel[data-gr-control-page="1"] {
		display: none !important/*style属性を無視させる*/;
	}
}

@media (min-width: 960px) {
	#gr-view-container {
		margin-right: -320px;
		float: left;
	}

	#gr-view {
		max-width: none;
		margin-right: 320px;
	}

	#gr-control-container {
		width: 320px;
		height: 600px;
		float: right;
	}

	#gr-control {
		height: 552px;
	}

	#gr-control .gr-cpanel {
		width: 100%;
	}

	#gr-control .gr-cpanel[data-gr-control-page] {
		display: block !important/*style属性を無視させる*/;
	}

	#gr-control .gr-cpanel[data-gr-control-page="1"] [class*=ui-grid-]:nth-child(2) {
		position: absolute;
		bottom: 0;
	}
}

/**
 * クイックビューパネル
 */
#gr-quickview .gr-gallery {
	list-style: none;
	padding: 0;
}

.ui-panel[data-gr-navbar-page="0"] [data-gr-navbar-page]:not([data-gr-navbar-page="0"]),
.ui-panel[data-gr-navbar-page="1"] [data-gr-navbar-page]:not([data-gr-navbar-page="1"]),
.ui-panel[data-gr-navbar-page="2"] [data-gr-navbar-page]:not([data-gr-navbar-page="2"]) {
	display: none;
}

.gr-quickview-header {
	height: 76px;
}

#gr-quickview .gr-gallery {
	min-height: 246px;
}

#gr-quickview .gr-gallery li {
	background: #000;
	white-space: nowrap;
	text-align: center;
	margin: 1px;
	padding: 0;
	display: inline-block;
}

/* @todo */
#gr-quickview .gr-gallery li a {
	display: block;
	width: 100%;
	height: 100%;
}

#gr-quick-single {
	margin: 0;
}

#gr-quick-single li {
	width: 240px;
	height: 240px;
}

#gr-quickview .gr-gallery li a:before {
	content: "";
	display: inline-block;
	height: 100%;
	vertical-align: middle;
}

#gr-quick-multi {
	margin: 0 -1em;
}

#gr-quick-multi li {
	width: 79px;
	height: 79px;
}

#gr-quickview .gr-gallery li img {
	display: inline-block;
	max-width: 100%;
	max-height: 100%;
	vertical-align: middle;
}

/**
 * 詳細設定パネル
 */
#gr-advanced .ui-panel-inner {
	padding: .5em;
}

/**
 * 画像ビューアページ
 */
#gr-folderview .ui-li-has-thumb > .ui-btn {
	padding-top: 13px;
	padding-bottom: 13px;
}

#gr-folderview .ui-li-has-thumb > .ui-btn > img {
	left: 16px;
	top: 8px;
	max-height: none;
	max-width: none;
}

/**
 * 画像ギャラリーページ
 */
#gr-viewer-gallery .ui-content[role=main] {
	padding: .5em 0;
}

#gr-viewer-gallery:not([data-gr-gallery-action=download]) [data-gr-gallery-action=download],
#gr-viewer-gallery:not([data-gr-gallery-action=select]) [data-gr-gallery-action=select] {
	display: none;
}

.gr-gallery-header {
	margin-top: -.5em;
	text-align: center;
}

#gr-thumbview-holder {
	margin: 0;
	padding: 0;
}

.gr-thumbview-navbar {
	margin: 2px 0;
	padding: 0;
	line-height: 1.0;
	list-style: none;
	position: relative;
	text-align: left;
}

.gr-thumbview-navbar li {
	display: inline-block;
}

.gr-thumbview-navbar li a {
	display: block;
	padding: .7em;
	font-size: 12.5px;
	font-weight: 400;
}

.gr-thumbview-navbar li a:not(.ui-btn).ui-disabled,
.gr-thumbview-navbar li a:not(.ui-btn).ui-disabled:hover {
	color: #333;
}

.gr-thumbview-navbar li.gr-thumbview-navbar-right {
	position: absolute;
	right: 0;
}

#gr-thumbview { 
	text-align: left;
	list-style: none;
	padding: 0;
	margin: 0 -2px -2px 0;
}

#gr-thumbview li {
	background: #eee;
	display: inline-block;
	vertical-align: middle;
	width: 78.49px/*Chrome object-fit&&rotate誤差対策*/;
	height: 78px;
	margin: 0 2px 2px 0;
	padding: 0;
}

#gr-thumbview li a {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	position: relative;
}

/**
 * プリセットページ
 */
#gr-presets .ui-content {
	padding-top: 1em;
}

#gr-miniview-holder {
	text-align: center;
	margin: 0 -1em/*幅縮小時の内容中央揃え*/;
	padding: 0;
	height: 216px;
}

#gr-miniview-holder li {
	position: relative;
	background: #000;
	white-space: nowrap;
	text-align: center;
	margin: 0 .5em;
	padding: 0;
	display: inline-block;
}

#gr-miniview-holder li a {
	display: block;
	width: 100%;
	height: 100%;
}

#gr-miniview-holder li a img {
	-webkit-touch-callout: default;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000 url(../fallback/liveview.jpg) no-repeat center center;
	background-size: 100% 100%;
}

#gr-miniview-single, #gr-miniview-multi {
	margin: 0;
	padding: 0;
}

#gr-miniview-multi {
	padding: 57px 0;
}

#gr-miniview-single {
	height: 216px;
}

#gr-miniview-single li {
	width: 288px;
	height: 216px;
}

#gr-miniview-multi {
	height: 102px;
}

#gr-miniview-multi li {
	width: 136px;
	height: 102px;
}

.gr-reflect-lr {
	-webkit-transform: scaleX(-1);
	-o-transform: scaleX(-1);
	-moz-transform: scaleX(-1);
	transform: scaleX(-1);
	filter: FlipH;
	-ms-filter: "FlipH";
}

/**
 * 情報ページ
 */
#gr-copyright h2 img {
	width: 235px;
	height: 165px;
	margin-bottom: -45px;
}

#gr-versions {
	font-size: .9em;
}

#gr-license {
	font-size: .8em;
	opacity: .6;
	filter: Alpha(Opacity=60);
}

/**
 * 開発ページ
 */

/**
 * アイコン画像
 */
#gr-icon {
	text-align: center;
}

.gr-icon-image {
	display: inline-block;
	position: relative;
	top: .5px;
	left: .5px;
	width: 72px;
	height: 72px;
	border: 1px solid #fff;
}

#gr-css-icon, #gr-css-icon:before, #gr-css-icon:after {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

#gr-css-icon {
	background: #000;
}

#gr-css-icon:after {
	text-align: center;
	line-height: 0;
	font-size: 12px;
	font-weight: 700;
	text-shadow: 0 0;
	top: 75%;
	height: 20%;
	color: #fff;
	content: "UNTITLED";
}

#gr-css-icon:before {
	background: url(../img/logo_lg.png) no-repeat center center;
	background-size: 60px;
	top: -6%;
	content: "";
}

/**
 * 画像保存ページ
 */
#gr-save, #gr-save-body {
	background: #000;
}

#gr-save p {
	font-size: .9em;
}

#gr-save img {
	-webkit-touch-callout: default;
	max-width: 100%;
}

#gr-switch-to {
	font-size: .9em;
	margin: 1em 0;
}

#gr-switch-to ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .9em;
}

#gr-switch-to li {
	display: inline-block;
	margin: auto .25em;
}

/*--------------------------------------------------------------------------*/
/**
 * 横画面レイアウト
 */
body.gr-landscape .ui-footer {
	display: none;
}

body.gr-landscape .ui-content[role=main] {
	margin-bottom: 0;
}

body.gr-landscape #gr-home .ui-header {
	display: none;
}

body.gr-landscape #gr-home .ui-content[role=main] {
	position: absolute;
	width: 100%;
	height: 99.9%;
	padding: 0;
}

body.gr-landscape #gr-view-container {
	height: 100%;
	font-size: 0;
}

body.gr-landscape #gr-view {
	display: inline-block;
	height: 100%;
	max-width: none;
	margin: 0;
}

body.gr-landscape #gr-view img {
	height: 100%;
	width: auto;
}

body.gr-landscape #gr-control-container {
	display: none;
}

/* iPhone 6 Plus */
@media only screen and (device-width: 414px) {
	body.gr-landscape #gr-home {
		min-height: 414px;
	}
	body.gr-landscape #gr-view-container {
		max-height: 414px;
	}
}

/* iPhone 6 */
@media only screen and (device-width: 375px) {
	body.gr-landscape #gr-home {
		min-height: 375px;
	}
	body.gr-landscape #gr-view-container {
		max-height: 375px;
	}
}

/* iPhone 5 */
@media only screen and (device-width: 320px) {
	body.gr-landscape #gr-home {
		min-height: 320px;
	}
	body.gr-landscape #gr-view-container {
		max-height: 320px;
	}
}

/* Android */
@media only screen and (device-width: 360px), only screen and (device-height: 360px) {
	body.gr-landscape #gr-view-container {
		max-height: 336px;
	}
}

/*--------------------------------------------------------------------------*/
/**
 * 端末個別対応
 */

/**
 * iPhone 6 Plus
 *   Screen: 414 x 736px
 *   Status Bar: 20px
 */
@media only screen and (device-width: 414px) and (device-height: 736px) {
	@media  (orientation: portrait) {
		#gr-thumbview-holder {
			padding: 0 6.75px;
		}

		#gr-save img {
			max-height: 382px;
		}
	}

	@media (orientation: landscape) {
		#gr-thumbview-holder {
			padding: 0 6.75px;
		}
	}

	body.gr-landscape #gr-home {
		min-height: 414px;
	}

	body.gr-landscape #gr-view-container {
		max-height: 414px;
	}
}

/**
 * iPhone 6
 *   Screen: 375 x 667px
 *   Status Bar: 20px
 */
@media only screen and (device-width: 375px) and (device-height: 667px) {
	@media (orientation: portrait) {
		#gr-thumbview-holder {
			padding: 0 27.5px;
		}

		#gr-save img {
			max-height: 343px;
		}
	}

	@media (orientation: landscape) {
		#gr-thumbview-holder {
			padding: 0 12.5px;
		}
	}

	body.gr-landscape #gr-home {
		min-height: 375px;
	}

	body.gr-landscape #gr-view-container {
		max-height: 375px;
	}
}

@media (width: 375px) and (max-height: 647px) { /* コマンダーページ調整 */
	#gr-control .gr-cpanel {
		height: 192px;
	}

	#gr-control .gr-cpanel[data-gr-control-page="1"] .ui-btn.ui-mini,
	#gr-control .gr-cpanel[data-gr-control-page="3"] .ui-btn.ui-mini {
		padding-top: 7.5px;
		padding-bottom: 7.5px;
	}

	#gr-control .gr-cpanel[data-gr-control-page="1"] .ui-btn.ui-mini.ui-btn-icon-top,
	#gr-control .gr-cpanel[data-gr-control-page="3"] .ui-btn.ui-mini.ui-btn-icon-top {
		padding-top: 30.5px;
	}
}

/**
 * iPhone 5
 *   Screen: 320 x 568px
 *   Status Bar: 20px
 */
@media only screen and (device-width: 320px) and (device-height: 568px) {
	@media (orientation: portrait) {
		#gr-save img {
			max-height: 288px;
		}
	}

	@media (orientation: landscape) {
		#gr-thumbview-holder {
			padding: 0 3.25px;
		}
	}

	body.gr-landscape #gr-home {
		min-height: 320px;
	}

	body.gr-landscape #gr-view-container {
		max-height: 320px;
	}
}

@media (width: 320px) and (height: 548px) { /* スタンドアローン時のみフッタなし */
	.gr .ui-footer {
		display: none;
	}

	.gr .ui-content[role=main] {
		margin-bottom: 0;
	}
}

@media (width: 320px) and (max-height: 548px) { /* コマンダーページ調整 */
	#gr-control .gr-cpanel {
		height: 178px;
	}

	#gr-control .gr-cpanel[data-gr-control-page="1"] .ui-btn.ui-mini,
	#gr-control .gr-cpanel[data-gr-control-page="3"] .ui-btn.ui-mini {
		padding-top: 5px;
		padding-bottom: 5px;
	}

	#gr-control .gr-cpanel[data-gr-control-page="1"] .ui-btn.ui-mini.ui-btn-icon-top,
	#gr-control .gr-cpanel[data-gr-control-page="3"] .ui-btn.ui-mini.ui-btn-icon-top {
		padding-top: 28.5px;
	}
}

/**
 * iPhone 4
 *   Screen: 320 x 480px
 *   Status Bar: 20px
 */
@media only screen and (device-width: 320px) and (device-height: 480px) {
	@media (orientation: portrait) {
		#gr-save img {
			max-height: 288px;
		}
	}

	@media (orientation: landscape) {
		#gr-thumbview-holder {
			padding: 0 1px;
		}

		#gr-thumbview li {
			width: 78px;
		}
	}

	body.gr-landscape #gr-home {
		min-height: 320px;
	}

	body.gr-landscape #gr-view-container {
		max-height: 320px;
	}
}

/**
 * iPad
 *   Screen: 768 x 1024px
 *   Status Bar: 20px
 */
@media only screen and (device-width: 768px) and (device-height: 1024px) {
}

@media (width: 1024px) and (max-height: 747px) { /* 横向きでスタンドアローンでなければフッタなし */
	.gr .ui-footer {
		display: none;
	}

	.gr .ui-content[role=main] {
		margin-bottom: 0;
	}
}

/**
 * Android 360x592 (360x640)
 *   Screen: 360 x 640px
 *   Status Bar: 25px
 *   Navigation Bar: 48px
 */
/* @note 回転後の不具合対策
@media only screen and (device-width: 360px) and (device-height: 592px)
*/
@media only screen and (device-width: 360px), only screen and (device-height: 360px) {
	@media (orientation: portrait) {
		#gr-thumbview-holder {
			padding: 0 20px;
		}
	}

	@media (orientation: landscape) {
		#gr-thumbview-holder {
			padding: 0 15.25px;
		}
	}

	body.gr-landscape #gr-view-container {
		max-height: 336px;
	}
}

@media (width: 360px) and (max-height: 567px) { /* フッタなし */
	.gr .ui-footer {
		display: none;
	}

	.gr .ui-content[role=main] {
		margin-bottom: 0;
	}
}

@media (width: 360px) and (max-height: 567px) { /* コマンダーページ調整 */
	#gr-home .ui-content[role=main] {
		height: 522px;
	}

	#gr-control .gr-cpanel {
		height: 166px;
	}

	#gr-control .gr-cpanel[data-gr-control-page="1"] [class*=ui-grid-]:last-child,
	#gr-control .gr-cpanel[data-gr-control-page="2"] [class*=ui-grid-]:last-child {
		position: absolute;
		bottom: -2px;
	}

	#gr-control .gr-cpanel[data-gr-control-page="1"] .gr-cpanel-icon,
	#gr-control .gr-cpanel[data-gr-control-page="3"] .gr-cpanel-icon {
		top: 2.5px;
	}

	#gr-control .gr-cpanel[data-gr-control-page="1"] .ui-btn.ui-mini,
	#gr-control .gr-cpanel[data-gr-control-page="3"] .ui-btn.ui-mini {
		padding-top: 3px;
		padding-bottom: 3px;
	}

	#gr-control .gr-cpanel[data-gr-control-page="1"] .ui-btn.ui-mini.ui-btn-icon-top,
	#gr-control .gr-cpanel[data-gr-control-page="3"] .ui-btn.ui-mini.ui-btn-icon-top {
		padding-top: 26.5px;
	}
}
