@charset "UTF-8";
/*
Theme Name: nishiki.
Description: Nishiki Dental Clinic.
Author: Rit2
*/

ul.top {
  padding: 0;
  position: relative;
}

ul.top li {
  color: white;
  background: #0f7685;
  line-height: 1.5;
  padding: 0.5em 0.5em 0.5em 2em;
  border-bottom: 2px solid white;
  list-style-type: none!important;
  font-weight: bold; /*好みで太字に*/
}

ul.top li:before {
  font-family: "Font Awesome 5 Free";
  content: "\f14a";
  position: absolute;
  left : 0.5em; /*左端からのアイコンまでの距離*/
  color: white; /*アイコン色*/
}

ol.flow {
  counter-reset:number; /*数字をリセット*/
  list-style-type: none!important; /*数字を一旦消す*/
  padding: 0.3em 0.8em;
}
ol.flow li {
  border-bottom: dashed 1px #0f7685;
  position: relative;
  padding: 0.5em 0.5em 0.5em 30px;
  line-height: 1.5em;
}
ol.flow li:before{
  /* 以下数字をつける */
  position: absolute;
  counter-increment: number;
  content: counter(number);
  /*数字のデザイン変える*/
  display:inline-block;
  background: #0f7685;
  color: white;
  font-family: 'Avenir','Arial Black','Arial',sans-serif;
  font-weight:bold;
  font-size: 15px;
  border-radius: 50%;
  left: 0;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  /*以下 上下中央寄せのため*/
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
ol.flow li:last-of-type {
  border-bottom: none; /*最後のliの線だけ消す*/
}




.arrow {
  display: inline-block;
  vertical-align: middle;
  color: #333;
  line-height: 1;
  width: 1em;
  height: 1em;
  border: 0.1em solid currentColor;
  border-left: 0;
  border-bottom: 0;
  box-sizing: border-box;
  transform: translateY(-25%) rotate(135deg);
}

h2.screen-reader-text {
	display:none;
}

nav.pagination {
	position:relative !important;
}

ul.pagination li a.active {
    background-color: #4CAF50;
    color: white;
}

ul.pagination li a:hover:not(.active) {background-color: #ddd;}

.hint2 {font-size:0.85em;color:#777;}
.line_001 {border:none;border-top:1px solid #ccc;margin: 20px auto 20px;}

@media screen and (min-width: 639px) { 
	.img_50per { max-width:320px; }
}

h3.sp_view{
    border:solid 1px #ddd;
  -moz-border-radius: 5px; /* FF */
  -webkit-border-radius: 5px;/* Webkit */
  border-radius: 5px;
  background: #eee;
  background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));
    background: -moz-linear-gradient(top,  #fff,  #eee);
    padding: 5px;margin-bottom:15px;
  -pie-background:linear-gradient(top,  #fff,  #eee);
}
h3.sp_view span {
  border-left:5px #3cf solid;
  padding-left:10px;
}



.calls {
	font-size:1.8em;
	font-weight:600;
	color:#333;
	text-align:center;
	text-decoration:none;

	display:block;
	margin:0 auto;
}

.fix_tag {
	position: -webkit-sticky;
	position:sticky;
	top:20px;left:20px;
	z-index: 9999;
}


#sidemenu {
	width:240px;
	background:#fff;
	display:block;

	margin:20px 40px 0;
	padding:0;
	border-radius: 5px 0 0 5px;
	box-shadow: 5px 5px 10px -5px #777;
	border-top: 10px solid #0F7685;
}

#sidemenu .mainmenu {
	list-style:none;
	margin-bottom:10px;
}

#sidemenu .mainmenu li {
	width:100%;
	text-align:center;
}

#sidemenu .mainmenu li:first-child a {
	border-top: none;
}

#sidemenu .mainmenu li a {
	width:85%;
	font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", serif;
	font-size:17px;
	font-weight:600;
	line-height:2;
	color:#0F7685;
	padding: 5px 10px;
	margin: 0 auto;
	display:block;
	position:relative;
	border-top: 1px dashed #ccc;
	transition: 0.3s;
}

#sidemenu .mainmenu li {
	background: linear-gradient(to right, transparent 50%, #0F7685 50%);
	background-size: 200% auto;
	background-position: 0 0;

	transition: 0.3s;
	overflow:hidden;
}

#sidemenu .mainmenu li:hover a, 
#sidemenu .mainmenu li:hover a i {
	color:#fff;text-decoration:none;
}

#sidemenu .mainmenu li:hover {
	background-position: -100% 0;
}




/**
pages
*/
.flex_content {
	display:flex;
	flex-flow: row wrap;
	justify-content: space-between;
	align-items: stretch;
}

.item, .item2 {
	flex-basis: 48.5%;
	position:relative;
}

.item {
/*	padding:10px; */
}

.item > img {
	border:1px solid #ccc;
	padding:10px;
	background:#fff;
}

.item2 {
	border:1px solid #ccc;
	padding:20px;
	background:#fff;
}

.item4 {
	flex-basis: 100%;
	position:relative;
	margin:0 0 18.5px;
	
	border-left:7px solid #1b4898;
	border-radius:3px;
	box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.5);
}

.item5 {
	flex-basis: 23.3%;
	position:relative;
	vertical-align:middle;
	flex-direction: column;
}

.cont_01 {order:2;}
.cont_02 {order:1;}
.cont_03 {order:3;}
.cont_04 {order:4;}
.cont_05 {order:6;}
.cont_06 {order:5;}
.cont_07 {order:8;}
.cont_08 {order:7;}


.sitemap {
	max-width:1080px;
	margin:0 auto;
	padding:20px 0 40px;
}

.sitemap > li > ul > li:not(:first-child) {
	font-size:14px;
}

.sitemap > li > ul > li:first-child a {
	font-size:1em;
}

.sitemap ul {
	list-style:none;
	padding:10px;
}

.sitemap > li {
	width:33.3%;
	display:inline-block;

	vertical-align:top;
}

.sitemap > li > ul > li:not(:first-child) {
	text-indent:1.5em;
}

@media only screen and (max-width:959px) {
.item {
	flex-basis: 100%;
	position:relative;
}
.item2 {
	flex-basis: 100%;
	margin-bottom:10px;
}
.item5 {
	flex-basis: 48.5%;
}

.cont_01 {order:1;}
.cont_02 {order:2;}
.cont_03 {order:3;}
.cont_04 {order:4;}
.cont_05 {order:5;}
.cont_06 {order:6;}
.cont_07 {order:7;}
.cont_08 {order:8;}
}

/******************************************************
* WordPress Origin Class
******************************************************/

.wp-caption{
  max-width: 100%;
}
.wp-caption-text{
  text-align: left;
}
.alignright{
  float: right;
}
.alignleft{
  float: left;
}
.aligncenter{
  clear: both;
  display: block;
  margin: 0 auto;
}

@media screen and (max-width:768px) {
  .alignright,
  .alignleft,
  .aligncenter{
    float: none;
    text-align: center;
    display: block;
    margin: 0 auto;
  }
}

/******************************************************
*Style for wrap
*
* - Includes main visual, main contents and sidebar.
******************************************************/

#wrap{
  margin-bottom: 20px;
}

@media screen and (max-width:768px) {
  #wrap{
    margin-top: 70px; /*Set the height of header.*/
  }
}

/******************************************************
*  Style for main contents
*
* - Stretch according to the width of the browser.
******************************************************/

/*Wrapper id of main contents.*/
#primary{
  float: left;
  width: 100%;
  margin-right: -220px; /*Set a value more than the width of the sidebar.*/
  padding-right: 220px; /*Set a value more than the width of the sidebar.*/
}
#primary main{
  border: 1px #BBB solid;
  padding: 10px;
}

@media screen and (max-width:768px) {
  #primary{
    float: none;
    margin: 0 0 20px 0;
    padding: 0;
  }
}

/******************************************************
*  Style for sidebar
*
* - Fixed width.
******************************************************/

/*Wrapper id of sidebar.*/
#secondary{
  float: right;
  width: 200px; /*Set the width of sidebar.*/
  border: 1px #BBB solid;
  margin-bottom: 20px;
  padding: 10px;
}

/*Wrapper class of widget.*/
#secondary .widget{
  border: 1px #BBB solid;
  padding: 10px;
}
#secondary .widget:not(:last-child){
  margin-bottom: 10px;
}

@media screen and (max-width:768px) {
  #secondary{
    float: none;
    width: 100%;
  }
}

/******************************************************
*  Style for Front Page (displays Your latest posts)
*
* - The body tag has 'home' when you select 'Front page displays Your latest posts'.
* - Describe here if you want to define unique style on the Front Page.
******************************************************/

/*Style for the article box. */
.home .archive-entry{
  display: table;
  border: 1px #BBB solid;
  padding: 10px;
  width: 100%;
}

/*Style for the article thumbnail. */
.home .archive-entry .entry-thumbnail{
  display: table-cell;
  width: 200px; /*Set the width of the thumbnail.*/
  vertical-align: middle;
}

/*Style for the article title and excerpt. */
.home .archive-entry .entry-main{
  display: table-cell;
  vertical-align: top;
  padding-left: 10px;
}
.home .archive-entry .entry-main h3 a{
  font-size: 18px;
}

@media screen and (max-width:768px) {
  .home .archive-entry .entry-thumbnail{
    display: block;
    width: 100%;
    text-align: center;
  }
  .home .archive-entry .entry-thumbnail img{
    max-width: 200px;
  }
  .home .archive-entry .entry-main{
    display: block;
  }
}

/******************************************************
*  Style for Single Page
*
* - The body tag has 'single' class on the single page.
* - Describe here if you want to define unique style on the single page.
******************************************************/

/*Style for the article title.*/
.single h2.entry-title{
  font-size: 20px;
}

/*Style for the article thumbnail. */
.single .entry-thumbnail{
  text-align: center;
}
.single .entry-thumbnail img{
  width: 100%;
  max-width: 250px; /*Set the max width of the thumbnail.*/
}

/*Style for the article content. */
.single .entry-content{
  border: 1px #BBB solid;
  margin-bottom: 10px;
}

/*Style for the pagenation. */
.single .pagenation{
  border: 1px #BBB solid;
  margin-bottom: 10px;
  padding: 10px;
}
.single .pagenation .prev{
  float: left;
}
.single .pagenation .next{
  float: right;
}

/*Style for the tag. */
.single .tag{
  border: 1px #BBB solid;
  margin-bottom: 10px;
  padding: 10px;
}

/******************************************************
*  Style for Archive Page
*
* - The body tag has 'archive' class on the archive page.
* - Describe here if you want to define unique style on the archive page.
******************************************************/

/*Style for the archive category title.*/
.archive h2.archive-title{
  font-size: 20px;
}

/*Style for the article box. */
.archive .archive-entry{
  display: table;
  border: 1px #BBB solid;
  padding: 10px;
  width: 100%;
}

/*Style for the article thumbnail. */
.archive .archive-entry .entry-thumbnail{
  display: table-cell;
  width: 200px; /*Set the width of the thumbnail.*/
  vertical-align: middle;
}

/*Style for the article title and excerpt. */
.archive .archive-entry .entry-main{
  display: table-cell;
  vertical-align: top;
  padding-left: 10px;
}
.archive .archive-entry .entry-main h3 a{
  font-size: 18px;
}

@media screen and (max-width:768px) {
  .archive .archive-entry .entry-thumbnail{
    display: block;
    width: 100%;
    text-align: center;
  }
  .archive .archive-entry .entry-thumbnail img{
    max-width: 200px;
  }
  .archive .archive-entry .entry-main{
    display: block;
  }
}
