@charset "UTF-8";

:root {
  --onux-ink: #333330;
  --onux-paper: #f7f4ed;
  --onux-surface: #fbfaf7;
  --onux-muted: #6b6860;
  --onux-line: #d8d3c9;
  --onux-yellow: #ffc400;
  --onux-blue: #0759da;
  --onux-orange: #f05b31;
  --onux-wide: 1440px;
  --onux-standard: 1180px;
  --onux-reading: 760px;
  --onux-gutter: 32px;
  --onux-font: Inter, "Noto Sans JP", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.onux-home,
body.onux-archive-page,
body.onux-standard-page {
  margin: 0;
  color: var(--onux-ink);
  background: var(--onux-paper);
  font-family: var(--onux-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .01em;
  overflow-x: hidden;
}

.onux-home *,
.onux-archive-page *,
.onux-standard-page *,
.onux-home *::before,
.onux-archive-page *::before,
.onux-standard-page *::before,
.onux-home *::after,
.onux-archive-page *::after,
.onux-standard-page *::after {
  box-sizing: border-box;
}

.onux-home a,
.onux-archive-page a,
.onux-standard-page .onux-site-header-wrap a,
.onux-standard-page .onux-site-footer-wrap a {
  color: inherit;
  text-decoration: none;
}

.onux-site-shell {
  width: min(calc(100% - (var(--onux-gutter) * 2)), var(--onux-wide));
  margin-inline: auto;
}

.onux-site-header-wrap,
.onux-site-footer-wrap {
  width: 100%;
  color: var(--onux-ink);
  background: var(--onux-paper);
}

.onux-site-header-wrap {
  position: relative;
  z-index: 100;
}

.onux-header {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--onux-line);
}

.onux-brand {
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 1;
}

.onux-logo {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  transform: none;
}

.onux-desktop-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.onux-desktop-nav a,
.onux-footer-nav a {
  position: relative;
  white-space: nowrap;
}

.onux-desktop-nav a::after,
.onux-footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--onux-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.onux-desktop-nav a:hover::after,
.onux-desktop-nav a:focus-visible::after,
.onux-desktop-nav a[aria-current="page"]::after,
.onux-footer-nav a:hover::after,
.onux-footer-nav a:focus-visible::after {
  transform: scaleX(1);
}

.onux-menu-button,
.onux-mobile-nav {
  display: none;
}

.onux-footer {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid var(--onux-line);
}

.onux-footer-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

/* Cocoon標準ページを1NUXの共通シェルへ揃える。 */
body.onux-standard-page #header-container,
body.onux-standard-page #navi,
body.onux-standard-page #footer {
  display: none !important;
}

body.onux-standard-page #container,
body.onux-standard-page #content,
body.onux-standard-page #content-in,
body.onux-standard-page #main,
body.onux-standard-page #sidebar {
  font-family: var(--onux-font);
}

body.onux-standard-page #content {
  margin-top: 0;
  padding-block: 64px 96px;
}

body.onux-standard-page #content-in {
  width: min(calc(100% - (var(--onux-gutter) * 2)), var(--onux-standard));
  margin-inline: auto;
  gap: 32px;
}

body.onux-standard-page #main,
body.onux-standard-page #sidebar {
  background: var(--onux-surface);
  border: 1px solid var(--onux-line);
  border-radius: 8px;
  box-shadow: none;
}

body.onux-standard-page #main {
  padding: 48px;
}

body.onux-standard-page .article,
body.onux-standard-page .entry-content {
  color: var(--onux-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

body.onux-standard-page .entry-title,
body.onux-standard-page .article h1 {
  margin-block: 0 32px;
  color: var(--onux-ink);
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.025em;
}

body.onux-standard-page .article h2,
body.onux-standard-page .article h3,
body.onux-standard-page .article h4 {
  color: var(--onux-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  letter-spacing: -.015em;
}

body.onux-standard-page .article h2 {
  margin-block: 64px 24px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--onux-line);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
}

body.onux-standard-page .article h3 {
  margin-block: 48px 16px;
  padding: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

body.onux-standard-page .article h4 {
  margin-block: 32px 16px;
  padding: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

body.onux-standard-page .entry-content p,
body.onux-standard-page .entry-content ul,
body.onux-standard-page .entry-content ol,
body.onux-standard-page .entry-content blockquote {
  margin-block: 0 24px;
}

body.onux-standard-page .entry-content a {
  color: var(--onux-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

body.onux-standard-page.single .article-header,
body.onux-standard-page.single .entry-content,
body.onux-standard-page.single .article-footer,
body.onux-standard-page.page .article-header,
body.onux-standard-page.page .entry-content,
body.onux-standard-page.page .article-footer {
  max-width: var(--onux-reading);
  margin-inline: auto;
}

body.onux-standard-page .list-title {
  margin: 0 0 32px;
  color: var(--onux-ink);
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.025em;
}

body.onux-standard-page .entry-card-wrap,
body.onux-standard-page .related-entry-card-wrap {
  margin: 0;
  padding: 24px 0;
  color: var(--onux-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--onux-line);
  border-radius: 0;
  box-shadow: none;
}

body.onux-standard-page .entry-card-wrap:first-of-type {
  border-top: 1px solid var(--onux-line);
}

body.onux-standard-page .entry-card-title,
body.onux-standard-page .related-entry-card-title {
  color: var(--onux-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

body.onux-standard-page .entry-card-snippet,
body.onux-standard-page .related-entry-card-snippet {
  color: var(--onux-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

body.onux-standard-page .entry-card-wrap:hover .entry-card-title,
body.onux-standard-page .entry-card-wrap:focus-within .entry-card-title {
  color: var(--onux-blue);
}

body.onux-standard-page .pagination-next-link,
body.onux-standard-page .page-numbers {
  color: var(--onux-ink);
  background: transparent;
  border: 1px solid var(--onux-line);
  border-radius: 999px;
  font-weight: 500;
}

body.onux-standard-page .page-numbers.current,
body.onux-standard-page .pagination-next-link:hover,
body.onux-standard-page .page-numbers:hover {
  color: var(--onux-ink);
  background: var(--onux-yellow);
  border-color: var(--onux-yellow);
}

body.onux-standard-page .entry-content blockquote {
  padding: 8px 0 8px 24px;
  color: var(--onux-muted);
  background: transparent;
  border: 0;
  border-left: 3px solid var(--onux-yellow);
}

body.onux-standard-page .entry-content blockquote::before,
body.onux-standard-page .entry-content blockquote::after {
  content: none !important;
  display: none !important;
}

body.onux-standard-page .entry-content table {
  width: 100%;
  margin-block: 0 32px;
  border-collapse: collapse;
  border: 1px solid var(--onux-line);
  font-size: 14px;
  line-height: 1.6;
}

body.onux-standard-page .entry-content table th,
body.onux-standard-page .entry-content table td {
  padding: 12px 14px;
  color: var(--onux-ink);
  background: transparent;
  border: 1px solid var(--onux-line);
}

body.onux-standard-page .entry-content table th {
  background: #f0ede5;
  font-weight: 600;
  text-align: left;
}

body.onux-standard-page .entry-content table tr:nth-child(even) td {
  background: #faf8f3;
}

body.onux-standard-page .article .toc {
  margin-block: 32px 48px;
  padding: 24px;
  color: var(--onux-ink);
  background: transparent;
  border: 1px solid var(--onux-line);
  border-radius: 6px;
  box-shadow: none;
}

body.onux-standard-page .article .toc-title {
  margin-bottom: 12px;
  color: var(--onux-ink);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

body.onux-standard-page .article .toc a {
  color: var(--onux-ink);
  font-weight: 400;
  text-decoration: none;
}

body.onux-standard-page .article .toc a:hover,
body.onux-standard-page .article .toc a:focus-visible {
  color: var(--onux-blue);
}

body.onux-standard-page .article .toc-list,
body.onux-standard-page .article .toc-list ul {
  margin-bottom: 0;
}

body.onux-standard-page .post-date,
body.onux-standard-page .post-update,
body.onux-standard-page .date-tags,
body.onux-standard-page .breadcrumb,
body.onux-standard-page .entry-card-meta,
body.onux-standard-page .related-entry-card-meta {
  color: var(--onux-muted);
  font-size: 12px;
  font-weight: 400;
}

body.onux-standard-page .sidebar h2,
body.onux-standard-page .sidebar h3,
body.onux-standard-page .widget-title {
  margin: 0 0 16px;
  padding: 0 0 10px;
  color: var(--onux-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--onux-line);
  border-radius: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

body.onux-standard-page .sidebar a {
  color: var(--onux-ink);
  font-weight: 400;
}

body.onux-standard-page .sidebar a:hover,
body.onux-standard-page .sidebar a:focus-visible {
  color: var(--onux-blue);
}

body.onux-standard-page .sns-share-message,
body.onux-standard-page .sns-follow-message {
  color: var(--onux-muted);
  font-size: 13px;
  font-weight: 400;
}

body.onux-standard-page .onux-site-footer-wrap {
  margin-top: 0;
}

@media (max-width: 1024px) {
  :root {
    --onux-gutter: 24px;
  }

  .onux-desktop-nav {
    gap: 20px;
    font-size: 13px;
  }

  body.onux-standard-page #content {
    padding-block: 48px 64px;
  }

  body.onux-standard-page #main {
    padding: 40px;
  }
}

@media (max-width: 834px) {
  .onux-header {
    position: relative;
    min-height: 48px;
  }

  .onux-logo {
    font-size: 26px;
  }

  .onux-desktop-nav {
    display: none;
  }

  .onux-menu-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    margin-right: -10px;
    padding: 0;
    color: var(--onux-ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    appearance: none;
    cursor: pointer;
  }

  .onux-menu-button span {
    width: 21px;
    height: 2px;
    display: block;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
  }

  .onux-menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .onux-menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .onux-menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .onux-mobile-nav:not([hidden]) {
    display: grid;
    position: relative;
    z-index: 90;
    padding: 8px 0 16px;
    background: var(--onux-paper);
    border-bottom: 1px solid var(--onux-line);
  }

  .onux-mobile-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--onux-line);
    font-size: 14px;
    font-weight: 500;
  }

  .onux-mobile-nav a:last-child {
    border-bottom: 0;
  }

  body.onux-standard-page #content-in {
    display: block;
  }

  body.onux-standard-page #sidebar {
    margin-top: 32px;
  }
}

@media (max-width: 600px) {
  :root {
    --onux-gutter: 16px;
  }

  .onux-footer {
    min-height: 0;
    padding-block: 12px;
    justify-content: center;
  }

  .onux-footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    text-align: center;
  }

  body.onux-standard-page #content {
    padding-block: 32px 48px;
  }

  body.onux-standard-page #main {
    padding: 32px 20px;
    border-radius: 6px;
  }

  body.onux-standard-page .entry-title,
  body.onux-standard-page .article h1 {
    margin-bottom: 24px;
    font-size: 32px;
  }

  body.onux-standard-page.single .entry-title {
    font-size: clamp(24px, 6vw, 28px);
    line-height: 1.35;
    letter-spacing: -.02em;
  }

  body.onux-standard-page .article h2 {
    margin-top: 48px;
    font-size: 24px;
  }

  body.onux-standard-page .article h3 {
    margin-top: 32px;
    font-size: 19px;
  }

  body.onux-standard-page .entry-content table {
    font-size: 12px;
  }

  body.onux-standard-page .entry-content table th,
  body.onux-standard-page .entry-content table td {
    padding: 9px 8px;
  }

  body.onux-standard-page .article .toc {
    margin-block: 24px 40px;
    padding: 20px 16px;
  }
}

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

  .onux-menu-button span,
  .onux-desktop-nav a::after,
  .onux-footer-nav a::after {
    transition: none;
  }
}
