.page-template-default {
  background: var(--color-white);
}
/* .p-single-inner {
  margin-inline: auto;
  padding-inline: calc(var(--to-rem) * 20);
  width: 100%;
  max-width: 1080px;
} */
@media screen and (min-width: 768px) {
  .p-single-inner {
    /* inline-size: min(100%, var(--075) * 1040); */
  }
}
.p-single {
  background: #fff;
  padding-block: calc(var(--to-rem) * 100);
}
.p-single__title {
  font-size: calc(var(--075) * 32);
  font-weight: 700;
  margin-top: calc(var(--to-rem) * 16);
}
.p-single__category {
  min-inline-size: calc(var(--075) * 123);
  font-size: calc(var(--075) * 14);
  padding: calc(var(--075) * 6) calc(var(--075) * 24);
  border-radius: calc(var(--075) * 20);
  background-color: var(--color-blue);
  color: #fff !important;
  width: fit-content;
  text-align: center;
}
.p-single__category--notice {
  background-color: #e05858;
}
.p-single__category--event {
  background-color: #00bc9f;
}

.p-single__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.p-single__layout + .p-single__layout {
  margin-top: 50px;
}
.p-single__main {
  flex: 1 1 640px;
  min-width: 0;
}

.p-single__sidebar {
  flex: 0 0 320px;
  min-width: 280px;
}

.p-single__header {
  margin-bottom: 24px;
}

.p-single__date,
.p-single__author {
  color: #666;
  font-size: 0.9rem;
}

.p-single__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.p-single__categories {
  display: flex;
  gap: 8px;
}

.p-single__thumbnail,
.p-single__featured-image {
  margin-bottom: 24px;
}
.p-single__thumbnail img,
.p-single__featured-image img {
  border-radius: 10px;
  overflow: hidden;
}

.p-single__toc {
  margin-bottom: 20px;
}

.p-single__content {
  line-height: 1.8;
  word-break: break-word;
}
#ez-toc-container {
  border-radius: 10px;
  box-shadow: none;
  padding: 20px;
}
#ez-toc-container .ez-toc-js-icon-con,
#ez-toc-container .ez-toc-toggle label {
  display: none;
}
#ez-toc-container .ez-toc-list-level-1 {
  margin-top: 10px;
}
#ez-toc-container .ez-toc-title {
  font-weight: 700 !important;
}
.ez-toc-toggle {
  text-decoration: none !important;
  padding: 0;
}
.ez-toc-btn::before {
  content: "−";
  font-weight: bold;
  margin-right: 5px;
  font-size: 20px;
  text-decoration: none;
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toc_close .ez-toc-btn::before {
  content: "＋";
}

.p-single__content * {
  min-height: 1em;
}
.p-single__content * + * {
  margin-top: 1em;
}

.p-single__content h2,
.p-single__content h3,
.p-single__content h4 {
  margin: 1.8em 0 0.8em;
  font-weight: 700;
}

.p-single__content h2 {
  font-size: 1.7rem;
  border-bottom: 3px solid var(--color-blue);
}
.p-single__content h3 {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-single__content h3::before {
  content: "";
  display: inline-block;
  height: 3px;
  width: 15px;
  background: var(--color-blue);
}
.p-single__content h4 {
  font-size: 1.2rem;
}

.p-single__content a {
  color: #0066cc;
  text-decoration: underline;
}

.p-single__content ul,
.p-single__content ol {
  margin: 1em 0 1em 1.2em;
}

.p-single__content ul {
  list-style: disc;
}
.p-single__content ol {
  list-style: decimal;
}
.p-single__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.p-single__content table th,
.p-single__content table td {
  border: 1px solid #ddd;
  padding: 0.6em;
}

.p-single__content .wp-block-button .wp-block-button__link,
.p-single__content .button,
.p-single__back .c-button,
.p-single-sidebar__more {
  display: inline-block;
  padding: 0.55em 1em;
  background: #222;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

.p-single-sidebar {
  padding: 1rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media screen and (min-width: 768px) {
  .p-single-sidebar {
    gap: 50px;
  }
}
.p-single-sidebar__title {
  font-weight: 700;
  font-size: 1rem;
}
.p-single-sidebar__title--notice {
  background: #e05858;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
}
.p-single-sidebar__title--event {
  background: #00bc9f;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
}
.p-single-sidebar__category {
  background-color: #eaf7ff;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  border-radius: 6px;
  text-decoration: none !important;
}
.p-single-sidebar__list-item {
  border-bottom: 1px solid #e0e0e1;
}
.p-single-sidebar__list-item a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
}

.p-single-sidebar__date {
  color: #666;
  font-size: 0.9rem;
}
.p-single-sidebar__title {
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.p-single-sidebar__list {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
}

.p-single-sidebar__list li {
  margin-bottom: 0.4rem;
}

.p-single-sidebar__list li a {
  color: #333;
  text-decoration: none;
}

.p-single-sidebar__list li a:hover {
  text-decoration: underline;
}

.p-single__back {
  margin-top: 2rem;
}

.p-single__navigation {
  margin-top: 50px;
}

@media (max-width: 1024px) {
  .p-single__layout {
    display: block;
  }

  .p-single__sidebar {
    width: 100%;
    margin-top: 1rem;
  }
}

.p-single__navigation {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.p-single__navigation--back {
  color: var(--color-blue);
  font-weight: 700;
}
.p-single__navigation--arrow {
  border: 1px solid var(--color-blue);
  width: 45px;
  height: 45px;
  border-radius: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dli-chevron-round-left {
  display: inline-block;
  vertical-align: middle;
  color: var(--color-blue);
  line-height: 1;
  position: relative;
  width: 12px;
  height: 12px;
  transform: translateX(25%) rotate(-135deg);
}

.dli-chevron-round-left::before,
.dli-chevron-round-left::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 0.1em;
}

.dli-chevron-round-left::before {
  top: 0;
  left: 0;
  right: 0;
  height: 0.1em;
}

.dli-chevron-round-left::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: 0.1em;
}
.dli-chevron-round-right {
  display: inline-block;
  vertical-align: middle;
  color: var(--color-blue);
  line-height: 1;
  position: relative;
  width: 12px;
  height: 12px;
  transform: translateX(-25%) rotate(45deg);
}

.dli-chevron-round-right::before,
.dli-chevron-round-right::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 0.1em;
}

.dli-chevron-round-right::before {
  top: 0;
  left: 0;
  right: 0;
  height: 0.1em;
}

.dli-chevron-round-right::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: 0.1em;
}
