/* Codex article readability polish 2026-06-13 */
:root {
  --fuku-ink: #2e3832;
  --fuku-muted: #657168;
  --fuku-green: #5fa87a;
  --fuku-green-dark: #2f6348;
  --fuku-green-soft: #f5fbf7;
  --fuku-border: #dfe9e3;
  --fuku-card-shadow: 0 8px 22px rgba(35, 62, 45, 0.08);
}

body.public-page .article {
  color: var(--fuku-ink);
  text-rendering: optimizeLegibility;
}

.article .entry-title {
  line-height: 1.45;
  letter-spacing: 0;
  color: #26352d;
}

.article .entry-content {
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: 0;
}

.article .entry-content > p,
.article .entry-content li,
.article .entry-content dd {
  line-height: 1.95;
}

.article .entry-content > p {
  margin-bottom: 1.35em;
}

.article .entry-content a {
  color: #176b4d;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.article .entry-content a:hover {
  color: #0f513a;
}

.article .entry-content h2.wp-block-heading {
  margin-top: 3.4em;
  margin-bottom: 1.15em;
  padding: 0.85em 1em 0.8em;
  border-left: 6px solid var(--fuku-green);
  border-top: 1px solid #edf4ef;
  border-bottom: 1px solid #d8e8de;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--fuku-green-soft) 0%, #ffffff 100%);
  color: #284c39;
  font-size: 1.42em;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0;
}

.article .entry-content h3.wp-block-heading {
  margin-top: 2.65em;
  margin-bottom: 1em;
  padding: 0.25em 0 0.25em 0.85em;
  border-left: 4px solid #9bc9ad;
  color: #30483b;
  font-size: 1.22em;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
}

.article .entry-content h4.wp-block-heading,
.article .entry-content h5.wp-block-heading,
.article .entry-content h6.wp-block-heading {
  margin-top: 2.1em;
  margin-bottom: 0.85em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--fuku-border);
  color: #33473c;
  line-height: 1.6;
  letter-spacing: 0;
}

.article .toc {
  border: 1px solid #d5e8dd;
  border-radius: 8px;
  background: #fbfefc;
  box-shadow: var(--fuku-card-shadow);
  padding: 1.05em 1.15em;
}

.article .toc-title {
  color: var(--fuku-green-dark);
  font-weight: 700;
}

.article .toc a {
  color: #2d6b50;
  text-decoration: none;
}

.article .toc a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article .wp-block-table {
  overflow-x: auto;
  border-radius: 8px;
}

.article .wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95em;
  line-height: 1.7;
  background: #fff;
}

.article .wp-block-table th,
.article .wp-block-table td {
  border-color: #dfe9e3;
  padding: 0.78em 0.9em;
  vertical-align: top;
}

.article .wp-block-table th {
  background: #eef8f2;
  color: #264d3a;
  font-weight: 700;
}

.article .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: #fbfdfb;
}

.article .blank-box.block-box,
.article .wp-block-group.has-background,
.article .wp-block-list.has-background,
.article p.has-background {
  border-radius: 8px;
  border-color: var(--fuku-border);
  padding: 1.05em 1.15em;
}

.article .wp-block-cocoon-blocks-faq.faq-wrap {
  border: 1px solid #eadfc9;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 6px 18px rgba(108, 83, 35, 0.06);
  padding: 1em 1.1em;
}

.article .faq-question-content {
  color: #35443b;
  font-weight: 700;
  line-height: 1.75;
}

.article .faq-answer-content {
  color: #3d4741;
  line-height: 1.85;
}

.article .faq-question-label,
.article .faq-answer-label {
  font-weight: 700;
}

.article .blogcard-wrap {
  border: 1px solid var(--fuku-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--fuku-card-shadow);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.article .blogcard-wrap:hover {
  box-shadow: 0 10px 26px rgba(35, 62, 45, 0.12);
  transform: translateY(-1px);
}

.article .blogcard-title {
  color: #2e4438;
  font-weight: 700;
  line-height: 1.45;
}

.article .blogcard-snippet {
  color: var(--fuku-muted);
  line-height: 1.6;
}

.article .wp-block-image img {
  border-radius: 6px;
}

.article .wp-block-image figcaption,
.article .wp-block-embed figcaption {
  color: #667168;
  font-size: 0.82em;
  line-height: 1.6;
  text-align: left;
}

.article .video-container,
.article .wp-block-embed__wrapper {
  border-radius: 8px;
  overflow: hidden;
}

.article .marker-under {
  background: linear-gradient(transparent 62%, rgba(255, 232, 78, 0.78) 62%);
  padding: 0 0.04em;
}

@media screen and (max-width: 834px) {
  .article {
    padding-left: 12px;
    padding-right: 12px;
  }

  .article .entry-title {
    font-size: 1.42em;
    line-height: 1.55;
  }

  .article .entry-content {
    font-size: 16px;
    line-height: 1.9;
  }

  .article .entry-content > p,
  .article .entry-content li,
  .article .entry-content dd {
    line-height: 1.9;
  }

  .article .entry-content h2.wp-block-heading {
    margin-top: 2.8em;
    padding: 0.75em 0.85em;
    font-size: 1.22em;
    line-height: 1.55;
  }

  .article .entry-content h3.wp-block-heading {
    margin-top: 2.2em;
    font-size: 1.1em;
    line-height: 1.6;
  }

  .article .toc,
  .article .blank-box.block-box,
  .article .wp-block-cocoon-blocks-faq.faq-wrap {
    padding: 0.95em;
  }

  .article .wp-block-table table {
    min-width: 620px;
    font-size: 14px;
  }

  .article .blogcard-snippet {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
}

/* Codex reader route polish 2026-06-13 */
.article .entry-content > .blank-box.has-ex-a-background-color,
.article .entry-content > .blank-box:has(+ .toc) {
  margin: 1.35em auto 1.1em;
  padding: 1em 1.15em;
  border: 1px solid #d9eadf;
  border-left: 6px solid #7bb992;
  border-radius: 8px;
  background: linear-gradient(90deg, #f6fcf8 0%, #ffffff 100%);
  box-shadow: 0 6px 18px rgba(35, 62, 45, 0.06);
}

.article .entry-content > .blank-box.has-ex-a-background-color p,
.article .entry-content > .blank-box:has(+ .toc) p {
  margin: 0;
  color: #365543;
  font-weight: 700;
  line-height: 1.85;
}

.article p.has-text-align-center:has(+ .wp-block-embed-youtube) {
  margin: 1.5em auto 0.8em;
  padding: 0.72em 1em;
  border: 1px solid #d7e8ee;
  border-left: 5px solid #84b7c9;
  border-radius: 8px;
  background: #f6fbfd;
  color: #365260;
  font-weight: 700;
  line-height: 1.65;
}

.article .primary-box {
  border: 1px solid #cfe1ec;
  border-left: 6px solid #5f9ebc;
  border-radius: 8px;
  background: #eef8ff;
  box-shadow: 0 8px 20px rgba(40, 92, 118, 0.08);
}

.article .primary-box p,
.article .primary-box li {
  color: #24485b;
}

.article .primary-box .wp-block-button__link {
  border-radius: 6px;
  background: #2f3430;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(32, 44, 38, 0.15);
}

.article .revenue-hub-final-links {
  margin-top: 3.2em !important;
  margin-bottom: 0.85em !important;
  padding: 0.95em 1.1em;
  border: 1px solid #d8e9df;
  border-left: 6px solid #5fa87a;
  border-radius: 8px;
  background: linear-gradient(90deg, #f3fbf6 0%, #ffffff 100%);
  color: #2f6348;
  font-size: 1.05em;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 22px rgba(35, 62, 45, 0.07);
}

.article .revenue-hub-final-links + p {
  margin-bottom: 1em;
  padding: 0.9em 1em;
  border: 1px solid #e2ede6;
  border-radius: 8px;
  background: #fbfdfb;
  color: #405247;
  line-height: 1.75;
}

.article .kumasaki-revenue-cta {
  margin-top: 2.8em !important;
  margin-bottom: 0.8em !important;
  padding: 0.92em 1.05em;
  border: 1px solid #eadfc9;
  border-left: 6px solid #caa65d;
  border-radius: 8px;
  background: linear-gradient(90deg, #fffaf0 0%, #ffffff 100%);
  color: #5d4b24;
  box-shadow: 0 8px 20px rgba(102, 78, 35, 0.07);
}

.article .kumasaki-revenue-cta + p {
  padding: 0.2em 0.3em;
  color: #464239;
}

.article .kumasaki-revenue-cta + p + p.has-text-align-center {
  margin-top: 1em;
  margin-bottom: 0.7em;
  padding: 0.75em 0.9em;
  border-radius: 8px;
  background: #fff8e6;
  color: #59431d;
}

.article .kumasaki-revenue-cta + p + p.has-text-align-center + a[rel="nofollow"] {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2em;
  padding: 0.25em;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(102, 78, 35, 0.09);
}

.article .kumasaki-revenue-cta + p + p.has-text-align-center + a[rel="nofollow"] img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.article h2.internal-link-section {
  border-left-color: #b3a46b !important;
  border-top-color: #eee7cf !important;
  border-bottom-color: #e6dcc0 !important;
  background: linear-gradient(90deg, #fbfaf3 0%, #ffffff 100%) !important;
  color: #5a5134 !important;
}

.article h2.internal-link-section + p {
  padding: 0.78em 0.95em;
  border-radius: 8px;
  background: #fbfaf6;
  border: 1px solid #e9e3cf;
  color: #544d3d;
}

@media screen and (max-width: 834px) {
  .article .entry-content > .blank-box.has-ex-a-background-color,
  .article .entry-content > .blank-box:has(+ .toc),
  .article p.has-text-align-center:has(+ .wp-block-embed-youtube),
  .article .primary-box,
  .article .revenue-hub-final-links,
  .article .revenue-hub-final-links + p,
  .article .kumasaki-revenue-cta,
  .article h2.internal-link-section + p {
    padding: 0.82em 0.9em;
  }

  .article .kumasaki-revenue-cta + p + p.has-text-align-center + a[rel="nofollow"] {
    width: 100%;
  }
}

/* Codex site frame polish 2026-06-13 */
body.public-page {
  background: #f5f8f4;
}

body.public-page .container {
  background: linear-gradient(180deg, #f5f8f4 0%, #ffffff 420px);
}

body.public-page .content {
  margin-top: 22px;
}

body.public-page .content-in {
  gap: 22px;
}

body.public-page .main,
body.public-page .sidebar .widget,
body.public-page .related-entries,
body.public-page .pager-post-navi,
body.public-page .author-box {
  border: 1px solid #dfe9e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(35, 62, 45, 0.07);
}

body.public-page .main {
  padding: 28px 34px 34px;
}

body.public-page .article-header {
  padding-bottom: 1.1em;
  border-bottom: 1px solid #e5eee8;
}

body.public-page .breadcrumb {
  color: #748078;
  font-size: 0.84em;
}

body.public-page .breadcrumb a {
  color: #4f755f;
  text-decoration: none;
}

body.public-page .entry-title {
  margin-top: 0.55em;
  margin-bottom: 0.7em;
  font-size: clamp(1.72rem, 2.3vw, 2.22rem);
}

body.public-page .date-tags,
body.public-page .post-date,
body.public-page .post-update,
body.public-page .entry-categories,
body.public-page .entry-tags {
  color: #6f7b73;
  font-size: 0.9em;
}

body.public-page .header {
  background-position: center;
  background-size: cover;
}

body.public-page .header-in {
  padding-top: 26px;
  padding-bottom: 26px;
}

body.public-page .site-name-text {
  display: inline-block;
  padding: 0.28em 0.5em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #26352d !important;
  line-height: 1.35;
  text-shadow: none;
}

body.public-page #navi,
body.public-page #navi .navi-in > ul {
  background: #2f6348;
}

body.public-page #navi .navi-in a {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
}

body.public-page #navi .navi-in a:hover {
  background: rgba(255, 255, 255, 0.14);
}

body.public-page .sidebar {
  padding-top: 0;
}

body.public-page .sidebar .widget {
  padding: 1.1em 1.15em;
}

body.public-page .sidebar .widget-title {
  margin: -0.1em 0 0.85em;
  padding: 0 0 0.55em;
  border-bottom: 2px solid #dbeade;
  color: #2f6348;
  font-size: 1.04em;
  font-weight: 700;
}

body.public-page .sidebar a {
  color: #2d6b50;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

body.public-page .entry-card-wrap,
body.public-page .related-entry-card-wrap,
body.public-page .popular-entry-card-wrap,
body.public-page .new-entry-card-wrap,
body.public-page .pager-post-navi a {
  border-radius: 8px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body.public-page .entry-card-wrap:hover,
body.public-page .related-entry-card-wrap:hover,
body.public-page .popular-entry-card-wrap:hover,
body.public-page .new-entry-card-wrap:hover,
body.public-page .pager-post-navi a:hover {
  background: #f7fbf8;
  box-shadow: 0 8px 18px rgba(35, 62, 45, 0.07);
  transform: translateY(-1px);
}

body.public-page .entry-card-title,
body.public-page .related-entry-card-title,
body.public-page .popular-entry-card-title,
body.public-page .new-entry-card-title {
  color: #2e4438;
  line-height: 1.45;
}

body.public-page .entry-card-snippet,
body.public-page .related-entry-card-snippet {
  color: #657168;
  line-height: 1.65;
}

body.public-page .cat-label {
  border-radius: 4px;
  background: rgba(47, 99, 72, 0.9);
}

body.public-page .sns-share,
body.public-page .sns-follow,
body.public-page .under-entry-content {
  margin-top: 2.4em;
}

body.public-page .sns-share-message,
body.public-page .sns-follow-message {
  color: #69756d;
  letter-spacing: 0;
}

body.public-page .footer {
  margin-top: 2.5em;
  background: #2f3d34;
  color: #f7fbf8;
}

body.public-page .footer a {
  color: #f7fbf8;
}

body.public-page .go-to-top-button {
  border-radius: 999px;
  background: #2f6348;
  box-shadow: 0 8px 18px rgba(35, 62, 45, 0.22);
}

@media screen and (max-width: 1255px) {
  body.public-page .content-in {
    gap: 16px;
  }

  body.public-page .main {
    padding: 24px 26px 30px;
  }
}

@media screen and (max-width: 834px) {
  body.public-page .content {
    margin-top: 10px;
  }

  body.public-page .main {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 14px 28px;
  }

  body.public-page .article-header {
    padding-bottom: 0.85em;
  }

  body.public-page .site-name-text {
    max-width: calc(100vw - 32px);
    font-size: 0.95em;
  }

  body.public-page #navi .navi-in a {
    font-size: 0.92em;
  }

  body.public-page .sidebar .widget,
  body.public-page .related-entries,
  body.public-page .pager-post-navi,
  body.public-page .author-box {
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(35, 62, 45, 0.06);
  }
}

/* Codex index cards polish 2026-06-13 */
body.public-page .archive-title,
body.public-page .list-title {
  margin: 0 0 1.05em;
  padding: 0.75em 0.9em;
  border-left: 6px solid #5fa87a;
  border-radius: 8px;
  background: linear-gradient(90deg, #f3fbf6 0%, #ffffff 100%);
  color: #284c39;
  font-size: 1.35em;
  line-height: 1.5;
}

body.public-page .list.ect-entry-card {
  gap: 14px;
}

body.public-page .entry-card-wrap {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #dfe9e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(35, 62, 45, 0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

body.public-page .entry-card-wrap:hover {
  border-color: #cfe1d6;
  background: #fbfdfb;
  box-shadow: 0 10px 26px rgba(35, 62, 45, 0.1);
  transform: translateY(-1px);
}

body.public-page .entry-card {
  align-items: stretch;
  gap: 16px;
}

body.public-page .entry-card-thumb {
  overflow: hidden;
  flex: 0 0 194px;
  border-radius: 8px;
  background: #eef5f0;
}

body.public-page .entry-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
  transition: transform 0.18s ease;
}

body.public-page .entry-card-wrap:hover .entry-card-thumb img {
  transform: scale(1.025);
}

body.public-page .entry-card-content {
  margin-left: 0;
  padding: 0.1em 0.1em 0;
}

body.public-page .entry-card-title {
  margin-bottom: 0.45em;
  color: #2e4438;
  font-size: 1.08em;
  font-weight: 700;
  line-height: 1.5;
}

body.public-page .entry-card-snippet {
  color: #657168;
  font-size: 0.94em;
  line-height: 1.72;
}

body.public-page .entry-card-meta {
  color: #748078;
  font-size: 0.82em;
}

body.public-page .pagination {
  justify-content: center;
  gap: 8px;
  margin-top: 2em;
  padding: 1.1em 0 0.4em;
  border-top: 1px solid #e5eee8;
}

body.public-page .pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  border: 1px solid #d6e5dc;
  border-radius: 999px;
  background: #fff;
  color: #2f6348;
  box-shadow: none;
  line-height: 40px;
  text-align: center;
  text-decoration: none;
}

body.public-page .pagination .page-numbers.current,
body.public-page .pagination .page-numbers:hover {
  border-color: #2f6348;
  background: #2f6348;
  color: #fff;
}

body.public-page .search-box {
  position: relative;
}

body.public-page .search-edit {
  min-height: 44px;
  border: 1px solid #d8e6dd;
  border-radius: 8px;
  background: #fff;
  color: #2e3832;
  box-shadow: inset 0 1px 2px rgba(35, 62, 45, 0.04);
}

body.public-page .search-edit:focus {
  border-color: #8fc3a3;
  box-shadow: 0 0 0 3px rgba(95, 168, 122, 0.14);
  outline: none;
}

body.public-page .search-submit {
  color: #2f6348;
}

body.public-page .search-submit:hover {
  color: #1f4b35;
}

body.public-page .related-entry-card-wrap,
body.public-page .new-entry-card-wrap,
body.public-page .popular-entry-card-wrap {
  padding: 10px;
  border: 1px solid #e0e9e4;
  background: #fff;
}

body.public-page .related-entry-card-wrap:hover,
body.public-page .new-entry-card-wrap:hover,
body.public-page .popular-entry-card-wrap:hover {
  border-color: #cfe1d6;
}

body.public-page .related-entry-card-thumb,
body.public-page .new-entry-card-thumb,
body.public-page .popular-entry-card-thumb {
  overflow: hidden;
  border-radius: 6px;
}

body.public-page .related-entry-card-title,
body.public-page .new-entry-card-title,
body.public-page .popular-entry-card-title {
  font-weight: 700;
}

@media screen and (max-width: 834px) {
  body.public-page .archive-title,
  body.public-page .list-title {
    font-size: 1.15em;
    padding: 0.7em 0.85em;
  }

  body.public-page .entry-card-wrap {
    margin-bottom: 12px;
    padding: 10px;
  }

  body.public-page .entry-card {
    gap: 10px;
  }

  body.public-page .entry-card-thumb {
    flex-basis: 34%;
    border-radius: 7px;
  }

  body.public-page .entry-card-thumb img {
    min-height: 88px;
  }

  body.public-page .entry-card-title {
    font-size: 0.98em;
    line-height: 1.45;
  }

  body.public-page .entry-card-snippet {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 0.88em;
    line-height: 1.58;
  }

  body.public-page .pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    line-height: 36px;
  }
}

@media screen and (max-width: 480px) {
  body.public-page .entry-card-wrap {
    padding: 9px;
  }

  body.public-page .entry-card {
    gap: 9px;
  }

  body.public-page .entry-card-thumb {
    flex-basis: 36%;
  }

  body.public-page .entry-card-title {
    font-size: 0.95em;
  }
}

/* Codex action surface polish 2026-06-13 */
body.public-page .wp-block-button__link,
body.public-page .btn-wrap a {
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.public-page .wp-block-button__link:hover,
body.public-page .btn-wrap a:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

body.public-page .date-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 18px 0 12px;
  color: #758075;
  font-size: 0.84rem;
  line-height: 1.6;
}

body.public-page .entry-categories,
body.public-page .entry-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

body.public-page .cat-link,
body.public-page .tag-link,
body.public-page .entry-categories a,
body.public-page .entry-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid rgba(105, 164, 118, 0.28);
  border-radius: 999px;
  background: #f4fbf4;
  color: #446b4a;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

body.public-page .cat-link:hover,
body.public-page .tag-link:hover,
body.public-page .entry-categories a:hover,
body.public-page .entry-tags a:hover {
  background: #eaf6ea;
  color: #2f5435;
}

body.public-page .sns-share,
body.public-page .sns-follow {
  margin: 26px auto;
  padding: 18px 14px;
  border: 1px solid rgba(105, 164, 118, 0.16);
  border-radius: 8px;
  background: #fbfdfb;
}

body.public-page .sns-share-message,
body.public-page .sns-follow-message {
  margin-bottom: 12px;
  color: #55705a;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
}

body.public-page .sns-share-buttons,
body.public-page .sns-follow-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

body.public-page .sns-share-buttons a,
body.public-page .sns-follow-buttons a {
  box-shadow: 0 8px 20px rgba(36, 56, 42, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

body.public-page .sns-share-buttons a:hover,
body.public-page .sns-follow-buttons a:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(36, 56, 42, 0.14);
}

body.public-page .under-entry-content {
  margin-top: 44px;
}

body.public-page .related-entries,
body.public-page .pager-post-navi,
body.public-page .comment-form-wrap {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(105, 164, 118, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 62, 45, 0.07);
}

body.public-page .related-entry-heading,
body.public-page .comment-title,
body.public-page .author-box-title {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-left: 5px solid #79bd87;
  border-radius: 0 8px 8px 0;
  background: #f3faf4;
  color: #4d7d55;
  font-size: 1.08rem;
  line-height: 1.45;
}

body.public-page .related-entry-card-wrap,
body.public-page .new-entry-card-link,
body.public-page .popular-entry-card-link {
  border-radius: 8px;
}

body.public-page .related-entry-card,
body.public-page .new-entry-card,
body.public-page .popular-entry-card {
  border-radius: 8px;
}

body.public-page .pager-post-navi {
  display: grid;
  gap: 10px;
}

body.public-page .pager-post-navi a {
  display: block;
  padding: 12px;
  border: 1px solid rgba(105, 164, 118, 0.14);
  border-radius: 8px;
  background: #fcfdfc;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.public-page .pager-post-navi a:hover {
  background: #f5fbf5;
  box-shadow: 0 8px 20px rgba(35, 62, 45, 0.08);
  transform: translateY(-1px);
}

body.public-page .author-box {
  margin-top: 34px;
  padding: 22px;
  border: 1px solid rgba(105, 164, 118, 0.18);
  border-radius: 8px;
  background: #f7fbf7;
  box-shadow: 0 8px 24px rgba(35, 62, 45, 0.06);
}

body.public-page .author-thumb img,
body.public-page .author-box .avatar {
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(35, 62, 45, 0.12);
}

body.public-page .author-name {
  color: #365c3d;
  font-weight: 800;
}

body.public-page .author-description {
  color: #4f5d52;
  font-size: 0.95rem;
  line-height: 1.85;
}

body.public-page .comment-form-wrap {
  color: #4f5d52;
}

body.public-page .comment-form-wrap input,
body.public-page .comment-form-wrap textarea {
  border-color: rgba(105, 164, 118, 0.28);
  border-radius: 8px;
}

body.public-page .comment-form-wrap input:focus,
body.public-page .comment-form-wrap textarea:focus {
  border-color: #79bd87;
  box-shadow: 0 0 0 3px rgba(121, 189, 135, 0.14);
  outline: none;
}

body.public-page .go-to-top-button {
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(35, 62, 45, 0.18);
}

body.public-page .mobile-footer-menu-buttons,
body.public-page .mobile-menu-buttons {
  border-top: 1px solid rgba(64, 115, 73, 0.24);
  background: rgba(137, 201, 151, 0.96);
  box-shadow: 0 -6px 18px rgba(35, 62, 45, 0.14);
}

body.public-page .mobile-footer-menu-buttons a,
body.public-page .mobile-menu-buttons a {
  font-weight: 700;
}

@media (max-width: 600px) {
  body.public-page .related-entries,
  body.public-page .pager-post-navi,
  body.public-page .comment-form-wrap,
  body.public-page .author-box {
    padding: 16px;
  }

  body.public-page .sns-share,
  body.public-page .sns-follow {
    padding: 16px 12px;
  }
}

/* Codex intro flow polish 2026-06-13 */
body.public-page .article-header .eye-catch-wrap {
  margin: 14px 0 22px;
}

body.public-page .article-header .eye-catch-wrap img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(35, 62, 45, 0.08);
}

body.public-page .article-header .sns-share.ss-top {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
  margin: 18px 0 14px;
  padding: 10px 12px;
  background: #fbfdfb;
}

body.public-page .article-header .sns-share.ss-top .sns-share-buttons {
  width: auto;
  min-height: 34px;
  gap: 8px;
  margin: 0;
}

body.public-page .article-header .sns-share.ss-top .sns-share-buttons a {
  width: 34px;
  height: 34px;
}

body.public-page .pr-label {
  margin: 12px 0 24px;
  padding: 10px 14px;
  border: 1px solid rgba(105, 164, 118, 0.26);
  border-radius: 8px;
  background: #fbfdfb;
  color: #667268;
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: center;
}

body.public-page .entry-content > .toc {
  width: 100%;
  max-width: 100%;
  padding: 18px 20px;
  border: 1px solid #d5e8dd;
  border-radius: 8px;
  background: #fbfefc;
  box-shadow: 0 8px 22px rgba(35, 62, 45, 0.06);
}

body.public-page .toc-title {
  color: #3f7448;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0;
}

body.public-page .toc-content {
  padding-top: 12px;
}

body.public-page .toc-list,
body.public-page .toc-list ol {
  line-height: 1.72;
}

body.public-page .toc-list li {
  margin: 0;
  padding: 0.18em 0;
}

body.public-page .toc-list a {
  color: #386640;
  text-decoration: none;
}

body.public-page .toc-list a:hover {
  color: #1f4f2b;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.public-page .eye-catch .cat-label,
body.public-page .eye-catch-wrap .cat-label {
  border-radius: 4px;
  background: rgba(49, 105, 72, 0.9);
  box-shadow: 0 2px 8px rgba(35, 62, 45, 0.16);
}

@media (max-width: 600px) {
  body.public-page .article-header .sns-share.ss-top {
    margin: 18px 0 12px;
    padding: 9px 10px;
  }

  body.public-page .pr-label {
    margin-bottom: 22px;
    padding: 10px 12px;
    font-size: 0.86rem;
  }

  body.public-page .entry-content > .toc {
    padding: 16px 14px;
  }

  body.public-page .toc-list {
    font-size: 0.94rem;
  }
}

/* Codex desktop layout polish 2026-06-13 */
@media screen and (min-width: 835px) {
  body.public-page .content-in {
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
  }

  body.public-page .main {
    flex: 0 0 860px;
  }

  body.public-page .sidebar {
    flex: 0 0 376px;
    margin-top: 0;
  }
}

@media screen and (min-width: 835px) and (max-width: 1255px) {
  body.public-page .content-in {
    justify-content: center;
  }

  body.public-page .main {
    flex-basis: min(860px, calc(100vw - 40px));
  }

  body.public-page .sidebar {
    flex-basis: min(376px, calc(100vw - 40px));
  }
}

/* Codex sidebar polish 2026-06-13 */
@media screen and (min-width: 835px) {
  body.public-page #sidebar.sidebar {
    padding: 0;
    border: 0;
    background: transparent;
  }
}

body.public-page #sidebar .widget {
  overflow: hidden;
  padding: 18px;
  border: 1px solid #dfe9e3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(35, 62, 45, 0.07);
}

body.public-page #sidebar .wp-block-heading,
body.public-page #sidebar .widget-title,
body.public-page #sidebar .wp-block-search__label {
  display: block;
  margin: -18px -18px 16px;
  padding: 11px 16px;
  border: 0;
  background: linear-gradient(90deg, #79bd87 0%, #8fcf9b 100%);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
}

body.public-page #sidebar .wp-block-search {
  margin-bottom: 0;
}

body.public-page #sidebar .wp-block-search__inside-wrapper {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

body.public-page #sidebar .wp-block-search__input,
body.public-page #sidebar input[type="search"] {
  min-width: 0;
  height: 46px;
  border: 1px solid #d8e6dd;
  border-radius: 8px;
  background: #fbfdfb;
  color: #2e3832;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 2px rgba(35, 62, 45, 0.04);
}

body.public-page #sidebar .wp-block-search__input:focus,
body.public-page #sidebar input[type="search"]:focus {
  border-color: #79bd87;
  box-shadow: 0 0 0 3px rgba(121, 189, 135, 0.14);
  outline: none;
}

body.public-page #sidebar .wp-block-search__button {
  min-width: 70px;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #2f3d34;
  color: #fff;
  font-weight: 800;
  transition: background 0.18s ease, transform 0.18s ease;
}

body.public-page #sidebar .wp-block-search__button:hover {
  background: #2f6348;
  transform: translateY(-1px);
}

body.public-page #sidebar ul,
body.public-page #sidebar ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

body.public-page #sidebar li {
  margin: 0;
}

body.public-page #sidebar li + li {
  border-top: 1px solid rgba(105, 164, 118, 0.13);
}

body.public-page #sidebar a,
body.public-page #sidebar .wp-block-latest-posts__post-title {
  display: block;
  padding: 10px 6px;
  border-radius: 6px;
  color: #2d6b50;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.65;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

body.public-page #sidebar a:hover,
body.public-page #sidebar .wp-block-latest-posts__post-title:hover {
  background: #f3faf4;
  color: #1f5639;
  transform: translateX(2px);
}

body.public-page #sidebar .wp-block-latest-comments,
body.public-page #sidebar .wp-block-archives-list,
body.public-page #sidebar .wp-block-categories-list,
body.public-page #sidebar .wp-block-latest-posts__list {
  margin-top: -2px;
}

body.public-page #sidebar .wp-block-latest-comments__comment {
  color: #5f6d62;
  font-size: 0.92rem;
  line-height: 1.75;
}

body.public-page #sidebar .wp-block-latest-comments__comment + .wp-block-latest-comments__comment {
  margin-top: 10px;
  padding-top: 10px;
}

@media screen and (max-width: 834px) {
  body.public-page #sidebar.sidebar {
    padding: 0 14px 22px;
    background: transparent;
  }

  body.public-page #sidebar .widget {
    padding: 16px;
  }

  body.public-page #sidebar .wp-block-heading,
  body.public-page #sidebar .widget-title,
  body.public-page #sidebar .wp-block-search__label {
    margin: -16px -16px 14px;
    padding: 10px 14px;
  }
}

/* Codex archive entry polish 2026-06-13 */
body.public-page .archive-title,
body.public-page .list-title,
body.public-page .search-title {
  margin: 0 0 22px;
  padding: 18px 20px;
  border-left: 6px solid #79bd87;
  border-radius: 8px;
  background: #f3faf4;
  color: #3f7448;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.45;
}

body.public-page .entry-card-wrap {
  border-color: #dfe9e3;
}

body.public-page .entry-card {
  align-items: center;
}

body.public-page .entry-card-thumb {
  overflow: hidden;
  border-radius: 8px;
  background: #eef5ef;
}

body.public-page .entry-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

body.public-page .entry-card-wrap:hover .entry-card-thumb img {
  transform: scale(1.035);
}

body.public-page .entry-card-content {
  min-width: 0;
}

body.public-page .entry-card-title {
  font-weight: 800;
  letter-spacing: 0;
}

body.public-page .entry-card-snippet {
  margin-top: 0.55em;
  color: #5d6a62;
}

body.public-page .entry-card-meta {
  margin-top: 0.5em;
  color: #6e7a72;
  font-size: 0.86rem;
}

body.public-page .entry-card .cat-label,
body.public-page .entry-card-thumb .cat-label {
  max-width: calc(100% - 14px);
  padding: 3px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(47, 99, 72, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.public-page .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

body.public-page .pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  border: 1px solid #d8e6dd;
  border-radius: 999px;
  background: #fff;
  color: #386640;
  font-weight: 800;
  line-height: 36px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(35, 62, 45, 0.05);
}

body.public-page .pagination .page-numbers.current {
  border-color: #79bd87;
  background: #79bd87;
  color: #fff;
}

body.public-page .pagination a.page-numbers:hover {
  background: #f3faf4;
  color: #1f5639;
}

@media screen and (max-width: 600px) {
  body.public-page .entry-card-wrap {
    margin-bottom: 18px;
    padding: 10px;
  }

  body.public-page .entry-card {
    gap: 12px;
  }

  body.public-page .entry-card-thumb {
    flex: 0 0 36%;
    max-width: 36%;
  }

  body.public-page .entry-card-title {
    font-size: 0.98rem;
    line-height: 1.52;
  }

  body.public-page .entry-card-snippet {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  body.public-page .entry-card-meta {
    font-size: 0.8rem;
  }
}

/* Codex longform reader support 2026-06-14 */
.article .entry-content h2.wp-block-heading,
.article .entry-content h3.wp-block-heading,
.article .entry-content h4.wp-block-heading {
  scroll-margin-top: 90px;
}

.article .entry-content h2.wp-block-heading + p,
.article .entry-content h3.wp-block-heading + p {
  margin-top: 0.25em;
}

.article .entry-content > p:not(.has-background),
.article .entry-content > ul:not(.toc-list),
.article .entry-content > ol,
.article .entry-content > dl,
.article .entry-content > .wp-block-buttons,
.article .entry-content > .wp-block-cocoon-blocks-faq,
.article .entry-content > .blank-box.block-box {
  max-width: 48em;
  margin-left: auto;
  margin-right: auto;
}

.article .entry-content > p:not(.has-background) {
  margin-bottom: 1.45em;
}

.article .entry-content > p + .wp-block-image,
.article .entry-content > p + figure.wp-block-image {
  margin-top: 2em;
}

.article .entry-content .wp-block-image {
  margin: 2.1em auto 2.45em;
}

.article .entry-content .wp-block-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  box-shadow: 0 8px 22px rgba(35, 62, 45, 0.07);
}

.article .entry-content .wp-block-image figcaption {
  max-width: 62em;
  margin: 0.65em auto 0;
}

.article .entry-content .wp-block-table {
  margin: 2em auto 2.2em;
}

.article .entry-content .toc {
  margin-top: 1.1em;
  margin-bottom: 2.5em;
}

.article .entry-content > .blank-box:has(+ .toc),
.article .entry-content > .blank-box.has-ex-a-background-color:has(+ .toc) {
  max-width: 44em;
  text-align: center;
}

.article .entry-content .blogcard-wrap {
  max-width: 48em;
  margin: 1.15em auto 1.45em;
}

.article .entry-content .blogcard-wrap + .blogcard-wrap {
  margin-top: 0.85em;
}

.article .entry-content p + .blogcard-wrap,
.article .entry-content .blogcard-wrap + p {
  margin-top: 1.15em;
}

.article .entry-content .wp-block-cocoon-blocks-faq.faq-wrap {
  margin-top: 1.2em;
  margin-bottom: 1.2em;
}

.article .entry-content .primary-box,
.article .entry-content .revenue-hub-final-links,
.article .entry-content .kumasaki-revenue-cta {
  max-width: 50em;
  margin-left: auto !important;
  margin-right: auto !important;
}

.article .entry-content .marker-under {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@media screen and (min-width: 835px) {
  .article .entry-content {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .article .entry-content h2.wp-block-heading,
  .article .entry-content h3.wp-block-heading,
  .article .entry-content h4.wp-block-heading,
  .article .entry-content h5.wp-block-heading,
  .article .entry-content h6.wp-block-heading {
    max-width: 48em;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 834px) {
  .article .entry-content > p:not(.has-background),
  .article .entry-content > ul:not(.toc-list),
  .article .entry-content > ol,
  .article .entry-content > dl,
  .article .entry-content > .wp-block-buttons,
  .article .entry-content > .wp-block-cocoon-blocks-faq,
  .article .entry-content > .blank-box.block-box,
  .article .entry-content .blogcard-wrap,
  .article .entry-content .primary-box,
  .article .entry-content .revenue-hub-final-links,
  .article .entry-content .kumasaki-revenue-cta {
    max-width: 100%;
  }

  .article .entry-content .wp-block-image {
    margin-top: 1.65em;
    margin-bottom: 2em;
  }

  .article .entry-content .wp-block-image img {
    box-shadow: 0 6px 18px rgba(35, 62, 45, 0.06);
  }
}