/* GLOBAL */
body {
  font-size: 1rem;
}

.pure-g [class*="pure-u"] {
  font-family: YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN",
    Verdana, "游ゴシック", YuGothic, "メイリオ", Meiryo, sans-serif;
}

a,
a:hover {
  color: #545454;
  text-decoration: none;
}

p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

*,
::after,
::before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.container {
  padding: 0 15px;
}

.list-posts .container {
  /* When you want to `justify-content: space-between`, padding can be annoying */
  padding: unset;
}

.wrap-index .list-posts .content,
.wrap-search .list-posts .content,
.wrap-tag .list-posts .content {
  margin: 0;
  padding: 45px 0;
}

.wrap-footer footer {
  margin: 0;
  padding: 0;
}

@media screen and (min-width: 768px) {
  .wrap-index .list-posts .posts .post .post-image a,
  .wrap-search .list-posts .posts .post .post-image a,
  .wrap-tag .list-posts .posts .post .post-image a {
    background-size: contain;
    background-color: #f5f5f5;
  }
}

@media screen and (max-width: 567px) {
  .wrap-index .list-posts .posts .post .post-image,
  .wrap-search .list-posts .posts .post .post-image,
  .wrap-tag .list-posts .posts .post .post-image {
    height: 200px;
  }
}

/* BREADCRUMBS Style */
.breadcrumbs ol {
  list-style-type: none;
  padding: 0;
  margin: 0 auto;
  color: #b4b4b4;
}

.breadcrumbs ol li {
  display: inline-block;
  padding: 0 0.5rem;
  color: #b4b4b4;
}

.breadcrumbs ol li:first-child {
  padding-left: 0;
}

.breadcrumbs ol li:after {
  content: "»";
  position: relative;
  right: -0.5rem;
}

.breadcrumbs ol li:last-child:after {
  content: "";
}

.breadcrumbs ol li a {
  color: #b4b4b4;
}

.breadcrumbs ol li span {
  font-size: 0.875rem;
}

@media screen and (max-width: 767px) {
  .breadcrumbs ol {
    text-align: center;
  }
}

/* POST LOOP Pagination */

nav.pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
  justify-content: space-around;
  letter-spacing: 0;
  margin-top: 25px;
  margin-bottom: 25px;
}

nav.pagination .screen-reader-text {
  display: none;
}

nav.pagination .nav-links {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 0 15px;
  width: 100%;
}

nav.pagination .page-numbers {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 1rem;
  margin-bottom: 5px;
  padding: 8px 12px;
}

nav.pagination .page-numbers.dots {
  padding: 0;
}

nav.pagination .page-numbers.current {
  font-weight: bold;
}

nav.pagination .page-numbers:last-child {
  margin-right: 0;
}

nav.pagination .page-numbers.prev {
  margin-right: 10px;
}

nav.pagination .page-numbers.next {
  margin-left: 10px;
}

nav.pagination .page-numbers.prev,
nav.pagination .page-numbers.next {
  background-color: white;
  border: 1px solid #c4c4c4;
  border-radius: 5px;
  padding: 10px 20px;
}

nav.pagination .page-numbers.prev .nav-text {
  margin-left: 10px;
}

nav.pagination .page-numbers.next .nav-text {
  margin-right: 10px;
}

nav.pagination .page-numbers .chevron {
  height: 1.2rem;
}

@media screen and (max-width: 76px) {
  .nav-links {
    padding: 0 15px;
  }
}

@media screen and (max-width: 567px) {
  nav.pagination .page-numbers .nav-text {
    display: none;
  }

  nav.pagination .page-numbers.prev,
  nav.pagination .page-numbers.next {
    padding: 2px 10px;
  }
}

/* WIDGET Style */

.zehi-widget,
.zehi-widget.share {
  background-color: #f4f3f3;
  margin-bottom: 10px;
}

.zehi-widget .title {
  font-weight: bold;
}

.zehi-widget .post {
  background: none;
}

.zehi-widget .post.post-small .post-content {
  background: none;
}

.cta-button {
  padding-top: 48px;
}

.cta-button-mobile {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 3px;
}

.cta-button-link:hover {
  opacity: 0.6;
}
/* AUTHOR, SINGLE Style */

.wrap-author,
.wrap-single {
  background-color: #ffffff;
  padding: 0;
}

.wrap-author .related-posts .content,
.wrap-single .related-posts .content {
  margin: 0;
  padding: 53px 0 0;
}

.wrap-author .author .content,
.wrap-single .author .content {
  padding: 23px 0 30px;
  margin: 0;
}

.wrap-author .single-post .post-detail .post-content,
.wrap-single .single-post .post-detail .post-content {
  display: grid;
  grid-template-columns: 1fr var(--grid-column-width) 1fr;
}

.wrap-author .single-post .post-detail .post-content p,
.wrap-single .single-post .post-detail .post-content p {
  font-size: 16px;
  margin-bottom: 14px;
}

.wrap-author .single-post .post-detail .post-content img,
.wrap-single .single-post .post-detail .post-content img {
  display: block;
  height: auto;
  margin: auto;
  margin-bottom: 16px !important;
  max-width: 100%;
  object-fit: contain;

  @media screen and(min-width: 1020px) {
    max-width: var(--desktop-max-width);
    width: auto;
  }
}

.wrap-author .single-post .post-detail .post-content ul,
.wrap-single .single-post .post-detail .post-content ul {
  font-size: 16px;
}

.wrap-author .single-post .post-detail .post-content h2,
.wrap-single .single-post .post-detail .post-content h2 {
  border-bottom: 1px solid #2f2f2f;
  border-top: 1px solid #2f2f2f;
  font-size: 19px;
  line-height: 1.5em;
  margin: 20px 0px;
  padding: 8px;
  
  @media screen and (min-width: 1020px) {
    font-size: 24px;
  }
}

.wrap-author .single-post .post-detail .post-content h3,
.wrap-single .single-post .post-detail .post-content h3 {
  background-color: #e7e7e7;
  border-radius: 4px;
  font-size: 18px;
  line-height: 1.5em;
  margin: 20px 0px;
  padding: 8px;
}

.wrap-author .single-post .post-detail .post-content h4,
.wrap-single .single-post .post-detail .post-content h4 {
  border-bottom: 1px solid #c0c0c0;
  font-size: 17px;
  line-height: 1.5em;
  margin: 20px 0px;
  padding: 8px;
}

.wrap-author .single-post .post-detail .post-content h5,
.wrap-author .single-post .post-detail .post-content h6,
.wrap-single .single-post .post-detail .post-content h5,
.wrap-single .single-post .post-detail .post-content h6 {
  line-height: 1.5em;
  margin: 20px 0px;
}

.wrap-single
  .single-post
  .side-bar
  .popular-posts
  .post-lists
  .post
  .post-content {
  padding-left: 0;
}

.wrap-author .single-post .side-bar .new-posts .post-lists .post,
.wrap-author .single-post .side-bar .popular-posts .post-lists .post,
.wrap-single .single-post .side-bar .new-posts .post-lists .post,
.wrap-single .single-post .side-bar .popular-posts .post-lists .post {
  margin-bottom: 20px;
}

.wrap-author .single-post .side-bar .new-posts .post-lists .post:last-child,
.wrap-author .single-post .side-bar .popular-posts .post-lists .post:last-child,
.wrap-single .single-post .side-bar .new-posts .post-lists .post:last-child,
.wrap-single
  .single-post
  .side-bar
  .popular-posts
  .post-lists
  .post:last-child {
  margin-bottom: 0;
}

.wrap-author .related-posts .content .posts .swiper-container .button-prev,
.wrap-single .related-posts .content .posts .swiper-container .button-prev,
.wrap-author .related-posts .content .posts .swiper-container .button-next,
.wrap-single .related-posts .content .posts .swiper-container .button-next {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.button-prev svg,
.button-next svg {
  overflow: visible;
  width: 1rem;
}

.under-post-mobile .zehi-widget {
  margin-bottom: 0;
}

.single-post .post-info {
  background-color: #f4f3f3;
  padding-top: 7px;
}

.single-post .post-info .tags-sharing {
  margin: 0;
}

.single-post .post-info .author {
  margin-top: 7px;
}

.single-post .post-info .share {
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

.wrap-author .related-posts .content,
.wrap-single .related-posts .content {
  margin: 0 -15px;
}

.related-posts .mobile-wrapper {
  display: none;
}

.wrap-author .related-posts .content .title,
.wrap-single .related-posts .content .title {
  padding: 0 15px;
}

@media screen and (max-width: 767px) {
  .wrap-author .single-post .side-bar,
  .wrap-single .single-post .side-bar {
    display: none;
  }

  .wrap-author .single-post .post-detail .post-content img,
  .wrap-single .single-post .post-detail .post-content img {
    margin: 0 -15px;
    max-width: calc(100% + 30px);
    width: calc(100% + 30px);
  }

  .wrap-author .related-posts .content .posts,
  .wrap-single .related-posts .content .posts {
    padding-bottom: 20px;
  }

  .wrap-author .related-posts .content .posts .post,
  .wrap-single .related-posts .content .posts .post {
    padding: 0;
  }

  .related-posts .desktop-wrapper {
    display: none;
  }

  .related-posts .mobile-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .related-posts .mobile-wrapper .col {
    margin-bottom: 20px;
  }
}

@media screen and (min-width: 568px) and (max-width: 767px) {
  .wrap-author .single-post .post-detail,
  .wrap-single .single-post .post-detail {
    padding: 19px 0;
  }

  .wrap-author .single-post .post-detail .head .post-thumbnail img,
  .wrap-single .single-post .post-detail .head .post-thumbnail img {
    margin: 0 -15px;
    max-width: calc(100% + 30px);
    width: calc(100% + 30px);
  }
}

@media screen and (max-width: 567px) {
  .wrap-author,
  .wrap-single {
    margin: 0;
  }

  .post-thumbnail.no-thumbnail {
    height: 210px;
  }

  .post-info .tags-sharing .pure-g {
    margin: 0 -15px;
  }

  .single-post .post-info .share {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }
}

/* HEADER Style */

.wrap-header header {
  border-bottom: 1px solid #e9eced;
}

.wrap-header header .brand,
.wrap-header header .brand a {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  display: -ms-flexbox;
  display: -webkit-box;
  display: flex;
  margin: 0;
}

.wrap-header header .brand a {
  width: 100%;
}

.wrap-header header .brand img {
  height: 25px;
}

.wrap-header-inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  letter-spacing: 0;
}

.wrap-header-inner .menu-wrapper {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.wrap-header-inner .menu-wrapper .menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-left: -5px;
  margin-right: -5px;
}

.wrap-header-inner .menu .menu-item {
  padding: 0 5px;
}

@media screen and (max-width: 991px) {
  .wrap-header header .wrap-header-inner {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    position: relative;
    z-index: 1;
  }
  .wrap-header header .content {
    padding: 10px 0;
  }
  .wrap-header header .brand,
  .wrap-header header .brand a {
    -ms-flex-pack: center;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
  }
  .wrap-header header .menu-wrapper {
    -webkit-box-flex: 0;
    -ms-flex: 0;
    flex: 0;
  }
  .wrap-header header .menu-wrapper #mega-menu-wrap-header {
    position: static;
  }
  .wrap-header header #mega-menu-wrap-header .mega-menu#mega-menu-header {
    background: white;
    -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    left: 0;
    margin-left: -42px;
    margin-right: -42px;
    position: absolute;
    top: 50px;
    width: calc(100% + 84px);
  }
  .wrap-header
    header
    #mega-menu-wrap-header
    .mega-menu#mega-menu-header
    .mega-menu-item {
    border-top: 1px solid #e9eced;
    padding: 5px 42px;
  }
  #mega-menu-wrap-header
    .mega-menu-toggle
    .mega-toggle-blocks-left
    .mega-toggle-block,
  #mega-menu-wrap-header .mega-menu-toggle .mega-toggle-block-1:after {
    margin: 0 !important;
  }
}

@media screen and (max-width: 767px) {
  .wrap-index .list-posts .content,
  .wrap-search .list-posts .content,
  .wrap-tag .list-posts .content {
    margin: 0;
    padding: 45px 0;
  }

  .list-posts .container {
    padding: 0;
  }

  .alm-listing .col,
  .custom-posts .col,
  .swiper-slide .col {
    -webkit-box-flex: 0;
    -ms-flex: 0 1 100%;
    flex: 0 1 100%;
  }

  .wrap-index .list-posts .posts .post,
  .wrap-search .list-posts .posts .post,
  .wrap-tag .list-posts .posts .post {
    padding: 10px 0;
  }

  .wrap-header header .brand img {
    height: 22px;
  }
}

.preload-wrapper {
  width: 100%;
}

@media screen and (max-width: 567px) {
  .wrap-header header .brand img {
    margin: 0;
  }

  .wrap-header header #mega-menu-wrap-header .mega-menu#mega-menu-header {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
  }

  .wrap-header
    header
    #mega-menu-wrap-header
    .mega-menu#mega-menu-header
    .mega-menu-item {
    padding: 5px 15px;
  }
}

/* FOOTER Style */
.wrap-footer footer .footer-info {
  padding: 4rem 0;
  color: #b4b4b4;
}

footer .logo-img {
  height: 2.8rem;
}

footer .social-icon {
  filter: brightness(0.75);
  height: 2rem;
  margin-top: 1.5rem;
  padding-left: 0.675rem;
  padding-right: 0.675rem;
}

footer .footer-navigations,
footer .footer-categories {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 0.875rem;
}

.footer-navigations ul,
.footer-categories ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

footer .footer-categories {
  border-top: solid 1px #545454;
  border-bottom: solid 1px #545454;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 2rem;
  padding: 0.675rem 0;
  width: 100%;
}

footer .footer-categories .widget + .widget {
  margin-top: 0.5rem;
}

footer .widget-title .chevron {
  display: none;
}

footer .footer-navigations .widget {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding-left: 15px;
}

footer .footer-categories .widget {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

footer .footer-categories .widget p {
  margin-bottom: 0;
}

footer .footer-categories .widget .menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

footer .footer-categories .widget .menu .menu-item {
  padding-left: 1.875rem;
}

footer .footer-bottom {
  margin-top: 2rem;
}

footer .footer-bottom {
  font-size: 0.875rem;
}

footer .footer-bottom .freelance-logo {
  height: 2.5rem;
}

footer .footer-bottom .copyright {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

@media screen and (max-width: 767px) {
  footer .logo-img {
    height: 1.7rem;
  }

  footer .footer-brand {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 2rem;
  }

  footer .footer-brand .footer-logo,
  footer .footer-brand .footer-social {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
  }

  footer .footer-brand .footer-social {
    text-align: right;
  }

  footer .social-icon {
    filter: brightness(0.75);
    height: 1.5rem;
    margin-top: 0;
    padding-right: 0;
  }

  footer .footer-navigations {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  footer .footer-categories {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin: 0;
    padding: 0;
  }

  footer .footer-info .widget {
    padding: 0;
  }

  footer .footer-navigations .widget {
    border-top: solid thin #545454;
  }

  footer .footer-categories .widget {
    display: block;
  }

  footer .widget .widget-title {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem 0;
  }

  footer .widget .widget-title p {
    font-size: 1rem;
    margin: 0;
  }

  footer .widget .widget-title .chevron {
    display: inline;
    height: 1.5rem;
    padding: 0 0.5rem;
    -webkit-transition: -webkit-transform 200ms ease-in-out;
    transition: -webkit-transform 200ms ease-in-out;
    -o-transition: transform 200ms ease-in-out;
    transition: transform 200ms ease-in-out;
    transition: transform 200ms ease-in-out, -webkit-transform 200ms ease-in-out;
  }

  footer .footer-info .widget .menu {
    display: none;
    padding-bottom: 1rem;
  }

  footer .footer-info .widget .menu .menu-item {
    padding: 0.5rem 0 0.5rem 1rem;
  }

  footer .footer-bottom .copyright {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }
}

/* HELPER CLASSES */
.d-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

/* CUSTOM STYLE FOR ZEHITOMO INTERNAL BLOG*/
.wp-block-button,
.wp-block-buttons,
.wp-block-buttons .is-style-shadow {
  align-items: center;
  font-size: 16px;
  margin-bottom: 7px !important; /* to prevent the margin being overrided */
  text-align: center;
  width: 100%;
}

.ub_table-of-contents {
  background-color: #f5f5f5;
  border-radius: 10px;
  color: #696969;
  font-size: 14px;
  padding: 8px;
  box-sizing: border-box;
  transition: all 0.5s ease-in-out;
  margin-top: 20px;
  margin-bottom: 20px;
  display: grid;
}

.ub_table-of-contents-header {
  text-align: left;
  font-size: 18px;
  font-weight: 800;
  display: grid;
  grid-template-columns: minmax(10px, 1fr) auto;
  transition: all 0.5s ease-in-out;
}

.ub_table-of-contents-header-toggle {
  display: flex;
  align-items: center;
  padding-left: 5px;
}

.ub_table-of-contents-collapsed {
  padding: 10px;
}

.ub_table-of-contents-container a {
  color: #696969;
}

.ub_table-of-contents-container li {
  padding: 4px 0px;
}

.ub_table-of-contents-container > ul {
  margin-left: 0px;
  padding-left: 0px;
  list-style: none;
}

.ub_table-of-contents-container > ul > li {
  border-top: 1px solid #c0c0c0;
  padding: 4px 0px;
}

.ub_table-of-contents-container > ul > li:before {
  content: '●' !important; /* make it important so it does not being overrided by wordpress style */
  font-size: 14px !important; /* make it important so it does not being overrided by wordpress style */
  font-weight: bolder !important; /* make it important so it does not being overrided by wordpress style */
  padding-right: 4px !important; /* make it important so it does not being overrided by wordpress style */
}

.ub_table-of-contents-container > ul > li > ul {
  margin-left: 0px;
  padding-left: 18px;
  list-style: none;
  color: #050505;
}

.ub_table-of-contents-container > ul > li > ul > li:before {
  content: '・' !important; /* make it important so it does not being overrided by wordpress style */
  font-size: 16px !important; /* make it important so it does not being overrided by wordpress style */
  padding-right: 4px !important; /* make it important so it does not being overrided by wordpress style */
}

.ub_table-of-contents-header-container,
.ub_table-of-contents-extra-container {
  padding: 4px 8px;
  transition: all 0.5s ease-in-out;
}

.ub_table-of-contents-header-container {
  display: grid;
}
