/*全体的な変更*/

.header-main-layout-1 .main-header-container {
    padding: 0 3vw;
}
.ast-header-break-point .ast-mobile-menu-buttons-minimal.menu-toggle {
  color: white;
}
.main-header-menu .sub-menu {
  display: inline-block;
}
.main-header-menu .sub-menu li a {
  color: black !important;
  padding: 10px !important;
}
.page-id-49 #primary {
  width: 100% !important;
  margin: 0 !important;
}
#primary {
  width: 100% !important;
}
.page-id-49 .ast-container {
  padding: 0 !important;
  margin: 0 !important;
}
.page-id-49 .ast-container {
  max-width: 100vw !important;
}
#secondary {
  display: none !important;
}
@media (min-width: 769px) {
  .ast-footer-overlay {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .ast-flex {
    width: 100vw;
  }
  .main-navigation ul li {
    display: inline-block;
    /*position: inherit;*/
  }
}
@media (max-width: 769px) {
  .ast-header-break-point .ast-mobile-header-stack .ast-mobile-menu-buttons {
    display: none;
  }
  .ast-header-break-point .main-header-bar .main-header-bar-navigation {
    display: inline-block !important;
    width: 100%;
  }
  .main-header-menu li {
    position: static !important;
  }
  .ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children .sub-menu, .ast-header-break-point .main-header-bar .main-header-bar-navigation .page_item_has_children .sub-menu {
    position: absolute;
    width: 80vw;
    left: 0;
  }
  .ast-header-break-point .main-navigation ul .button-custom-menu-item a, .ast-header-break-point .main-navigation ul li a{
    width: auto !important;
    border: none !important;
    padding: 0 3vw !important;
  }
  .ast-header-break-point .main-header-bar .main-header-bar-navigation .menu-item-has-children>.ast-menu-toggle, .ast-header-break-point .main-header-bar .main-header-bar-navigation .page_item_has_children>.ast-menu-toggle{
    position: relative !important;
    color: white;
    border: none !important;
  }
  .ast-header-break-point .header-main-layout-1 .main-navigation {
    text-align: center;
    text-align: -webkit-center;
    width: 107%;
  }
  .ast-header-break-point .main-header-bar .main-header-bar-navigation .main-header-menu {
    border: none !important;
  }
  .sub-menu button {
    color: black !important;
  }
}


/*トップページ*/

#post-49 {
  padding: 0 !important;
}

.main-top p {
  margin-bottom: 0 !important;
}

.main-top {
  background-color:#f5f5f5;
}
.about {
  width: 100%;
  padding-top: 2vw;
  padding-bottom: 2vw;
  text-align: center;
  /*background-image: linear-gradient(249deg, #ff9ded, #ffa49e 59%, #ffe09f);*/
	background:url(https://mentalrescue.org/wp2/wp-content/uploads/2019/12/main.png)no-repeat;
	background-size:cover;
}
.about-con {
  background-color: rgba(255, 255, 255, 0.64);
  display: inline-block;
  max-width: 70%;
  padding-left: 5vw;
  padding-right: 5vw;
  padding-bottom: 2vw;
}
.about-con .marker {
  background: linear-gradient(transparent 60%, #fa9489 60%);
}
.about-con .we-wrap {
  font-size: 1.3rem;
}
.about-con .we {
  margin-top: 1vw;
  display: inline-block;
}
.guid-and-news {
  width: 80%;
  margin-left: 10%;
  text-align: center;
}
.guid-and-news h2 i{
  font-size: 1.1rem;
  vertical-align: middle;
  margin-right: 0.5vw;
  margin-top: -0.6vw;
}
.guid-con {
  width: 30%;
  display: inline-block;
  padding: 1vw;
}
.guid-con .wrap-guid {
  background-color: white;
  border-radius: 1vw;
  padding-bottom: 1vw;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease 0s;
  overflow: hidden;
  min-height: 31vw;
  vertical-align: top;
  display: inline-block;
  text-align: left;
}
.guid-con .wrap-guid .guid-title {
  font-size: 1.1rem;
  font-weight: bold;
  padding-top: 1vw;
  padding-bottom: 1vw;
  text-align: center;
  color: rgb(52, 52, 52);
  z-index: 2;
}
.guid-con .wrap-guid .guid-detail {
  padding: 1vw;
}
.guid-con .wrap-guid img {
  width: 100%;
  margin-left: -1vw;
  margin-right: -1vw;
}
.main-top img {
  margin: 0 !important;
}
.guid-con .wrap-guid p {
  font-size: 1vw;
  text-align: left;
  padding-left: 1vw;
  padding-right: 1vw;
  padding-top: 1vw;
}
.guid-con .wrap-guid a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-indent:-999px;
}
.guid-con .wrap-guid:hover {
  box-shadow: 0 3px 2vw 0 rgba(0, 0, 0, 0.25);
  opacity: 0.8;
  transform: translateY(-0.4em);
}
.guid-con .wrap-guid:before, .news:before {
  content:'';
  border-top: 1.5vw solid #ffdf82;
  border-left: 1.5vw solid #ffdf82;
  border-right: 1.5vw solid transparent;
  border-bottom: 1.5vw solid transparent;
  position: absolute;
  left:0;
  top:0;
  z-index: 1;
}
.news {
  width: 100%;
  background-color: white;
  padding: 1.5vw;
  position: relative;
  overflow: hidden;
  margin-bottom: 2vw;
  max-height: 33vw;
}
.news ul {
  list-style: none;
  text-align: left;
  margin: 0;
  padding: 0;
  max-height: 26vh;
  overflow: hidden;
  margin-bottom: 16px;
}
.news ul li {
  padding-top: 0.5vw;
  padding-bottom: 0.5vw;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}
.news ul li:first-child {
  border: none;
}
.news ul li a{
  color: rgb(41, 41, 41);
  font-size: 0.8rem;
  text-decoration: none;
}
.news ul li a:hover {
  color:rgb(71, 155, 254);
}
.news .more-post {
  background-color: #ffdf82;
  padding: 8px 16px;
  font-weight: bold;
  color: white;
  margin: 16px auto;
}
.news-under {
  /*width: calc(100% + 3vw);*/
  display: flex;
  justify-content: space-between;
}
.news-under .news{
  width: 48.5%;
  display: inline-block;
}
.news-under .title-news {
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
  margin-bottom: 0.4vw;
}
.news-under .title-news:before {
  content: '';
  position: absolute;
  bottom: -0.5vw;
  display: inline-block;
  width: 3vw;
  height: 3px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #f0d178;
  border-radius: 2px;
}


.main-top h1, .main-top h2 {
  position: relative;
  display: inline-block;
  padding: 0 55px;
  font-size: 1.6rem !important;
  margin-bottom: 1vw;
  color: rgb(52, 52, 52);
  margin-top: 4vw;
}

.main-top h1:before, .main-top h1:after, .main-top h2:before, .main-top h2:after {
  content: '';
  position: absolute;
  top: 50%;
  display: inline-block;
  width: 45px;
  height: 2px;
  background-color: rgb(52, 52, 52);
}

.main-top h1:before, .main-top h2:before{
  left:0;
}
.main-top h1:after, .main-top h2:after{
  right: 0;
}

@media screen and (max-width:1023px) {
  .news {
    max-height: 90vw;
  }
  .main-top {
    padding-bottom: 5vw;
  }
  .about {
    padding-top: 4vw;
    padding-bottom: 4vw;
  }
  .about-con {
    max-width: 90%;
  }
  .about-con p {
    font-size: 4vw;
  }
  .main-top h1, .main-top h2 {
    font-size: 6vw !important;
    padding: 0 15vw;
  }
  .main-top h2 {
    margin-bottom: 3vw;
    margin-top: 10vw;
  }
  .guid-and-news h2 i {
    font-size: 4vw;
  }
  .main-top h1:before, .main-top h1:after, .main-top h2:before, .main-top h2:after {
    width: 12vw;
    height: 2px;
  }
  .main-top .we {
    font-size: 5vw;
  }
  .about-con .we-wrap {
    font-size: 5vw;
    margin-top: 2vw;
    margin-bottom: 2vw;
  }
  .main-top .guid-con {
    width: 100%;
    margin-bottom: 4vw;
  }
  .main-top .guid-con .wrap-guid {
    border-radius: 4vw;
  }
  .main-top .guid-con .wrap-guid .guid-title {
    font-size: 5vw;
    padding-top: 3vw;
    padding-bottom: 3vw;
  }
  .main-top .guid-con .wrap-guid p{
    font-size: 3.6vw;
    padding-left: 4vw;
    padding-right: 4vw;
    padding-top: 3vw;
    padding-bottom: 3vw;
  }
  .main-top .guid-con .wrap-guid:before, .news:before {
    border-top: 4vw solid #ffdf82;
    border-left: 4vw solid #ffdf82;
    border-right: 4vw solid transparent;
    border-bottom: 4vw solid transparent;
  }
  .main-top .news {
    padding-top: 3vw;
    margin-bottom: 3vw;
  }
  .main-top .news ul li a {
    font-size: 3.3vw;
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .news-under {
    display: contents;
  }
  .news-under .news{
    width: 100%;
  }
  .news-under .title-news {
    font-size: 4.5vw;
    margin-bottom: 3vw;
  }
  .news-under .title-news:before {
    bottom: -1.5vw;
    width: 7vw;
    height: 4px;
  }
  .news-under:last-child {
    margin-bottom: 5vw;
  }
}


/*記事ページの変更*/

article header {
  display: none;
}

article .main-post h2 {
  background-image: linear-gradient(249deg, #ff8f58, #ffd98f 59%, #f9d893);
  position: relative;
  vertical-align: top !important;
  padding: 2vw 3vw !important;
  color: rgb(80, 58, 16);
}

article .main-post h2::before {
  content: '';
  border-top: 2vw solid #f5f5f5 !important;
  position: absolute;
  display: block;
  width: 100vw;
}

article .main-post h3 {
  padding: 0.5em !important;
  color: #494949;
  background: #fffaf4;
  border-left: solid 5px #ffaf58 !important;
  margin: 64px 0 16px;
}
article .main-post strong {
  color: rgb(222, 139, 53);
}
article .main-post img {
  margin: 16px 0;
  display: block;
}

#comments {
  display: none;
}
article .link-button div{
  display: inline-block;
  width: 40%;
  margin-left: 6%;
  margin-bottom: 1vw;
}
article .link-button div a{
  display: inline-block;
  width: 100%;
  height: auto;
  color: #FFF;
  font-weight: bold;
  font-size: 1.6vw;
  text-decoration: none;
  text-align: center;
  background-color: #f39800; /*ボタン色*/
  border-bottom: solid 6px #ec6c00; /*下線色*/
  border-radius: 5px; /*角丸*/
  padding-top: 2vw;
  padding-bottom: 2vw;
}
article .link-button div a i{
  margin-right: 1vw;
}
article .link-button div a:hover{
   background-color: #f9c500;/*ボタン色*/
   border-bottom: solid 6px #f39800; /*下線色*/
}
article .link-button div a:active {
   margin-top: 6px;
   border-bottom: none;
   -webkit-transform: translateY(6px);　/*下移動*/
   transform: translateY(6px);
}

article table tr th {
  background-color: rgb(255, 194, 75);
  color: white;
}
article table tr th strong {
  color: white !important;
}
article table tr td:first-child{
  background-color: rgb(255, 241, 214);
}

@media screen and (max-width: 767px) {
  article .main-post h2 {
    margin-top: 18vw !important;
  }
  article .main-post h2:first-child {
    margin-top: 2vw !important;
  }
  article .main-post h2::before {
    border-top: 7vw solid #f5f5f5 !important;
    top: -14vw;
    left: -1em;
  }
  article .link-button div{
    display: inline-block;
    width: 85%;
    margin-left: 6%;
    margin-bottom: 3vw;
  }
  article .link-button div a{
    font-size: 4vw;
    padding-top: 3vw;
    padding-bottom: 3vw;
  }
  article .link-button div a i{
    margin-right: 3vw;
  }
}
@media (min-width:768px) and (max-width: 1239px) {
  article .main-post h2 {
    margin-top: 6vw !important;
  }
  article .main-post h2:first-child {
    margin-top: -1vw !important;
  }
  article .main-post h2::before {
    top: -5vw;
    left: -2.4em;
  }
}
@media screen and (min-width:1240px) {
  article .main-post h2 {
    margin-top: 6vw !important;
  }
  article .main-post h2:first-child {
    margin-top: -2vw !important;
  }
  article .main-post h2::before {
    top: -5vw;
    left:  -4em;
    width: 1240px;
  }
}
.ast-separate-container .ast-article-post{
  padding: 16px !important;
}

.tag-list {
  background-color: #eee;
  margin: 0 !important;
  list-style: none;
  padding: 8px 16px;
  padding-bottom: 16px;
}
.tag-list li a {
  padding: 8px;
  background-color: rgb(215, 215, 215);
  border-radius: 5px;
  margin: 4px 8px;
  color: rgb(27, 27, 27);
}
.tag-list .tag-title {

}
.tag-title {
    margin:  0;             /* デフォルトCSS打ち消し */
    font-size:  24px;       /* 文字サイズ指定 */
    position:  relative;    /* 位置調整 */
    font-weight:  normal;   /* 文字の太さ調整 */
    display:  inline-block; /* インラインブロックにする */
    background-color: #eee; /* 背景色指定 */
    margin-left: 20px;      /* 周りの余白指定 */
    padding: 0 10px;        /* 余白指定 */
    font-weight: bold;
}
p {
    margin:  0;             /* デフォルトCSS打ち消し */
    line-height: 2;         /* 行間調整 */
}
.tag-title-wrap {
    position: relative;     /* 位置調整 */
    text-align: center;
    margin-bottom:15px;     /* 周りの余白指定 */
}
.tag-title-wrap:before {
    content:  '';           /* 空白の要素を作る */
    background-color: #000; /* 背景色指定 */
    display:  block;        /* ブロック要素にする */
    position:  absolute;    /* 位置調整 */
    left:  0;               /* 位置調整 */
    width:  100%;           /* 幅指定 */
    height:  1px;           /* 高さ指定 */
    top: 0;                 /* 位置調整 */
    bottom:  0;             /* 位置調整 */
    margin:  auto;          /* 位置調整 */
}


/* ポストページの前の記事ボタン */
.ast-separate-container .post-navigation {
  background-color: white;
  margin-top: 32px !important;
  padding-bottom: 32px !important;
}
.cat-link {
  text-align: center;
}
.cat-link .cat-title {
  text-align: left;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffd55a;
  margin-bottom: 16px;
}
.cat-link a {
  display: inline-block;
  color: #FFF !important;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  background-color: #f39800 !important;
  border-bottom: solid 6px #ec6c00;
  border-radius: 5px;
  padding: 8px 16px;
  margin: auto 16px !important;
}

.main-header-menu a {
	text-decoration: none;
	padding: 0 .5em !important;
	display: inline-block;
	transition: all .2s linear;
	font-weight: bold !important;
	font-size: 16px !important;
}
.navigation.post-navigation {
	display: none;
}
.main_contents_L {
	width: 70%;
	float: left;
}
.side_tag {
	display: block;
	float: right;
	width: 28%;
}
.tag-list li {
	display: block;
	margin-bottom: 15px;
}
.tag-list li a {
	padding: 8px 15px;
	border: 1px solid rgb(215, 215, 215);
	border-radius: 5px;
	margin: 4px 8px;
	color: #333;
	font-size: 13px !important;
	background: #f3f3f3;
}
.tag-list li a:hover {
	background: #fff;
}
.ast-separate-container .ast-archive-description, .ast-separate-container .ast-author-box {
	background: linear-gradient(249deg, #ff8f58, #ffd98f 59%, #f9d893);
	padding-bottom: 0;
	border-bottom: none;
	padding: 25px !important;
}
.page-title.ast-archive-title {
	color: rgb(80, 58, 16) !important;
	font-size: 30px !important;
	font-weight: bold;
}
.ast-pagination {
	padding-left: 0 !important;
	padding-right: 3.33333em;
}
.sub-menu li:hover {
	background: #f8f8f8;
}

/*スマホレスポンシブ*/
@media only screen and (max-width:640px){
.main_contents_L { width: 100%; float: none; }
.side_tag { float: none; width: 100%; }
.tag-list li { display: inline-block; }
	.site-footer {font-size:16px;}
}