/*
  日野市社協の表示調整。
  NEXTAGE 4.1.5 のテーマファイルに直接書いてあった装飾だけを、4.2.2 の上から再現する。
  X / TikTok アイコンなど、4.2.2 側の公式変更はここには入れない。
*/

/* ----------------------------------------------------------------------
 共通
---------------------------------------------------------------------- */
li.cat-item.cat-item-3 a {
  transition: all .3s;
  border-radius: 8px;
  padding: 5px;
}
li.cat-item.cat-item-3 a:hover {
  text-decoration: none;
  background-color: #336C3D;
  color: #fff;
}

h3.side_headline,
h3.headline1,
.headline1.clearfix,
div.headline1 {
  border-left: none;
}

.news_widget_list .news_title {
  transition: all .3s;
  padding: 5px;
  display: inline-block;
}
.news_widget_list .news_title:hover {
  text-decoration: none;
  background-color: #336C3D;
  color: #fff;
  border-radius: 8px;
}

.page_navi p.back a,
.page_navi p.back a:hover {
  background-color: #499E55;
  font-weight: bold;
}

h3 {
  position: relative;
  padding: 0.25rem 0;
}
h3:after {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(to right, rgb(49, 106, 59), transparent);
}

div.page h4 {
  font-size: 1rem;
  display: inline-block;
  padding: .25rem .5rem;
  color: #fff;
  background: #4A9E56;
  -webkit-box-shadow: 5px 5px 0 #316A3B;
  box-shadow: 4px 4px 0 #316A3B;
}

.wpcf7 {
  border: none;
  background: transparent;
}
.wpcf7 p {
  font-weight: bold;
}
.wpcf7 input.wpcf7-submit {
  background-color: #fff;
  color: #333;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  z-index: 1;
  border: 3px solid #333 !important;
}
.wpcf7 input.wpcf7-submit:hover {
  background: #65e87c;
  border: 3px solid #c3c3c3 !important;
}

#page-wrapper .page p a {
  padding: 0 4px;
  margin-bottom: 4px;
  border-radius: 8px;
  transition: all .3s;
  display: inline-block;
}
#page-wrapper .page p a:hover {
  text-decoration: none;
  background-color: #316A3B;
  color: #fff;
}

.pict_img {
  box-shadow: 4px 4px 10px -5px #777777;
  transition: all 0.3s ease 0s;
}
.pict_img:hover {
  border-bottom-color: transparent;
  box-shadow: none;
  transform: translateY(4px);
  opacity: .7;
}

/* ----------------------------------------------------------------------
 PC（1111px以上）
---------------------------------------------------------------------- */
@media screen and (min-width: 1111px) {
  .headline1 {
    margin: 0;
    padding: 0;
    height: auto;
    line-height: normal;
    border: none;
    font-size: 14px;
    background: none;
  }
  .headline1 h2 {
    font-size: 18px;
    font-weight: bold;
    display: inline-block;
    float: left;
    width: 80%;
    margin: 0;
    position: relative;
    padding: 5px 26px 5px 40px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(49, 106, 59, 1) 100%);
    color: #333;
    line-height: 2.0;
    border-bottom: solid 3px #316A3B;
    z-index: -2;
  }
  .headline1 h2:before {
    position: absolute;
    content: '';
    left: -2px;
    top: -2px;
    width: 0;
    height: 0;
    border: none;
    border-bottom: solid 79px transparent;
    z-index: -1;
  }
  .headline1 h2:after {
    position: absolute;
    content: '';
    right: -3px;
    top: -7px;
    width: 0;
    height: 0;
    border: none;
    border-left: solid 40px transparent;
    border-bottom: solid 79px white;
    z-index: -1;
  }

  div.headline2 {
    font-size: 18px;
    font-weight: bold;
    display: block;
    width: 80%;
    height: auto;
    margin: 0;
    position: relative;
    padding: 5px 26px 5px 40px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(49, 106, 59, 1) 100%);
    color: #333;
    line-height: 2.0;
    border: none;
    border-bottom: solid 3px #316A3B;
    z-index: -2;
  }
  div.headline2:before {
    position: absolute;
    content: '';
    left: -2px;
    top: -2px;
    width: 0;
    height: 0;
    border: none;
    border-bottom: solid 79px transparent;
    z-index: -1;
  }
  div.headline2:after {
    position: absolute;
    content: '';
    right: -3px;
    top: -7px;
    width: 0;
    height: 0;
    border: none;
    border-left: solid 40px transparent;
    border-bottom: solid 79px white;
    z-index: -1;
  }
  div#page-title.headline2 {
    display: none;
  }

  #bread_crumb li a {
    padding-right: 0;
    transition: all .3s;
  }
  #bread_crumb li a:hover {
    color: #a3d08c;
  }
  #bread_crumb li:after {
    left: -18px;
    font-weight: bold;
  }
  #bread_crumb li:nth-child(2):after {
    display: none;
  }
  #bread_crumb li:nth-child(3):after {
    left: -26px;
  }

  .top_list li a {
    display: inline-block;
    transition: all .3s;
    border-radius: 8px;
    padding: 0 .25rem;
  }
  .top_list li a:hover {
    text-decoration: none;
    height: 32px;
    line-height: 32px;
    color: #fff;
    background-color: #316A3B;
  }

  .post_list .title a {
    display: inline-block;
    transition: all .3s;
    padding: .25rem;
    border-radius: 8px;
  }
  .post_list .title a:hover {
    color: #fff;
    background-color: #316A3B;
    text-decoration: underline;
  }

  .date_headline span {
    background-color: #499E55;
  }

  #single_title {
    font-size: 1.3rem;
    letter-spacing: .1rem;
    text-shadow: 2px 2px 3px rgba(112, 112, 112, .6);
  }

  #related_post .title a {
    transition: all .3s;
    display: inline-block;
    height: 32px;
    line-height: 32px;
    border-radius: 8px;
    padding: 0 8px;
  }
  #related_post .title a:hover {
    text-decoration: none;
    background-color: #336C3D;
    color: #fff;
  }

  div.textwidget.custom-html-widget h2 font {
    position: relative;
    padding: .25em 0 .5em .25em;
    border-left: 6px solid #316A3B;
  }
  div.textwidget.custom-html-widget h2 font:after {
    position: absolute;
    left: 0;
    bottom: 0;
    content: '';
    width: 100%;
    height: 0;
    border-bottom: 2px solid #ccc;
  }

  .footer_widget a {
    padding: 4px;
    border-radius: 8px;
    transition: all .3s;
    display: inline-block;
  }
  .footer_widget a:hover {
    text-decoration: none;
    background-color: #316A3B;
    color: #fff;
  }
  .footer_widget.widget_nav_menu .menu li a {
    padding: 4px;
    border-radius: 8px;
  }
  .footer_widget.widget_nav_menu .menu li a:hover {
    text-decoration: none;
    background-color: #316A3B;
    color: #fff;
  }
}

/* ----------------------------------------------------------------------
 スマホ・タブレット（1110px以下）
---------------------------------------------------------------------- */
@media screen and (max-width: 1110px) {
  .headline1 {
    margin: 0 0 10px;
    padding: 0;
    height: auto;
    line-height: normal;
    border: none;
    font-size: 15px;
    background: none;
  }
  .headline1 h2 {
    width: 80%;
    float: left;
    font-size: 1.3rem;
    margin: 0;
    position: relative;
    padding: 5px 26px 5px 42px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(49, 106, 59, 1) 100%);
    color: #333;
    line-height: 2.0;
    border-bottom: solid 3px #316A3B;
    z-index: -2;
  }
  .headline1 h2:before {
    position: absolute;
    content: '';
    left: -2px;
    top: -2px;
    width: 0;
    height: 0;
    border: none;
    border-bottom: solid 79px transparent;
    z-index: -1;
  }
  .headline1 h2:after {
    position: absolute;
    content: '';
    right: -3px;
    top: -7px;
    width: 0;
    height: 0;
    border: none;
    border-left: solid 40px transparent;
    border-bottom: solid 79px white;
    z-index: -1;
  }

  div#bread_crumb_wrapper span {
    font-size: 1rem;
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    font-weight: bold;
  }
  #bread_crumb {
    position: relative;
  }
  #bread_crumb li {
    position: static;
  }
  #bread_crumb li.home span {
    display: none;
  }
  #bread_crumb li.last span {
    display: block;
  }
  #bread_crumb li.home a:before {
    font-size: 1.3rem;
    top: 50%;
    left: auto;
    transform: translateY(-50%);
  }
  #bread_crumb li:after {
    font-size: .9rem;
    font-weight: bold;
    left: 6%;
    top: 50%;
    transform: translateY(-50%);
  }

  .archive #page-title {
    display: none;
  }
  #single_title {
    font-size: 1.3rem;
  }
  #single_meta li {
    font-size: .9rem;
  }
  .post p {
    font-size: 1.1rem;
  }

  #related_post .date {
    font-size: .9rem;
  }
  #related_post .title a {
    display: inline-block;
    padding: .25rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    transition: all .3s;
  }
  #related_post .title a:hover {
    color: #fff;
    background-color: #316A3B;
    border-radius: 8px;
    text-decoration: none;
  }

  #previous_post,
  #next_post {
    padding: 0 1rem;
  }
  #previous_post a,
  #next_post a {
    font-size: .9rem;
  }

  #comment_header_right li a,
  #comment_header_right li p {
    font-weight: bold;
    font-size: 1rem;
  }
  .comment-content .no_comment {
    font-weight: bold;
  }

  .post_list ul li.post_date,
  .post_list ul li a {
    font-size: .9rem;
  }
  .post_list .title a {
    display: inline-block;
    transition: all .3s;
    color: #333;
    font-size: 1rem;
    padding: .25rem;
  }
  .post_list .title a:hover {
    background-color: #316A3B;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
  }

  .date_headline span {
    background: #499E55;
    font-size: 1rem;
  }
  .page_navi p.back a,
  .page_navi p.back a:hover {
    font-size: .9rem;
  }

  .footer_widget:last-child {
    margin-bottom: 3rem;
  }
  .footer_headline {
    font-size: 1.1rem;
  }
  .footer_widget a {
    border-radius: 8px;
    padding: .25rem;
    font-size: 1rem;
  }
  #copyright {
    font-size: 1.1rem;
  }

  div.textwidget.custom-html-widget {
    font-size: 1rem;
  }
  span.post-date,
  ol.news_widget_list p.news_date,
  .news_widget_list .news_date {
    font-size: .9rem;
  }
  .news_widget_list .news_date {
    font-weight: normal;
  }
  ol.news_widget_list a.news_title,
  #sideColumn div.side_widget .news_widget_list li a.news_title {
    font-size: 1rem;
  }
  #sideColumn div.side_widget .news_widget_list li a.news_title {
    text-decoration: none;
    display: inline-block;
    padding: .25rem;
    border-radius: 8px;
    font-weight: bold;
    transition: all .3s;
  }
  li.cat-item.cat-item-3 a {
    font-weight: bold;
    font-size: 1rem;
  }
  div#mainColumn h3 {
    font-size: 1.2rem;
    width: 90%;
  }
  div#mainColumn div.page p,
  div#page-wrapper div.page h4 {
    font-size: 1rem;
  }
  h3.side_headline {
    font-size: 1.2rem;
  }
  form.wpcf7-form {
    margin: 0;
  }
}

@media screen and (max-width: 1024px) {
  div.textwidget.custom-html-widget h2 font {
    position: relative;
    padding: .25em 0 .5em .25em;
    border-left: 6px solid #316A3B;
    font-size: 1.3rem;
  }
  div.textwidget.custom-html-widget h2 font:after {
    position: absolute;
    left: 0;
    bottom: 0;
    content: '';
    width: 100%;
    height: 0;
    border-bottom: 2px solid #ccc;
  }
}

@media screen and (max-width: 575px) {
  #footer_widget_wrap #footer_widget .widget_recent_entries ul li {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media screen and (max-width: 380px) {
  p#copyright {
    font-size: .3rem;
    text-align: center;
  }
  #sideColumn {
    justify-content: center;
  }
  #post-wrapper .post p a {
    font-size: .6rem;
  }
}
