:root {
  --js-ink: #112b31;
  --js-muted: #60757a;
  --js-line: #dce8e7;
  --js-paper: #fffefa;
  --js-white: #ffffff;
  --js-mint: #0f9f8f;
  --js-mint-dark: #08766b;
  --js-mint-soft: #e7f7f3;
  --js-yellow: #ffd84d;
  --js-navy: #133a48;
  --js-navy-deep: #112f39;
  --js-shadow: 0 18px 50px rgba(19, 58, 72, 0.1);
  --js-content: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--js-paper);
  color: var(--js-ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
[type="button"],
[type="submit"] {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #f2b705;
  outline-offset: 3px;
}

::selection {
  background: var(--js-yellow);
  color: #392d00;
}

.js-skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 100000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--js-navy-deep);
  color: var(--js-white);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
}

.js-skip-link:focus {
  transform: translateY(0);
}

.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 {
  top: 5px;
  left: 5px;
  z-index: 100000;
  display: block;
  width: auto;
  height: auto;
  padding: 15px 23px 14px;
  clip: auto !important;
  background: var(--js-white);
  color: var(--js-navy);
  font-size: 14px;
  font-weight: 800;
}

.js-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  border-bottom: 1px solid rgba(17, 43, 49, 0.08);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.js-site-header__inner {
  width: min(100%, 1440px);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.js-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #17324d;
  line-height: 1;
  text-decoration: none;
}

.js-brand__mark {
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
}

.js-brand__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.js-brand__name {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.js-brand__name strong {
  font-weight: 760;
}

.js-brand__name b {
  margin-left: 0.48em;
  padding-left: 0.55em;
  border-left: 1px solid #b8cdcf;
  color: var(--js-mint-dark);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.js-brand small {
  margin-top: 7px;
  color: var(--js-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1;
}

.js-brand--light {
  color: var(--js-white);
}

.js-brand--light .js-brand__name b {
  border-left-color: rgba(255, 255, 255, 0.34);
  color: #69ddcd;
}

.js-brand--light small {
  color: #a9c0c5;
}

.js-primary-nav {
  margin-left: auto;
}

.js-primary-nav__list,
.js-footer-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.js-primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 32px);
}

.js-primary-nav a {
  color: #365158;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.js-primary-nav a:hover,
.js-primary-nav .current-menu-item > a {
  color: var(--js-mint-dark);
}

.js-header-cta {
  flex: 0 0 auto;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--js-navy);
  box-shadow: 0 6px 16px rgba(19, 58, 72, 0.18);
  color: var(--js-white);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
  text-decoration: none;
}

.js-header-cta:hover {
  background: #0d303d;
}

.js-header-cta__short {
  display: none;
}

.js-site-footer {
  padding: 44px clamp(20px, 7vw, 100px) 34px;
  background: var(--js-navy-deep);
  color: var(--js-white);
}

.js-site-footer__inner {
  width: min(100%, var(--js-content));
  margin: 0 auto;
}

.js-site-footer__disclosure {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 40px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.js-site-footer__disclosure strong {
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.js-site-footer__disclosure p {
  margin: 0;
  color: #c5d5d9;
  font-size: 11px;
  line-height: 1.8;
}

.js-site-footer__disclosure a {
  color: #78d9ca;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.js-site-footer__top {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(400px, 1.1fr);
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}

.js-site-footer__about > p {
  max-width: 460px;
  margin: 20px 0 8px;
  color: #c5d5d9;
  font-size: 12px;
  line-height: 1.9;
}

.js-site-footer__about > span {
  color: #93aeb4;
  font-size: 10px;
}

.js-footer-nav__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
}

.js-footer-nav a {
  color: #d6e2e4;
  font-size: 11px;
  text-decoration: none;
}

.js-footer-nav a:hover {
  color: #78d9ca;
}

.js-site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8fa8ae;
  font-size: 9px;
}

.js-default-main,
.js-error-page {
  min-height: 58vh;
  padding: clamp(64px, 8vw, 105px) clamp(20px, 7vw, 100px);
}

.js-default-main__inner,
.js-error-page__inner {
  width: min(100%, 900px);
  margin: 0 auto;
}

.js-page-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.js-page-heading > span,
.js-entry-card__type,
.js-empty-state > span {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--js-mint-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.js-page-heading h1,
.js-error-page h1,
.js-empty-state h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.js-page-heading__description {
  margin-top: 16px;
  color: var(--js-muted);
}

.js-entry-list {
  display: grid;
  gap: 18px;
}

.js-entry-card,
.js-single-entry {
  border: 1px solid var(--js-line);
  border-radius: 20px;
  background: var(--js-white);
}

.js-entry-card {
  padding: clamp(22px, 4vw, 34px);
}

.js-entry-card h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.45;
}

.js-entry-card h2 a {
  text-decoration: none;
}

.js-entry-card__excerpt {
  color: var(--js-muted);
  font-size: 14px;
}

.js-entry-card__excerpt > :first-child {
  margin-top: 0;
}

.js-entry-card__excerpt > :last-child {
  margin-bottom: 0;
}

.js-text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 15px;
  color: var(--js-mint-dark);
  font-size: 13px;
  font-weight: 850;
}

.js-single-entry {
  padding: clamp(24px, 5vw, 54px);
}

.js-entry-content {
  color: #365158;
}

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

.js-entry-content > :last-child {
  margin-bottom: 0;
}

.js-entry-content h2,
.js-entry-content h3,
.js-entry-content h4 {
  color: var(--js-ink);
  line-height: 1.45;
}

.js-entry-content h2 {
  margin: 2.2em 0 0.75em;
  font-size: clamp(24px, 3.6vw, 34px);
}

.js-entry-content h3 {
  margin: 1.9em 0 0.65em;
  font-size: clamp(19px, 2.6vw, 24px);
}

.js-entry-content a {
  color: var(--js-mint-dark);
  font-weight: 700;
}

.js-entry-content table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}

.js-entry-content th,
.js-entry-content td {
  padding: 13px 14px;
  border: 1px solid var(--js-line);
  text-align: left;
  vertical-align: top;
}

.js-entry-content th {
  background: var(--js-mint-soft);
}

.js-primary-button,
.js-secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 850;
  line-height: 1.5;
  text-decoration: none;
}

.js-primary-button {
  background: var(--js-mint);
  box-shadow: 0 9px 20px rgba(15, 159, 143, 0.2);
  color: var(--js-white);
}

.js-secondary-button {
  border-color: var(--js-line);
  background: var(--js-white);
  color: var(--js-navy);
}

.js-empty-state,
.js-error-page__inner {
  text-align: center;
}

.js-empty-state > p,
.js-error-page__inner > p:not(.js-error-page__code) {
  max-width: 650px;
  margin: 20px auto 28px;
  color: var(--js-muted);
}

.js-error-page__code {
  margin: 0 0 10px;
  color: var(--js-mint-dark);
  font-size: clamp(54px, 10vw, 90px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.js-error-page__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.js-error-page__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 40px auto 0;
}

.js-error-page__links a {
  padding: 14px 16px;
  border: 1px solid var(--js-line);
  border-radius: 10px;
  background: var(--js-white);
  color: #405b60;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.nav-links .page-numbers {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 7px;
  border: 1px solid var(--js-line);
  border-radius: 9px;
  background: var(--js-white);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links .current {
  border-color: var(--js-mint);
  background: var(--js-mint);
  color: var(--js-white);
}

.alignwide {
  width: min(1100px, calc(100vw - 40px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 1020px) {
  .js-primary-nav {
    display: none;
  }

  .js-site-header__inner {
    gap: 16px;
  }
}

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

@media (max-width: 640px) {
  .js-site-header,
  .js-site-header__inner {
    min-height: 64px;
  }

  .js-site-header__inner {
    padding: 0 15px;
  }

  .js-brand__name {
    font-size: 16px;
  }

  .js-brand {
    gap: 7px;
  }

  .js-brand__mark {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .js-brand__name b {
    margin-left: 0.38em;
    padding-left: 0.45em;
  }

  .js-brand small {
    display: none;
  }

  .js-header-cta {
    padding: 10px 14px;
    font-size: 12px;
  }

  .js-header-cta__full {
    display: none;
  }

  .js-header-cta__short {
    display: inline;
  }

  .js-site-footer {
    padding: 36px 20px 28px;
  }

  .js-site-footer__disclosure {
    grid-template-columns: 1fr;
    gap: 7px;
    align-items: start;
    margin-bottom: 34px;
  }

  .js-site-footer__disclosure strong {
    justify-self: start;
  }

  .js-site-footer__top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .js-footer-nav__list {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .js-site-footer__bottom {
    flex-direction: column;
    gap: 6px;
  }

  .js-default-main,
  .js-error-page {
    padding: 58px 16px 70px;
  }

  .js-single-entry {
    border-radius: 16px;
  }

  .js-error-page__actions,
  .js-error-page__links {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .js-primary-button,
  .js-secondary-button {
    width: 100%;
  }

  .js-entry-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

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

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