/*
Theme Name: Tojonet 2025
Template: twentytwentyfive
*/


a:hover {
  opacity: 0.8;
}

ul.wp-block-latest-posts li,
.wsp-container ul li {
  padding-top: 3px;
}



.page-template-default .wp-block-latest-posts__featured-image img {
  border: 1px solid #cfcfcf;
  height: 250px;
  width: 500px;
  object-fit: cover;
}

.page-template-default .wp-block-cover__background {
  transform: skewX(-25deg);
}
.wp-block-cover .wp-block-cover__inner-container {
  text-shadow: 3px 3px 10px #000;
}
.page .wp-block-table table tr td:nth-of-type(1) {
  white-space: nowrap;
  vertical-align: top;
}

@media screen and (max-width:500px) {
  .wp-block-table td, .wp-block-table th {
    display: block;
    padding: 0.2em 1em 0.4em 1em !important;
  }
  .wp-block-table td:nth-of-type(1) {
    font-weight: bold;
    font-size: larger;
  }
}

/* go to top
*/
html {
  scroll-behavior: smooth;
}



/* wpcf7
*/
.my-caution {
  color: #fff;
  background-color: #e10000;
  vertical-align: middle;
  font-size: small;
  padding: 2px 5px;
}
.wpcf7 input,
.wpcf7 textarea {
  font-size: inherit;
  padding: 10px;
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #999;
}
@media screen and (max-width:900px) {
  .wpcf7 {
    max-width: 90%;
    margin-left: 0px !important;
  }
  .wpcf7 dl dd {
    margin-inline-start: 5px;
  }
  .wpcf7 input,
  .wpcf7 textarea {
    max-width: 100%;
  }
}


/* tel 折り返しNG
*/
.tel {
  font-size: 8vmin;
}



/* wp-block-archives
*/
.wp-block-archives-dropdown select {
  padding: 5px 10px;
  font-size: large;
}


/* wp-block-post list
*/
.wp-block-post-date {
  white-space: nowrap;
}
.wp-block-post-terms__separator {
  display: table-column;
}
ul.wp-block-categories {
  display: flex;
}
ul.wp-block-categories li {
  list-style: none;
  border-left: 1px solid #ccc;
  padding: 3px 20px;
}
ul.wp-block-categories li:first-child{
  border: none;
}
ul.wp-block-categories-list .cat-item-1,
ul.wp-block-categories-list .cat-item-52 {
  display: none;
}

/* header
*/
header.wp-block-template-part .scroll {
  position: fixed;
  z-index: 100;
  background: #fff;
  width: 100%;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

/* header menu
*/
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container {
  left: -5px;
  min-width:150px;
  font-size: 80%;
  line-height: 0.5 !important;
}
header.wp-block-template-part ul.wp-block-navigation-submenu a.wp-block-navigation-item__content {
  padding: 5px;
}
header.wp-block-template-part ul.wp-block-navigation-submenu a:where(:not(.wp-element-button)) {
  line-height: 2;
}
header.wp-block-template-part ul.wp-block-navigation-submenu a:where(:not(.wp-element-button)) span {
  line-height: 1.2;
}



/* header menu sp
*/
@media screen and (max-width:900px) {
  header .has-global-padding {
    padding-right: 10px;
    padding-left: 10px;
  }
  .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container {
    left: unset;
    right: 0px;
    min-width: max-content;
  }
  header .wp-block-navigation ul li.wp-block-home-link,
  header .wp-block-search.wp-block-search__button-only .wp-block-search__button {
    display: none;
  }
  header .is-layout-flex {
    flex-wrap: nowrap;
  }
  :root :where(.wp-block-navigation) {
    font-size: unset;
  }
  header .wp-block-navigation.items-justified-right {
    row-gap: 1px;
    column-gap: 10px;
  }
}

/* page
*/
:root :where(.wp-block-list) {
    line-height: 1.5;
}
.wp-block-table td, .wp-block-table th {
  padding: 1em;
}
.table-outline table td:nth-of-type(1),
.table-history table td:nth-of-type(1) {
  font-weight: bold;
}

/* footer
*/
#footer-navi li a {
  line-height: inherit;
}
footer.wp-block-template-part {
  margin-block-start: auto;
}

footer .has-medium-font-size {
  line-height: 100%;
}

footer .wp-block-navigation ul,
footer .wp-block-navigation ul li {
  row-gap: revert;
}
footer .wp-block-navigation ul:not(:first-child),
footer .wp-block-navigation ul li:not(:first-child) {
  font-size: 85%;
}


/* sitemap
*/
.wsp-categories-list li:last-child {
  display: none;
}

.display-none {
  display: none;
}


/* recaptcha
*/
.grecaptcha-badge {
  display: none;
}

