/* Imported fixed pages only. */

body.k3-layout-page .sb-placement-nav-wrap {
  display: none;
}

body.k3-layout-page .sb-page-wrap {
  margin: 0;
  padding: 22px 30px 34px;
  background: #fff;
}

body.k3-layout-page .sb-page-container,
body.k3-layout-page .sb-page-main {
  display: block;
  width: 100%;
  min-width: 0;
}

body.k3-layout-page .sb-page-article {
  border: 0;
  background: transparent;
  overflow: visible;
}

body.k3-layout-page .sb-page-header {
  margin: 0 0 28px;
  background: #fff;
}

body.k3-layout-page .sb-page-header .entry-title {
  margin: 0;
  padding: 12px 20px 13px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-family: "Noto Serif JP", "Noto Serif JP Regular", "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

body.k3-layout-page .sb-single-page > .entry-thumbnail {
  margin: 0 0 20px;
  border: 0;
  background: transparent;
}

body.k3-layout-page .sb-single-page > .entry-thumbnail img {
  display: block;
  max-width: 100%;
  height: auto;
}

body.k3-layout-page .sb-page-content {
  max-width: none !important;
  padding: 0;
  font-size: 14px;
}

body.k3-layout-page .sb-page-content > * {
  max-width: none !important;
}

body.k3-layout-page .sb-page-content p {
  margin: 0 0 0.95em;
  color: #222;
  font-size: 14px;
  line-height: 1.9;
}

body.k3-layout-page .sb-page-content.sb-richtext a {
  color: var(--k3-link);
}

body.k3-layout-page .sb-page-content.sb-richtext h2 {
  margin: 34px 0 12px;
  padding: 12px 20px 13px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #222;
  font-family: "Noto Serif JP", "Noto Serif JP Regular", "Noto Serif JP", "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

body.k3-layout-page .sb-page-content.sb-richtext h3 {
  margin: 26px 0 10px;
  padding-left: 10px;
  border-left: 8px solid var(--k3-accent);
  color: #222;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
}

body.k3-layout-page .sb-page-content.sb-richtext h4,
body.k3-layout-page .sb-page-content.sb-richtext h5,
body.k3-layout-page .sb-page-content.sb-richtext h6 {
  margin: 1.15em 0 0.55em;
  color: #222;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

body.k3-layout-page .sb-page-content .workflow-list {
  display: block;
  margin: 0 0 28px;
  padding: 0;
}

body.k3-layout-page .sb-page-content .workflow-list dt {
  display: none;
}

body.k3-layout-page .sb-page-content .workflow-list dd {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.k3-layout-page .sb-page-content .notice-box {
  margin: 30px 0 0;
  padding: 16px 18px;
  border: 1px solid #d8c8ab;
  background: #f8f2e7;
}

body.k3-layout-page .sb-page-content .notice-box > span:first-child {
  display: inline-block;
  margin-bottom: 10px;
  color: #6f4d1f;
  font-weight: 700;
}

body.k3-layout-page .sb-page-content .notice-box ul {
  margin: 0;
  padding-left: 1.25rem;
}

body.k3-layout-page .sb-page-content .notice-box li + li {
  margin-top: 8px;
}


body.k3-layout-page .sb-sidebar-html {
  font-size: 14px;
}

/* Classic-template fallback still uses the shared PHP singular renderer. */
body.k3-layout-page .sb-content-wrap {
  margin: 0;
  padding: 18px 16px 24px;
}

body.k3-layout-page .sb-content-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

body.k3-layout-page .sb-main-content,
body.k3-layout-page .sb-sidebar {
  min-width: 0;
}

body.k3-layout-page .sb-sidebar {
  display: grid;
  gap: 16px;
}

body.k3-layout-page .sb-single-content > .entry-header {
  margin: 0 0 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

body.k3-layout-page .sb-single-content > .entry-header .entry-title {
  margin: 0;
  padding: 12px 20px 13px;
  font-family: "Noto Serif JP", "Noto Serif JP Regular", "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

body.k3-layout-page .sb-single-content > .entry-content {
  max-width: none !important;
}

@media (max-width: 900px) {
  body.k3-layout-page .sb-content-container {
    grid-template-columns: 1fr;
  }

  body.k3-layout-page .sb-sidebar {
    margin-top: 20px;
  }
}

@media (max-width: 720px) {
  body.k3-layout-page .sb-page-header {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    color: #111;
    font-family: "Noto Serif JP", "Noto Serif JP Regular", "Noto Serif JP", "Times New Roman", serif;
    font-weight: 700;
    text-align: center;
  }

  body.k3-layout-page .sb-page-wrap {
    padding: 16px 12px 24px;
  }

  body.k3-layout-page .sb-page-header .entry-title,
  body.k3-layout-page .sb-single-content > .entry-header .entry-title {
    padding: 10px 14px 11px;
    background: #fff;
    color: #111;
    font-size: 24px;
  }

  body.k3-layout-page .sb-page-content.sb-richtext h2 {
    margin: 24px 0 10px;
    padding: 10px 0 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    color: #111;
    font-size: 18px;
  }

  body.k3-layout-page .sb-page-content.sb-richtext h3 {
    font-size: 16px;
  }

  body.k3-layout-page .sb-page-content p {
    font-size: 13px;
    line-height: 1.8;
  }

  body.k3-layout-page .sb-page-content .notice-box {
    padding: 14px 12px;
  }
}
