@charset "utf-8";

/* ============================================================
  # WordPress
============================================================ */

/* ## Components
======================================== */

/* ### pages
---------------------------------------- */

/* .typePageContent {} */

.typePageContent img {
  display: block;
  margin: 1.5em auto;
  max-width: 100%;
  height: auto;
}

.typePageContent .alignleft,
.typePageContent .alignright {
  float: none !important;
  display: block;
  margin: 1.5em auto !important;
}


/* ### 見出し
---------------------------------------- */

.typePageContent h1 {
  border: 6px solid var(--theme-1);
  color: var(--body-color);
  margin-bottom: 1rem;
  padding: 0.25em 1rem;

  background-image: url("../img/common/heading_xl_bg_theme1.webp");
  background-position: right top;
  background-repeat: no-repeat;
  background-size: cover;
}
@media (width < 768px) {
  .typePageContent h1 {
    background-image: none;
  }
}
.typePageContent h2 {
  border: 3px solid var(--theme-1);
  border-radius: 0.75rem;
  color: var(--body-color);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding: 0.25em 1rem;

  background-image: url("../img/common/heading_lg_icon_theme1.svg");
  background-position: left 1rem center;
  background-repeat: no-repeat;
  background-size: 32px 32px;
  padding-left: calc(1rem + 0.375em + 32px);
}
.typePageContent h3 {
  background-color: var(--theme-1-200);
  border-left: 12px solid var(--theme-1);
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  padding: 0.25em 1rem;
}
.typePageContent h4 {
  border-bottom: 4px solid var(--theme-1-200);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding: 0.25em 0;
  position: relative;
}
.typePageContent h4::after {
  background-color: var(--theme-1);
  content: "";
  height: 4px;
  position: absolute;
    bottom: -4px;
    left: 0;
  width: 64px;
}
.typePageContent h5 {
  --iconHeight: 1em;
  --iconWidth: 6px;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  padding-left: calc(0.5em + var(--iconWidth));
  position: relative;
}
.typePageContent h5::before {
  background-color: var(--theme-1);
  content: "";
  line-height: 1.5;
  height: var(--iconHeight);
  position: absolute;
  top: calc((100% - var(--iconHeight)) / 2);
  left: 0;
  width: var(--iconWidth);
}

/* ----- お役立ち情報・汎用 ----- */
.color-theme-1 .typePageContent h1 {
  background-image: url("../img/common/heading_xl_bg_theme1.webp");
  border-color: var(--theme-1);
}
.color-theme-1 .typePageContent h2 {
  background-image: url("../img/common/heading_lg_icon_theme1.svg");
  border-color: var(--theme-1);
}
.color-theme-1 .typePageContent h3 {
  background-color: var(--theme-1-200);
  border-color: var(--theme-1);
}
.color-theme-1 .typePageContent h4 {
  border-color: var(--theme-1-200);
}
.color-theme-1 .typePageContent h4::after {
  background-color: var(--theme-1);
}
.color-theme-1 .typePageContent h5::before {
  background-color: var(--theme-1);
}
/* ----- 子ども会運営アイデア集 ----- */
.color-theme-2 .typePageContent h1 {
  background-image: url("../img/common/heading_xl_bg_theme2.webp");
  border-color: var(--theme-2);
}
.color-theme-2 .typePageContent h2 {
  background-image: url("../img/common/heading_lg_icon_theme2.svg");
  border-color: var(--theme-2);
}
.color-theme-2 .typePageContent h3 {
  background-color: var(--theme-2-200);
  border-color: var(--theme-2);
}
.color-theme-2 .typePageContent h4 {
  border-color: var(--theme-2-200);
}
.color-theme-2 .typePageContent h4::after {
  background-color: var(--theme-2);
}
.color-theme-2 .typePageContent h5::before {
  background-color: var(--theme-2);
}
.color-theme-2 .typePageContent h2.ideaHeading {
  background-image: url("../img/common/heading_sub_icon_theme2.webp");
  background-size: 28px 32px;
  border-color: var(--theme-2);
  border-width: 4px 32px 4px 16px;
  border-radius: 0;
}

/* ----- お知らせ ----- */
.color-theme-3 .typePageContent h1 {
  background-image: url("../img/common/heading_xl_bg_theme3.webp");
  border-color: var(--theme-3);
}
.color-theme-3 .typePageContent h2 {
  background-image: url("../img/common/heading_lg_icon_theme3.svg");
  border-color: var(--theme-3);
}
.color-theme-3 .typePageContent h3 {
  background-color: var(--theme-3-200);
  border-color: var(--theme-3);
}
.color-theme-3 .typePageContent h4 {
  border-color: var(--theme-3-200);
}
.color-theme-3 .typePageContent h4::after {
  background-color: var(--theme-3);
}
.color-theme-3 .typePageContent h5::before {
  background-color: var(--theme-3);
}

/* ----- 子ども会サポーター ----- */
.color-theme-4 .typePageContent h1 {
  background-image: url("../img/common/heading_xl_bg_theme4.webp");
  border-color: var(--theme-4);
}
.color-theme-4 .typePageContent h2 {
  background-image: url("../img/common/heading_lg_icon_theme4.svg");
  border-color: var(--theme-4);
}
.color-theme-4 .typePageContent h3 {
  background-color: var(--theme-4-200);
  border-color: var(--theme-4);
}
.color-theme-4 .typePageContent h4 {
  border-color: var(--theme-4-200);
}
.color-theme-4 .typePageContent h4::after {
  background-color: var(--theme-4);
}
.color-theme-4 .typePageContent h5::before {
  background-color: var(--theme-4);
}

/* ----- お問い合わせ ----- */
.color-theme-5 .typePageContent h1 {
  background-image: url("../img/common/heading_xl_bg_theme5.webp");
  border-color: var(--theme-5);
}
.color-theme-5 .typePageContent h2 {
  background-image: url("../img/common/heading_lg_icon_theme5.svg");
  border-color: var(--theme-5);
}
.color-theme-5 .typePageContent h3 {
  background-color: var(--theme-5-200);
  border-color: var(--theme-5);
}
.color-theme-5 .typePageContent h4 {
  border-color: var(--theme-5-200);
}
.color-theme-5 .typePageContent h4::after {
  background-color: var(--theme-5);
}
.color-theme-5 .typePageContent h5::before {
  background-color: var(--theme-5);
}

.typePageContent ol li + li,
.typePageContent ul li + li {
  margin-top: 0.25rem;
}

/* アイコン付きリンク */
.typePageContent a.iconLink {
  font-size: clamp(1rem, 0.93rem + 0.28vw, 1.125rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.typePageContent a.iconLink::before {
  border-color: var(--theme-1) var(--theme-1) transparent transparent;
  border-style: solid;
  border-width: 0.125em 0.125em 0 0;
  content: "";
  display: inline-block;
  height: 0.6em;
  width: 0.6em;
  transform: rotate(45deg);
}

/* アイコン付きリンク（ページ内） */
.typePageContent a.iconLinkAnchor {
  font-size: clamp(1rem, 0.93rem + 0.28vw, 1.125rem);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.typePageContent a.iconLinkAnchor::before {
  border-color: var(--theme-1) var(--theme-1) transparent transparent;
  border-style: solid;
  border-width: 0.125em 0.125em 0 0;
  content: "";
  display: inline-block;
  height: 0.5em;
  width: 0.5em;
  transform: rotate(135deg);
}

/* table */
.typePageContent table {
  background-color: var(--body-bg);
  border: 1px solid var(--border-color);
  color: var(--body-color);
  vertical-align: top;
  margin-top: 1rem;
  width: 100%;
}
.typePageContent table > tbody {
  vertical-align: inherit;
}
.typePageContent table > thead {
  vertical-align: bottom;
}

.typePageContent table th,
.typePageContent table td {
  border: 1px solid var(--border-color);
  padding: 0.75em;
}
.typePageContent table thead th {
  background-color: var(--gray-200);
  font-size: clamp(1rem, 0.93rem + 0.28vw, 1.125rem);
}
.typePageContent table tbody th {
  background-color: var(--gray-100);
  /* font-weight: 400; */
}
.typePageContent table td > p {
  line-height: 1.5;
}
.typePageContent table td > p:last-child {
  margin-bottom: 0;
}

/* details */
/* .typePageContent details {} */
.typePageContent summary {
  background-color: var(--theme-1-100);
  cursor: pointer;
  font-weight: bold;
  padding: 0.25em 0.5em;
}
.typePageContent .detailsContent {
  margin-top: 1em;
}


/* ### Captions
---------------------------------------- */
/* Twenty Nineteen（改） */
.wp-caption.alignnone .wp-caption-text {
  text-align: left;
}
.wp-caption-text {
  color: #666;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  padding: 0.5em;
  text-align: center;
}


/* ### Pagination(the_posts_pagination)
---------------------------------------- */

.pagination .nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.pagination .page-numbers {
  background-color: var(--whitesmoke);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--body-color);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 0.5em 0.75em;
  text-decoration: none;
  transition: background-color 0.15s, border 0.15s, color 0.15s;
}
.pagination .page-numbers.current {
  background-color: var(--theme-1);
  border: 1px solid var(--theme-1);
  color: var(--white);
}
@media (hover: hover) {
  .pagination .page-numbers:hover {
    background-color: var(--theme-1);
    border: 1px solid var(--theme-1);
    color: var(--white);
  }
}
.pagination .page-numbers:focus {
  background-color: var(--theme-1);
  color: var(--white);
}


/* ### Pager(the_post_navigation)
---------------------------------------- */

.post-navigation .nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px 24px;
}
.post-navigation .nav-next,
.post-navigation .nav-previous {
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: left;
}
@media (width >= 768px) {
  .post-navigation .nav-links {
    flex-direction: row;
    justify-content: space-between;
  }
  .post-navigation .nav-next,
  .post-navigation .nav-previous {
    width: min(40vw, 300px);
  }
  .post-navigation .nav-next {
    text-align: right;
  }
}


/* ## Utilities
======================================== */

/* ### Screen Reader Text
---------------------------------------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
  word-break: normal;
}
.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgb(0 0 0 / 0.6);
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  right: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
