:root {
  --fjn-ink: #17211d;
  --fjn-muted: #5d6863;
  --fjn-line: #d8dedb;
  --fjn-line-strong: #b7c0bb;
  --fjn-surface: #f7f9f8;
  --fjn-surface-soft: #f1f6f3;
  --fjn-green: #0b6d3d;
  --fjn-green-dark: #07562f;
  --fjn-green-pale: #eaf5ef;
  --fjn-blue: #1767b8;
  --fjn-blue-pale: #eaf3fc;
  --fjn-cyan: #087f8f;
  --fjn-red: #c24132;
  --fjn-amber: #9b6a0b;
  --fjn-radius: 6px;
  --fjn-header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--fjn-header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--fjn-ink);
  background: #fff;
  font-family: "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: var(--fjn-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #0d4f8c;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 103, 184, 0.3);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--fjn-green-dark);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.page-container {
  width: min(calc(100% - 80px), 1360px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--fjn-line);
  background: rgba(255, 255, 255, 0.97);
}

.header-inner {
  width: min(calc(100% - 48px), 1400px);
  min-height: var(--fjn-header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 54px;
}

.site-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0b5131;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand:hover {
  color: var(--fjn-green-dark);
}

.site-brand-mark,
.site-brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid currentColor;
  border-radius: 5px;
  background: #fff;
}

.site-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-brand-mark .dashicons {
  width: 25px;
  height: 25px;
  font-size: 25px;
}

.primary-navigation {
  align-self: stretch;
}

.primary-navigation .menu,
.footer-navs .menu {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 34px;
  list-style: none;
}

.primary-navigation .menu {
  height: 100%;
}

.primary-navigation li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.primary-navigation a {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--fjn-ink);
  font-weight: 700;
  text-decoration: none;
}

.primary-navigation a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--fjn-green);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after,
.primary-navigation .current-menu-item > a::after,
.primary-navigation .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search-button {
  width: 280px;
  min-height: 44px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fjn-muted);
  border: 1px solid var(--fjn-line-strong);
  border-radius: var(--fjn-radius);
  background: #fff;
  cursor: pointer;
}

.header-search-button:hover {
  color: var(--fjn-ink);
  border-color: var(--fjn-green);
}

.menu-toggle,
.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.menu-toggle:hover,
.icon-button:hover {
  background: var(--fjn-surface);
}

.search-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 96px 24px 24px;
  background: rgba(23, 33, 29, 0.58);
}

.search-overlay[hidden] {
  display: none;
}

.search-dialog {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--fjn-line);
  border-radius: var(--fjn-radius);
  background: #fff;
  box-shadow: 0 20px 50px rgba(23, 33, 29, 0.18);
}

.search-dialog-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.search-dialog-heading small,
.eyebrow,
.card-copy small,
.post-meta,
.count-label {
  color: var(--fjn-green-dark);
  font-size: 13px;
  font-weight: 800;
}

.search-dialog-heading h2 {
  margin: 2px 0 0;
  font-size: 23px;
}

.site-search-form,
.search-page-form {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-left: 15px;
  border: 1px solid var(--fjn-line-strong);
  border-radius: var(--fjn-radius);
  background: #fff;
}

.site-search-form input,
.search-page-form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-dialog-note {
  margin: 12px 0 0;
  color: var(--fjn-muted);
  font-size: 14px;
}

.primary-button,
.secondary-button,
.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  padding: 0 22px;
  color: #fff;
  border: 1px solid var(--fjn-green);
  background: var(--fjn-green);
}

.primary-button:hover {
  color: #fff;
  border-color: var(--fjn-green-dark);
  background: var(--fjn-green-dark);
}

.secondary-button {
  padding: 0 18px;
  color: var(--fjn-green-dark);
  border: 1px solid #98b2a4;
  background: #fff;
}

.text-link {
  min-height: 36px;
  color: var(--fjn-blue);
}

.text-link .dashicons {
  font-size: 18px;
}

.breadcrumbs {
  padding-top: 22px;
}

.breadcrumbs ol {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--fjn-muted);
  font-size: 13px;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--fjn-line-strong);
}

.breadcrumbs a {
  color: var(--fjn-muted);
}

.home-intro,
.page-heading,
.guide-header {
  padding-top: 34px;
}

.home-intro {
  max-width: 840px;
}

.home-intro h1,
.page-heading h1,
.guide-header h1 {
  margin: 0;
  color: #131d1a;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.38;
}

.home-intro > p:last-child,
.page-heading > p:last-child {
  max-width: 820px;
  margin: 10px 0 22px;
  color: var(--fjn-muted);
  line-height: 1.85;
}

.eyebrow {
  margin: 0 0 6px;
  text-decoration: none;
}

.content-section {
  padding: 72px 0 8px;
}

.compact-section {
  padding-top: 56px;
}

.section-band {
  position: relative;
}

.section-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 42px;
  right: calc(50% - 50vw);
  bottom: -26px;
  left: calc(50% - 50vw);
  border-block: 1px solid #e6ebe8;
  background: var(--fjn-surface);
}

.section-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.4;
}

.tool-grid,
.guide-grid,
.topic-grid,
.search-results {
  display: grid;
  gap: 16px;
}

.tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card,
.guide-card,
.topic-card,
.search-result-card {
  min-width: 0;
  border: 1px solid var(--fjn-line);
  border-radius: var(--fjn-radius);
  background: #fff;
}

.card-main-link {
  height: 100%;
  min-width: 0;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--fjn-ink);
  text-decoration: none;
}

.card-main-link:hover {
  color: var(--fjn-ink);
  border-color: var(--fjn-green);
  background: #fbfdfc;
}

.tool-card:hover,
.guide-card:hover,
.topic-card:hover,
.search-result-card:hover {
  border-color: #8ba99a;
}

.card-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 5px;
}

.card-icon .dashicons {
  width: 25px;
  height: 25px;
  font-size: 25px;
}

.card-icon-green {
  color: var(--fjn-green);
  background: var(--fjn-green-pale);
}

.card-icon-blue {
  color: var(--fjn-blue);
  background: var(--fjn-blue-pale);
}

.card-copy {
  min-width: 0;
  flex: 1;
}

.card-copy h2 {
  margin: 2px 0 8px;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.5;
}

.card-copy p {
  margin: 0;
  color: var(--fjn-muted);
  font-size: 14px;
  line-height: 1.75;
}

.card-copy time {
  display: block;
  margin-top: 12px;
  color: var(--fjn-muted);
  font-size: 12px;
}

.card-arrow {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 12px;
  color: var(--fjn-green);
  font-size: 20px;
}

.archive-page,
.topic-page,
.search-page,
.standard-page,
.guide-page,
.tool-page {
  padding-bottom: 88px;
}

.archive-grid,
.search-results {
  margin-top: 30px;
}

.search-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-page-form {
  max-width: 760px;
  margin-top: 24px;
}

.empty-state,
.dependency-notice {
  margin-top: 30px;
  padding: 38px 28px;
  text-align: center;
  border: 1px solid var(--fjn-line);
  border-radius: var(--fjn-radius);
  background: var(--fjn-surface);
}

.empty-state > .dashicons {
  width: 30px;
  height: 30px;
  color: var(--fjn-green);
  font-size: 30px;
}

.empty-state h1,
.empty-state h2,
.dependency-notice h2 {
  margin: 10px 0 6px;
  font-size: 23px;
}

.empty-state p,
.dependency-notice p {
  margin: 0;
  color: var(--fjn-muted);
}

.empty-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.error-page {
  padding: 72px 0 110px;
}

.error-code {
  color: var(--fjn-green) !important;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.navigation.pagination {
  margin-top: 36px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links .page-numbers {
  min-width: 42px;
  min-height: 42px;
  padding: 7px 12px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--fjn-line);
  border-radius: 4px;
  text-decoration: none;
}

.nav-links .current {
  color: #fff;
  border-color: var(--fjn-green);
  background: var(--fjn-green);
}

.guide-header {
  max-width: 1020px;
}

.guide-header h1 {
  max-width: 980px;
}

.post-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--fjn-muted);
  font-weight: 600;
}

.post-meta a {
  color: var(--fjn-green-dark);
}

.article-tool-cta {
  margin-top: 32px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid #a8c4b5;
  border-radius: var(--fjn-radius);
  background: var(--fjn-green-pale);
}

.article-tool-cta h2 {
  margin: 1px 0 3px;
  font-size: 19px;
}

.article-tool-cta p {
  margin: 0;
  color: var(--fjn-muted);
  font-size: 14px;
}

.article-layout {
  margin-top: 38px;
  display: grid;
  grid-template-columns: minmax(0, 850px) minmax(240px, 300px);
  justify-content: space-between;
  gap: 58px;
  align-items: start;
}

.guide-sidebar {
  position: sticky;
  top: calc(var(--fjn-header-height) + 24px);
  min-width: 0;
}

.article-toc,
.sidebar-widget {
  padding: 18px;
  border: 1px solid var(--fjn-line);
  border-radius: var(--fjn-radius);
  background: var(--fjn-surface);
}

.article-toc h2,
.sidebar-widget-title {
  margin: 0 0 12px;
  font-size: 17px;
}

.article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc li + li {
  border-top: 1px solid var(--fjn-line);
}

.article-toc li.is-subheading a {
  padding-left: 14px;
  font-size: 13px;
}

.article-toc a {
  padding: 9px 0;
  display: block;
  color: var(--fjn-muted);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
}

.article-toc a:hover,
.article-toc a.is-current {
  color: var(--fjn-green-dark);
}

.sidebar-widget + .sidebar-widget,
.article-toc + .sidebar-widget {
  margin-top: 16px;
}

.entry-content {
  min-width: 0;
  color: #26322d;
  line-height: 1.9;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
  scroll-margin-top: calc(var(--fjn-header-height) + 28px);
  color: #111c17;
  line-height: 1.5;
}

.entry-content h2 {
  margin: 46px 0 16px;
  padding: 0 0 10px;
  border-bottom: 2px solid #a9c7b7;
  font-size: 25px;
}

.entry-content h3 {
  margin: 32px 0 12px;
  font-size: 20px;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content table,
.entry-content figure,
.entry-content blockquote {
  margin-top: 0;
  margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.45em;
}

.entry-content li + li {
  margin-top: 7px;
}

.entry-content code {
  padding: 2px 5px;
  border-radius: 3px;
  background: #eef2f0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
}

.entry-content blockquote {
  padding: 14px 18px;
  border-left: 4px solid var(--fjn-blue);
  background: var(--fjn-blue-pale);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  overflow-wrap: anywhere;
}

.entry-content th,
.entry-content td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--fjn-line);
}

.entry-content th {
  background: var(--fjn-surface);
}

.tool-explanation,
.page-content {
  max-width: 900px;
  margin-top: 44px;
}

.site-footer {
  margin-top: 70px;
  color: #dce6e1;
  background: #17211d;
}

.footer-inner {
  width: min(calc(100% - 80px), 1360px);
  margin-inline: auto;
  padding: 46px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.site-footer .site-brand {
  color: #fff;
}

.site-footer .site-brand-mark {
  color: #cde9d9;
  background: transparent;
}

.footer-brand-wrap > p {
  max-width: 520px;
  margin: 14px 0 0;
  color: #aebbb4;
  font-size: 14px;
}

.footer-navs {
  display: grid;
  gap: 14px;
}

.footer-navs .menu {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer-navs a {
  color: #dce6e1;
  font-size: 14px;
}

.footer-bottom {
  width: min(calc(100% - 80px), 1360px);
  min-height: 58px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #93a19a;
  border-top: 1px solid #33413a;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .header-inner {
    gap: 28px;
  }

  .primary-navigation .menu {
    gap: 22px;
  }

  .header-search-button {
    width: 230px;
  }

  .tool-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 34px;
  }
}

@media (max-width: 860px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .page-container,
  .footer-inner,
  .footer-bottom {
    width: min(calc(100% - 40px), 760px);
  }

  .header-inner {
    width: calc(100% - 32px);
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    border-bottom: 1px solid var(--fjn-line);
    background: #fff;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation .menu {
    width: calc(100% - 40px);
    height: auto;
    margin: 0 auto;
    padding: 8px 0 16px;
    display: grid;
    gap: 0;
  }

  .primary-navigation li {
    display: block;
    border-bottom: 1px solid var(--fjn-line);
  }

  .primary-navigation a {
    min-height: 48px;
  }

  .primary-navigation a::after {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .header-search-button {
    width: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .header-search-button span:not(.dashicons) {
    display: none;
  }

  .article-layout {
    display: block;
  }

  .guide-sidebar {
    position: static;
    margin-top: 36px;
  }

  .article-toc {
    background: #fff;
  }

  .footer-inner {
    display: grid;
    gap: 32px;
  }

  .footer-navs .menu {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  :root {
    --fjn-header-height: 66px;
  }

  .page-container,
  .footer-inner,
  .footer-bottom {
    width: calc(100% - 28px);
  }

  .site-brand {
    gap: 9px;
    font-size: 18px;
  }

  .site-brand-mark,
  .site-brand-logo {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .header-actions {
    gap: 2px;
  }

  .header-search-button,
  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .home-intro,
  .page-heading,
  .guide-header {
    padding-top: 26px;
  }

  .home-intro h1,
  .page-heading h1,
  .guide-header h1 {
    font-size: 29px;
  }

  .section-heading h2 {
    font-size: 23px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .content-section {
    padding-top: 54px;
  }

  .tool-grid,
  .guide-grid,
  .topic-grid,
  .two-columns,
  .search-results {
    grid-template-columns: 1fr;
  }

  .card-main-link {
    padding: 18px;
  }

  .article-tool-cta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .article-tool-cta .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .entry-content h2 {
    font-size: 22px;
  }

  .entry-content table {
    display: block;
    overflow-x: auto;
  }

  .search-overlay {
    padding: 76px 10px 10px;
  }

  .search-dialog {
    padding: 18px;
  }

  .site-search-form,
  .search-page-form {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 8px 10px 8px 14px;
  }

  .site-search-form .primary-button,
  .search-page-form .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .footer-bottom {
    padding: 16px 0;
    display: grid;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .search-overlay,
  .guide-sidebar,
  .article-tool-cta {
    display: none !important;
  }

  .page-container {
    width: 100%;
  }
}
