/* ================================================== */
/* #nav */
/* ================================================== */


/* ============ 開閉 ============ */

#nav {
	position:fixed;
	top: 0;
	right: 0;
	height: 100vh;
	width:60px;
	background-color: #81B5B7;
	opacity: 1;
	transition: all 0.3s;
	z-index:4;
	transform: translateX(0);
	-webkit-transform: translateX(0);
	-moz-transform: translateX(0);
}


#nav .logo {
    display: none;
}

/* ナビゲーションボタン */

#navbtn {
	position: fixed;
	top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
	background: none;
	border: none;
	appearance: none;
	padding:0px;
	cursor: pointer;
	z-index:5;
	display:none;
}

#navbtn .toggle {
	width: 30px;
	height: 30px;
}

#navbtn .toggle,
#navbtn .toggle span {
	display: inline-block;
	transition: all 0.3s;
	box-sizing: border-box;
}

#navbtn .toggle span {
	position: absolute;
    width: 30px;
    height: 1px;
    right: 0;
	background-color:#5f5f5f;
}

#navbtn .toggle span:nth-of-type(1) {
	top: 5px;
	width: 10px;
}

#navbtn .toggle span:nth-of-type(2) {
	top: 15px;
	width: 20px;
}

#navbtn .toggle span:nth-of-type(3) {
	top: 25px;
}

/*#navbtn::after{
  opacity: 0;
}*/



/* オープン時 */
.open #nav {
	visibility: visible;
	opacity: 1;
}

.open #navbtn {
	z-index: 100;
}

.open #navbtn .toggle span {
	position: absolute;
	width: 100%;
}

.open #navbtn .toggle span:nth-of-type(1) {
	transform: translateY(0) rotate(-45deg);
	top: 12px;
}

.open #navbtn .toggle span:nth-of-type(2) {
	opacity: 0;
}

.open #navbtn .toggle span:nth-of-type(3) {
	transform: translateY(0) rotate(45deg);
	top: 12px;
}

.open #navbtn {
	height:42px;
}

.open #navbtn .toggle::after {
	display:block;
	position: absolute;
	bottom: 0;
	left: 50%;
	-webkit-transform: translate(-50%, 0) scale(0.9);
	-moz-transform: translate(-50%, 0) scale(0.9);
	transform: translate(-50%, 0) scale(0.9);
	font-size:1rem;
	letter-spacing:0.3em;
	content : 'Close';
	font-size:50%;
	opacity: 1;
	color:#5f5f5f;
  }

@media only screen and (max-width: 1024px) {

main {
    transform: translateX(0);
    transition: all 0.3s;
}

#nav {
	width: 230px;
	/* 初期：非表示 */
	/*
	visibility: hidden;
	opacity: 0;
	*/
	color:#213B45;
	z-index:99;
	padding-top:40px;
	transform: translateX(230px);
	background-color: #BCDADB;
}

#nav .logo {
    display: block;
    width: 50px;
    margin: 0px auto 35px;
}

#navbtn {
	display: block;
	transform: translateX(0);
    transition: all 0.3s;
}



/* オープン時 */
.open #nav {
	transform: translateX(0);
}

.open #navbtn {
	transform: translateX(-230px);
	transition: all 0.3s;
}

.open main {
	transform: translateX(-230px);
}


}

/* ============ ナビ ============ */

#nav .menu {
	height: 100vh;
	white-space: nowrap;
}

#nav .menu li {
	position:relative;
	display:block;
}

#nav .menu li a {
	display: inline-block;
	font-size: 1.2rem;
	writing-mode: vertical-rl;
	-ms-writing-mode: tb-rl;
	color: #ffffff;
	width: 60px;
    max-height: 80px;
    height: 100%;
}

#nav .menu li:nth-child(1) a {
	max-height: 70px;
}

#nav .menu li:nth-child(2) a,
#nav .menu li:nth-child(3) a {
	max-height: 100px;
}

#nav .menu li a span {
	/*絶対配置でテキストの位置を決める*/
	position: absolute;
	left: 50%;
	top:50%;
	transform:translate(-50%,-50%);
	/*アニメーションの指定*/
	transition: all 1s;
	/*ブロック要素にしてテキスト折り返しなし*/  
	display: block;
	white-space: nowrap;
}

#nav .menu li a .jp {
	opacity:0;
}

#nav .menu li a:hover .eng {
	opacity:0;
}

#nav .menu li a:hover .jp {
	opacity:1;
}



@media only screen and (max-width: 1024px) {

#nav .navwrap {
	width:75%;
	margin:0 auto;
}

#nav .menu li:not(:last-child) {
	margin-bottom:15px;
}

#nav .menu li a {
	font-size:1.4rem;
	writing-mode: horizontal-tb;
	-ms-writing-mode:rl-tb;
	padding: 5px 10px;
    line-height: 1.2;
	transition: all 0.5s;
	width: auto;
}


#nav .menu li a .jp {
    opacity: 1;
}

#nav .menu li a .eng {
    display: none;
}

#nav .menu li a:hover {
    opacity: 0.7;
}
	
#nav .menu li a span {
	position: relative;
    left: 0;
    top: 0;
    transform: translate(0%,0%);
}



}

/* ============ お問い合わせ誘導 ============ */
#contact {
	position: fixed;
	right:0;
	bottom:0;
    max-height: 120px!important;
	width: 60px;
	background-color:#B2C3C7;
	z-index: 100;
	-ms-writing-mode:rl-tb!important;
}

#contact .inner {
	position:absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	display:inline-block;
	padding-bottom:25px;
}

#contact .inner::after {
	position: absolute;
	bottom:0;
	left:50%;
	-webkit-transform: translateX(-50%);
	-moz-transform: translateX(-50%);
	transform: translateX(-50%);
	content: '';
	display: inline-block;
	width: 25px;
	height: 30px;
	background-image:url(/towel/img/nav_contact.svg);
	background-size: contain;
	background-position:center;
	background-repeat:no-repeat;
	transition: all 0.3s;
}

#nav .menu li:last-child a:hover {
    opacity: 1;
}

#contact:hover .inner::after {
	opacity: 0.7;
}


@media only screen and (max-width: 1024px) {

#nav .menu li:last-child {
    text-align: center;
}

#contact{
	position: relative;
	height: auto;
    width: auto;
    background-color: transparent;
	text-align: center;
}
	
#contact .inner {
    position: relative;
    top: 0%;
    left: 0%;
    -webkit-transform: translate(0%, 0%);
    -moz-transform: translate(0%, 0%);
    transform: translate(0%, 0%);
    display: inline-block;
    padding-bottom: 0px;
}

#contact .inner::after{
    position: relative;
	width: 40px;
	height: 40px;
	left:0;
    -webkit-transform: translate(0%, 0%);
    -moz-transform: translate(0%, 0%);
    transform: translate(0%, 0%);
	background-size: 65%;
}



}






