/*
Theme Name: 小池クリニック
*/

/* リセット */
html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{
  margin:0;
  padding:0
}
article,aside,footer,header,nav,section,figcaption,figure,main {
  display: block;
}
h1,h2,h3,h4,h5,h6 {
  font-size:100%;
  font-weight:500;
  line-height: 1;
}
ul {
  list-style:none;
}
button,input,select,textarea {
  margin:0;
  background-color: transparent;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
button,input {
  overflow: visible;
  vertical-align:middle;
}
button,select {
  text-transform: none;
}
input,button {
  font-family: inherit;
  font-weight: inherit;
}
input[type="submit"],input[type="button"],button[type="submit"] {
  border-radius: 0;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
}
input[type="submit"]:-webkit-search-decoration,input[type="button"]:-webkit-search-decoration,button[type="submit"]:-webkit-search-decoration {
  display: none;
}
input[type="submit"]:focus,input[type="button"]:focus,button[type="submit"]:focus {
  outline: none;
}
/* IE 10+ */
:-ms-input-placeholder {
    color: #999;
}
html {
  box-sizing:border-box;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  -webkit-text-size-adjust: 100%;
  /*text-align: justify;*/
}
*,*:before,*:after {
  background-repeat: no-repeat;
  box-sizing:inherit;
}
:before,:after {
  text-decoration: inherit;
  vertical-align: inherit;
}
img,embed,object,audio,video {
  height:auto;
  max-width:100%;
}
img,iframe {
  border:0
}
svg {
  fill: currentColor;
}
table {
  border-collapse:collapse;
  border-spacing:0;
}
td,th {
  padding:0;
  text-align:left;
}
a {
  background-color: transparent;
  -webkit-text-decoration-skip: objects;
}

/*++++++++++++++++++*/
body {
  font:500 16px/1.6 "游ゴシック", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "ＭＳ ゴシック", sans-serif;
  /*font:500 14px/1.6 "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝","MS PMincho", serif;*/
  /*background: #f0f0f0;*/
}
#header,
.tags ul,
.more-wrapper,
#contents,
footer {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 0 10px;
}
#header {
  margin-bottom: 50px;
  padding-top: 10px;
}
.logo {
  background: url("img/logo.png") no-repeat 0 0/contain;
  font:500 27px/1.5 "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝","MS PMincho", serif;
  display: inline-block;
  overflow: hidden;
  height: 100px;
  padding: 30px 0 0 100px;
  text-decoration: none;
}
.logo h1 {
  color: #444;
  margin-bottom: 15px;
  letter-spacing: 2px;
}
.logo span {
  color: #AE98D2;
  display: inline-block;
}
.logo p {
  color: #554C85;
  background: #F5F5F5;
  font-size: 15px;
  text-align: center;
  padding: 5px;
}
#header-right {
  float: right;
  padding-top: 25px;
}
.button-wrap {
  width: 140px;
  float: left;
  margin-right: 20px;
}
#header-right .inq {
  float: left;
}
#header-right .tel {
  float: left;
}
.t {
  float: right;
}
#header-sp {
  padding-top: 40px;
  float: right;
  display: none;
}
#header-sp .tel {
  margin-right: 5px;
}
#tags-wrapper,
.tags,
.tags ul {
  width: 100%;
}
#tags-wrapper {
  margin-bottom: 50px;
  overflow: hidden;
  clear: both;
}
.tags {
  background: url("img/block_bg.png");
  padding: 30px 0 10px;
}
.tags ul {
  display: flex;
  flex-wrap: wrap;
}

.tags li,
.ghost {
  min-width: 145px;
  flex-grow: 1;
}
.tags li {
  margin: 0 10px 20px 10px;
white-space: nowrap;
}
.tags .ghost {
  margin: 0 10px;
}
.tags li:nth-child(11) {
  display: none;
}
.tags a {
  display: block;
  line-height: 14px;
  color: #666;
  text-decoration: none;
  text-align: center;
  transition: all .2s ease;
  width: 100%;
  padding: 25px 10px;
  border-bottom: 1px solid #ccc;
  background: #fff;

}
.tags a:hover {
    background: #af98d2;
    color: #fff;
}
a.more {
  display: none;
  float: right;
  padding: 8px 15px;
  margin-top: 10px;
  color: #666;
  text-decoration: none;
  font-size: 12px;
  border: 1px solid #ddd;
}
a.more:before {
  content: "▼";
  color: #ddd;
  font-size: 10px;
  padding-right: 10px;
}
#contents {
  margin-bottom: 120px;
}
article {
  padding: 10px;
}
article>h1 {
  font:100 1.8em/1.5 "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝","MS PMincho", serif;
  letter-spacing: 2px;
  color: #554C85;
  padding: 10px;
  margin-bottom: 40px;
  text-align: center;
  padding: 0;
  background: url("img/h1_bd.png") no-repeat bottom center;
}
article>h1 span {
  display: block;
  font-size: .9em;
}
section {
  padding-top: 30px;
  overflow: hidden;
  clear: both;
}
section+section {
  margin-top: 20px;
}
section h1 {
  font:500 1.2em/1.5 "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝","MS PMincho", serif;
  letter-spacing: 1px;
  margin-bottom: 30px;
  padding: 20px 5px 5px;
  border-bottom: 2px solid #eee;
  clear: both;
  position: relative;
}

section h1::after {
  position: absolute;
  bottom: -2px;
  left: 0;
  z-index: 2;
  content: '';
  width: 20%;
  height: 2px;
  background-color: #B098D2;
}
section h2 {
  margin-top: 20px;
  font-weight: bold;
}

section p {
  margin-bottom: 10px;
  line-height: 1.7;
}

.voice-thumb {
  float: right;
  width: 300px;
  margin-left: 10px;
}

#footer-wrapper {
  background: #EFEFEF;
  padding: 30px 0;
  clear: both;
}
footer {
  text-align: right;
}
.totop {
  background: #AF98D2;
  color: #FFF;
  text-decoration: none;
  font-size: 20px;
  line-height: 20px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 20px 12px;
  display: none;
  transition: bottom .2s ease;
}
.totop:hover {
  opacity: .8;
}
.totop.bottom {
  bottom: 100px;
}
/*---------------------------*/
#pagenation {
  text-align: center;
  font-size: 16px;
  padding-top: 80px;
  margin-bottom: 30px;
}
#pagenation a {
  background: #EEE;
  color: #444;
  text-decoration: none;
}
#pagenation a,
.page-numbers {
  padding: 6px 12px;
  text-align: center;
}
#pagenation a:hover {
  text-decoration: underline;
}
span.current {
  /*border: 1px solid #E3E3E3;*/
  background: #af98d2;
  color: #FFF;
}
span.dots {
  border: none;
  padding: 4px 4px;
}
/*---------------------------*/
aside.link {
  display: flex;
  overflow: hidden;
  padding: 20px 0 10px;
}
aside.link a {
  display: block;
  text-decoration: none;
  width: 200px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  transition: all .2s ease;
}
aside.link a:after {
  content: ">";
  float: right;
  margin-right: 10px;
}
aside.link a:hover {
  color: #FFF;
}
.link_blog {
  color: #5E6BB8;
  border: 1px solid #5E6BB8;
  margin-right: 20px;
}
.link_blog:hover {
  background: #5E6BB8;
}
.link_hp {
  color: #EC3F79;
  border: 1px solid #EC3F79;
}
.link_hp:hover {
  background: #EC3F79;
}

/*---------------------------*/
@media screen and (max-width:850px) {
  .tags li:nth-child(10),
  .tags li:nth-child(9) {
    display: none;
  }
}
@media screen and (max-width:810px) {
  #header-right {
    display: none;
  }
  #header-sp {
    display: block;
  }

  footer {
    text-align: left;
  }
}
@media screen and (max-width:700px) {
  .voice-thumb {
    float: none;
    width: 100%;
    margin-bottom: 10px;
    display: block;
  }
  .voice-thumb img {
    width: 95%;
  }
  .tags li:nth-child(9) {
    display: block;
  }
  aside.link {
    justify-content: space-between;
  }
  aside.link a {
    width: calc(50% - 5px);
  }
  .link_blog {
    margin-right: 0;
  }
}
@media screen and (max-width:530px) {
  body {
    font-size: 14px;
  }
  #header {
    padding-top: 20px;
    margin-bottom: 30px;
  }
  .logo {
    height: 70px;
    font-size: 22px;
    padding: 15px 0 0 80px;
  }
  .logo h1 {
    margin-bottom: 10px;
  }
  .logo p {
    font-size: 12px;
  }
  #header-sp {
    padding-top: 10px;
  }
  .tags ul {
    padding: 0 5px;
  }
  .tags li,
  .tags .ghost {
      min-width: 120px;
      margin: 0 5px 15px 5px;
  }
  .ghost {
    margin-bottom: 0 !important;
  }
  .tags a {
    font-size: 12px;
    padding: 20px 0px;
  }
  .totop {
    right: 20px;
    bottom: 20px;
  }
  #contents {
    margin-bottom: 100px;
  }
  .totop.bottom {
    margin-bottom: 20px;
  }
  aside.link a {
    font-size: 13px;
  }
}
@media screen and (max-width:440px) {
  .logo {
    height: 50px;
    font-size: 18px;
    padding: 5px 0 0 60px;
  }
  .logo h1 {
    margin-bottom: 7px;
  }
  .logo p {
    font-size: 10px;
    padding: 3px;
  }
  #header-sp {
    padding: 0;
  }
  #header-sp img {
    height: 50px;
  }
  aside.link a {
    font-size: 12px;
  }
  aside.link a:after {
    margin-right: 8px;
  }
}

@media screen and (max-width:420px) {
  .tags li,
  .tags .ghost {
      min-width: 100px;
  }
  article {
      padding: 10px 0;
  }
  .tags a {
    font-size: 9.5px !important;
  }
}


@media screen and (max-width:374px) {
  .logo {
    height: 45px;
    font-size: 16px;
    padding: 5px 0 0 40px;
  }
  .logo h1 {
    margin-bottom: 7px;
  }
  .logo p {
    font-size: 10px;
    padding: 3px;
  }
  #header-sp {
    padding: 0;
  }
  #header-sp img {
    height: 45px;
  }
}
@media screen and (max-width:320px) {
  aside.link a.link_blog {
    font-size: 11px;
  }
  aside.link a.link_hp {
    font-size: 10px;
  }
}