/*
Theme Name: Takemoto
Theme URI: http://www.zyu.co.jp/
Description: For Takemoto-Shika Clinic.
Version: 1.0
Author: acheck
Tags: Org

*/

/* @import "reset.css" */

* {
	margin: 0px;
}

a {
	text-decoration: none;
}

img {
	border: 0px;
}

table,
tr,
td {
	text-align: center;
	border-collapse:collapse;
}

body {
	margin-top: 0px;
	text-align: center;
	background-color: #fefff1;
	font-size: 90%;
	line-height: 1.5em;
}

#rap {
	width: 850px;
	margin: 0px auto 0px auto;
	padding-bottom: 10px;
	text-align: center;
	border-right: 1px solid #cccccc;
	border-left: 1px solid #cccccc;
	border-bottom: 1px solid #cccccc;
	
	background-image: url("../images/head_line_long.gif");
	background-repeat: no-repeat;
	background-color: #ffffff;
}

#head{
	  padding-top: 10px;
}
#menu {
	width: 800px;
	height: 41px;
	padding: 3px 0px 0px 15px;
}

#main_image {
	width: 800px;
	padding: 15px 0px 0px 15px;
}

#content {
	width: 800px;
	margin: 10px auto 0px auto;
	overflow: auto;
}

h3 {
	width: 550px;
	height: 35px;
	padding-top: 5px;
	padding-left: 20px;
	text-align: left;
	color: #ffffff;
	background-image: url("../images/post_subject.gif");
	background-repeat: no-repeat;
}

.subject a:link,
.subject a:visited {
	color: #ffffff;
}

.post {
	width: 570px;
	margin-left: 10px;
	padding: 10px 0px 10px 0px;
	font-size: 90%;
}

.post p {
	text-align: left;
}

.left_content {
	float: left;
}
.right_content {
	float: right;
}
@media screen and (max-width: 768px) {
   body {
    margin-top: 0px;
    text-align: center;
    background-color: #fefff1;
    font-size: 90%;
    line-height: 1.5em;
    width: 100%;
  }
 img{
    max-width: 100%;
    height: auto;
  }
  #rap {
    width: 100%;
    background: #ffffff;
    border-top: 5px solid #065e2b;
  }
  #head {
    padding-top: 12vw;
    position: relative;
  }
  #head a {
    display: block;
  }
  .head-sp-contact{
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
  }
  #main_image {
	  width: 100%;
    box-sizing: border-box;
	  padding: 10px 10px;
  }
  h3 {
    width: 100%;
    height: auto;
    min-height: 35px;
    padding-top: 10px;
    padding-left: 20px;
    text-align: left;
    color: #ffffff;
    background-image: url("../images/post_subject.gif");
    background-repeat: no-repeat;
    box-sizing: border-box;
    font-size: 15px;
  }
  .post {
    width: 100%;
    margin-left: 0;
    padding: 10px 0px 10px 0px;
    font-size: 90%;
    box-sizing: border-box;
  }
}
#calender {
	margin-top: 20px;
	font-size: 110%;
}

#calender table {
	margin: 10px 0px 10px 3px;
}

#calender th,
#calender td {
	padding: 1px;
	font-size: 90%;
}

#calender .date td {
	text-align: center;
	border: 1px solid #333333;
}

#calender .week td {
	text-align: center;
	border: 1px solid #333333;
	font-size: 80%;
}

#calender .day td {
	text-align: center;
	border: 1px solid #333333;
	font-size: 90%;
}

#footer {
	width: 790px;
	margin: 0px auto 0px auto;
	padding: 5px 0px 5px 0px;
	text-align: center;
	border: 1px solid #ebebeb;
	background-color: #f6f6f6;
	font-size: 80%;
}

.blue {
	background-color: #3c91f9;
}

.red {
	background-color: #ff6633;
}

.rt_line {
	border-top: 1px #dcdcdc solid;
	border-right: 1px #dcdcdc solid;
}

.l_line {
	border-left: 1px #dcdcdc solid;
}

.b_line {
	border-bottom: 1px #dcdcdc solid;
}

.clear {
	clear: both;
}

.clear hr {
	display: none;
}

/* レスポンシブ
---------------------------------------------------------------------------- */
@media all and (min-width: 768px){
	.sp{
		display: none !important;
	}
}
@media all and (max-width: 767px){
	.pc{
		display: none !important;
	}
}

/*layout*/
.contentinner{
  display: flex;
  padding: 0 10px;
  box-sizing: border-box;
}
.copy{
  text-align: center;
  font-size: 12px;
}
.rightimg{
  margin-left: 30px;
  float: right;
}
@media all and (max-width: 767px){
  .contentinner{
    display: block;
    padding: 0 10px;
  }
  .maincontent{
    width: 100%;
  }
  .sidecontent{
    border-top: 2px solid #ccc;
    padding: 20px 0;
  }
  #footer {
    width: 100%;
    box-sizing: border-box;
    margin: 0px auto 0px auto;
    padding: 5px 0px 5px 0px;
    text-align: center;
    border: 1px solid #ebebeb;
    background-color: #f6f6f6;
    font-size: 80%;
  }
  .rightimg{
    margin-left: auto;
    display: block;
    float: none;
  }
}


/* sp nav
---------------------------------------------------------------------------- */
.splogo{
  max-width: 70%;
  margin-left: 10px;
}
#top-head {
    top: -100px;
    position: absolute;
    width: 100%;
    margin: 100px auto 0;
    padding: 0;
    line-height: 1;
    z-index: 999;
  border-bottom: 1px solid #ccc;
}
#top-head a,
#top-head {
    color: #333;
    text-decoration: none;
}
#top-head .inner {
    position: relative;
}
#top-head .logo {
    float: left;
}
#global-nav ul.mainspnav {
    list-style: none;
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 14px;
}
#global-nav ul.mainspnav li {
    float: left;
}
#global-nav ul.mainspnav li a {
    padding: 0 30px;
}
 
/* Fixed */
#top-head.fixed {
    margin-top: 0;
    top: 0;
    position: fixed;
    height: 12.5vw;
    background: #9aca50;
    transition: top 0.65s ease-in;
    -webkit-transition: top 0.65s ease-in;
    -moz-transition: top 0.65s ease-in;
}
#top-head.fixed .logo {
    font-size: 24px;
    color: #333;
}
#top-head.fixed #global-nav ul li a {
    color: #333;
}
/* Toggle Button */
#nav-toggle {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
	box-sizing:border-box;
    width: 12.5vw;
    height: 12.5vw;
    cursor: pointer;
    z-index: 101;
	padding:0 2.666vw;
}
#nav-toggle div {
    position: relative;
}
#nav-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #065e2b;
    left: 0;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
}
#nav-toggle span:nth-child(1) {
    top: 4.166vw;
}
#nav-toggle span:nth-child(2) {
    top: 11px;
	display:none;
}
#nav-toggle span:nth-child(3) {
    top: 7.333vw;
}
@media screen and (max-width: 999px) {
    #top-head,
    .inner {
        width: 100%;
        padding: 0;
    }
    #top-head {
        top: 0;
        position: fixed;
        margin-top: 0;
    }
    /* Fixed reset */
    #top-head.fixed {
        padding-top: 0;
        background: transparent;
    }
#top-head.fixed.open{
	height:100%;
		max-height:500px;
}
    #mobile-head {
        background: #fff;
        width: 100%;
        height: 12.5vw;
        z-index: 999;
        position: relative;
      text-align: left;
    }
    #top-head.fixed .logo,
    #top-head .logo {
        position: absolute;
        left: 13px;
        top: 8px;
        color: #3ec5f6;
        font-size: 26px;
    }
    #top-head.fixed .logo img,
    #top-head .logo img{
		height:9.375vw;
		width:auto;
	}
    #global-nav {
        position: absolute;
        /* 開いてないときは画面外に配置 */
        top: -100vw;
        background: rgba(255,255,255,0.9);
        width: 100%;
		right:0;
        padding: 0;
        -webkit-transition: .5s ease-in-out;
        -moz-transition: .5s ease-in-out;
        transition: .5s ease-in-out;
		text-align:center;
      border-top: 1px solid #ccc;
    }
    #global-nav ul.mainspnav {
        list-style: none;
        position: static;
        right: 2%;
        bottom: 0;
        font-size: 4.8vw;
      margin: 0;
      padding: 0;
		font-weight:bold;
		width:96%;
	letter-spacing:.2rem;
    }
    #global-nav ul.mainspnav li {
        float: none;
        position: static;
    }
    #global-nav ul.mainspnav li span{
        font-size: 2.666vw;
		display:inline-block;
		padding:0 0.6333vw 0 0;
		min-width:40%;
	}
	#top-head #global-nav ul.mainspnav li a,
    #top-head.fixed #global-nav ul.mainspnav li a {
		width:calc(96% - 5.332vw);
        display: block;
        color: #000;
		margin:0 2%;
        padding: 4vw 1.3333vw 4vw 2.666vw;
		position: relative;
		text-align:left;
		border-bottom:1px solid #065e2b;
    }
    #nav-toggle {
        display: block;
    background: #FFF;
    }

    /* #nav-toggle 切り替えアニメーション */
    .open #nav-toggle {
	}
    .open #nav-toggle span {
	}
    .open #nav-toggle span:nth-child(1) {
    top: 6vw;
        -webkit-transform: rotate(135deg);
        -moz-transform: rotate(135deg);
        transform: rotate(135deg);
    }
    .open #nav-toggle span:nth-child(2) {
        width: 0;
        left: 50%;
    }
    .open #nav-toggle span:nth-child(3) {
    top: 6vw;
        -webkit-transform: rotate(-135deg);
        -moz-transform: rotate(-135deg);
        transform: rotate(-135deg);
    }
    /* #global-nav スライドアニメーション */
    .open #global-nav {
        /* #global-nav top + #mobile-head height */
        -moz-transform: translateY(112.5vw);
        -webkit-transform: translateY(112.5vw);
        transform: translateY(112.5vw);
    }
    .open #global-nav ul{
		width: 100%;
		height: 100%;
		overflow-y: scroll;
		-webkit-overflow-scrolling:touch;
  	}


}