/*
Theme Name:RFkari
Description: RFkari
Version: 1.0
*/

/* =============================
   基本設定
============================= */
body {
  padding: 0;
}
.knowledge a {
  /* color: #1eb39c; */
  text-decoration: none;
}
.knowledge a:hover {
  /* color: #1eb39c; */
  text-decoration: none;
}
main h2,
main h3,
main h4,
main h5,
main ul,
main li {
  all: revert;
  list-style: none !important;
  margin: 0;
  padding: 0;
}
main li::before {
  content: "";
}
#top {
  height: 0;
}
section {
  padding: 0;
  margin: 0;
}
.inner {
  max-width: 1100px;
  margin: auto;
}
.dummythumb {
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: 240px;
  background-color: #eee;
}
.knowledge [id] {
  scroll-margin-top: 80px;
}
.accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.section_title {
  font-size: 28px;
  color: #1eb39c;
  margin: 48px auto 12px auto;
}
/* =============================
   コンテナ
============================= */
.knowledge {
  font-family: sans-serif;
  line-height: 160%;
  background-color: #fff;
  color: #333;
  padding-top: 0;
  font-weight: 500;
  display: flex;
  flex-wrap: nowrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-size: 16px;
  gap: 48px;
}
@media (max-width: 767px) {
  .knowledge {
    flex-direction: column;
    gap: 0;
  }
}

.knowledge-main {
  flex: 1 1 70%;
}

.knowledge-sidebar {
  flex: 1 1 30%;
}
.knowledge-header {
  background: linear-gradient(90deg, #d6f7f2 0%, #edf4d4 100%);
  padding: 90px 24px 20px 24px;
  color: #444;
}
.knowledge-header > .inner {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 767px) {
  .knowledge-header > .inner {
    flex-direction: column;
    gap: 10px;
  }
}
.knowledge-header > .inner > h2 {
  display: flex;
  justify-content: flex-start;
}
.knowledge-header > .inner > p {
  display: flex;
  justify-content: flex-end;
}
/* =============================
breadcrumb
============================= */
.breadcrumbs {
  padding: 16px;
  font-size: 14px;
  line-height: 160%;
}


@media (max-width: 1100px) {
  .breadcrumbs {
    padding: 0 24px;
  }
}

/* =============================
   サイドバー
============================= */
.knowledge-sidebar {
  padding: 0;
}
.knowledge-sidebar .section_title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.knowledge-sidebar .recent ul {
  border-top: 1px solid #dfdfdf;
}
.knowledge-sidebar .recent li {
  padding: 16px 4px;
  border-bottom: 1px solid #dfdfdf;
}
.knowledge-sidebar .recent {
  padding: 16px 0;
}
.knowledge-sidebar .recent a {
  color: #333;
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  font-weight: 600;
  line-height: 140%;
  justify-content: flex-start;
  align-items: flex-start;
  font-size: 14px;
}
.knowledge-sidebar .recent img {
  aspect-ratio: 16 / 10;
  width: 120px;
  object-fit: cover;
}

/* =============================
   タグ
============================= */
.tags ul {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
  border-top: 1px solid #dfdfdf;
  border-bottom: 1px solid #dfdfdf;
  padding: 24px 0;
}
.tags a {
  border-radius: 999px;
  background-color: #eee;
  color: #333;
  display: grid;
  place-content: center;
  padding: 2px 10px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.tags a:hover {
  text-decoration: none;
  background-color: #1eb39d3c;
  color: #1eb39d;
}
/* =============================
 サイドバー用バナー
============================= */
.side_banner img {
  width: 100%;
}

.side_banner figcaption {
  width: 100%;
}
@media (max-width: 767px) {
  .side_banner {
    display: none;
  }
}
/* =============================
  single
============================= */
.entry-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: nowrap;
  border-top: 1px solid #dfdfdf;
  border-bottom: 1px solid #dfdfdf;
  background: #fff;
  margin: 32px auto;
}
.entry-eyecatch {
  flex: 1 1 30%;
}
.entry-data {
  flex: 1 1 70%;
  padding: 12px 0;
}
.entry-eyecatch img {
  width: 100%;
}
.knowledge-single h2 {
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 140%;
}
.knowledge-single time {
  font-size: 13px;
  color: #666;
}
.entry-tags {
  display: flex;
  gap: 10px;
  margin: 24px 0 48px 0;
}

.entry-tags a {
  border-radius: 999px;
  background-color: #eee;
  color: #333;
  display: grid;
  place-content: center;
  padding: 2px 10px;
  font-weight: 600;
  font-size: 14px;
}
.entry-tags a:hover {
  text-decoration: none;
  background-color: #1eb39d3c;
  color: #1eb39d;
}
.entry-content h2.wp-block-heading {
  border-top: 2px solid #34d8bf;
  border-bottom: 2px solid #34d8bf;
  padding: 12px 16px;
  margin: 48px 0 24px 0;
  line-height: 140%;
  font-size: 26px;
  background-color: #169b8513;
}

.entry-content h3.wp-block-heading {
  font-weight: 700;
  line-height: 140%;
  font-size: 24px;
  margin: 32px 0 20px 0;
}
.entry-content h4.wp-block-heading {
  margin: 36px 0 20px 0;
  font-weight: 700;
  line-height: 140%;
  font-size: 22px;
}
.back-to-archive a {
  display: grid;
  place-content: center;
  margin: 48px auto;
  width: fit-content;
  border: 1px solid #1eb39d;
  border-radius: 99px;
  padding: 16px 48px;
  text-decoration: none;
}
/* =============================
  single内のtoc
============================= */
#toc {
  border: 1px solid #dfdfdf;
  padding: 24px;
  margin: 32px auto;
  background: #f9f9f9;
  font-size: 16px;
}
#toc ul {
  list-style: none;
  padding-left: 1em;
}
#toc li {
  margin: 0.3em 0;
}
#toc > ul > li > a {
  font-weight: 600;
}
#toc li ul {
  padding-left: 24px;
}
#toc a {
  text-decoration: none;
  color: #333;
}
#toc strong {
  text-align: center;
  display: block;
}

/* =============================
archive
============================= */
.knowledge-list-wrapper {
  margin: 6vw auto;
}
.knowledge-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #dfdfdf;
}
.knowledge-list article {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #dfdfdf;
  padding: 24px 0;
}
@media (max-width: 767px) {
  .knowledge-list article {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
  }
}

.knowledge-list article h3 a {
  color: #333;
  font-size: clamp(19px, 2.47vw + 7px, 28px);
  line-height: 150%;
  color: #333;
  margin-bottom: 24px;
}
.knowledge-list article img {
  width: 340px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
@media (max-width: 767px) {
  .knowledge-list article img {
    width: 100%;
    max-width: 320px;
  }
}
.knowledge-list time {
  font-size: 13px;
  color: #666;
}
.knowledge-list [itemprop="description"] {
  font-size: 13px;
  line-height: 140%;
}

/* =============================
reccomend
============================= */
.recommend-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #dfdfdf;
}
.recommend-list article {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #dfdfdf;
  padding: 16px 0;
}
.recommend-list article h2 {
  font-size: 20px;
  line-height: 140%;
  color: #333;
}
.recommend-list article h2 a {
  color: #333;
}
.recommend-list article img {
  width: 210px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.recommend-list [itemprop="description"] {
  font-size: 13px;
  line-height: 140%;
}


.for_accessibility {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
/* =============================
wpの影響上書き　
============================= */
footer a:where(:not(.wp-element-button)) {
  text-decoration: none;
}
