/*
Theme Name: AIYSS Articles
Theme URI: https://aiyss.org/articles/
Author: AIYSS
Description: AIYSS公式サイトと同じヘッダー、フッター、配色、タイポグラフィを使用する活動報告記事用テーマです。
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: aiyss
*/

:root {
  --ink: #14283d;
  --ink-soft: #435f76;
  --paper: #ffffff;
  --paper-blue: #f1f7f9;
  --line: #d9e3e8;
  --accent: #0b858a;
  --accent-light: #dff1f2;
  --white: #ffffff;
  --max: 1120px;
  --sans: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}

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

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
dl,
dd,
dt,
figure {
  margin-top: 0;
}

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

button {
  cursor: pointer;
}

::selection {
  color: var(--white);
  background: var(--accent);
}

:focus-visible {
  outline: 3px solid rgba(11, 133, 138, 0.42);
  outline-offset: 4px;
}

.content-width {
  width: min(calc(100% - 80px), var(--max));
  margin-inline: auto;
}

.screen-reader-text,
.sr-only {
  position: absolute;
  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 {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

/* Header: mirrors the React site. */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.2s ease;
}

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

.site-header.is-scrolled {
  box-shadow: 0 6px 22px rgba(20, 40, 61, 0.06);
}

.header-inner {
  width: min(calc(100% - 80px), 1280px);
  min-height: 84px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex-shrink: 1;
}

.brand-logo {
  display: block;
  width: 160px;
  height: 58px;
  object-fit: cover;
  object-position: center;
}

.brand-footer {
  width: 214px;
  background: var(--white);
}

.brand-footer .brand-logo {
  width: 214px;
  height: 72px;
  object-fit: cover;
  object-position: center;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-left: auto;
}

.primary-nav > a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}

.primary-nav > a span {
  color: #7892a5;
  font: 9px/1 var(--mono);
  letter-spacing: 0.03em;
}

.primary-nav > a:hover,
.primary-nav > a:focus-visible,
.primary-nav > a[aria-current="page"],
.header-actions a:hover {
  color: var(--accent);
}

.primary-nav > a:hover span,
.primary-nav > a:focus-visible span,
.primary-nav > a[aria-current="page"] span {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-left: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.header-apply {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 10px 13px 10px 17px;
  background: var(--ink);
  color: var(--white) !important;
}

.header-apply span {
  font-size: 17px;
  line-height: 1;
}

.header-apply:hover {
  background: var(--accent);
}

.menu-toggle {
  display: none;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 8px 0 8px 8px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.2s ease;
}

/* Archive hero. */
.articles-hero,
.article-hero,
.simple-hero {
  background: var(--paper-blue);
  border-bottom: 1px solid var(--line);
}

.articles-hero {
  padding: 50px 0 100px;
}

.article-hero,
.simple-hero {
  padding: 50px 0 82px;
}

.breadcrumb,
.section-index,
.eyebrow {
  margin-bottom: 0;
  color: var(--accent);
  font: 11px/1.4 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.articles-hero__copy,
.simple-hero__copy {
  max-width: 900px;
  margin-top: 58px;
}

.articles-hero h1,
.simple-hero h1 {
  margin-bottom: 28px;
  font-size: clamp(50px, 6.4vw, 80px);
  line-height: 1.18;
  letter-spacing: -0.075em;
  font-weight: 800;
}

.articles-hero h1 span,
.simple-hero h1 span {
  color: var(--accent);
}

.articles-hero__lead,
.simple-hero__lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 2;
}

.article-hero__inner {
  max-width: 920px;
  margin-top: 50px;
}

.article-hero__meta,
.post-card__meta,
.entry-taxonomy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 16px;
  color: #628097;
  font: 11px/1.5 var(--mono);
  letter-spacing: 0.03em;
}

.article-hero__category,
.post-card__category {
  color: var(--accent);
  font-weight: 700;
}

.article-hero h1 {
  max-width: 900px;
  margin: 21px 0 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.35;
  letter-spacing: -0.055em;
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* Article archive. */
.articles-section {
  padding: 92px 0 122px;
}

.articles-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.articles-section__heading h2 {
  margin: 14px 0 0;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.3;
  letter-spacing: -0.06em;
}

.articles-count {
  margin: 0;
  color: #7892a5;
  font: 10px var(--mono);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 66px 34px;
  margin-top: 46px;
}

.post-card {
  min-width: 0;
}

.post-card__visual {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
  overflow: hidden;
  background: #e5eff2;
}

.post-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card__visual img {
  transform: scale(1.025);
}

.post-card__visual--empty {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, transparent 49.7%, rgba(11, 133, 138, 0.18) 50%, transparent 50.3%),
    var(--paper-blue);
  border: 1px solid var(--line);
  color: var(--accent);
  font: 11px var(--mono);
  letter-spacing: 0.12em;
}

.post-card h2 {
  margin: 15px 0 13px;
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.55;
  letter-spacing: -0.035em;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-card__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 19px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.post-card__link span {
  font-size: 17px;
  transition: transform 0.2s ease;
}

.post-card__link:hover span {
  transform: translateX(4px);
}

.pagination {
  margin-top: 76px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font: 11px var(--mono);
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.empty-state {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.empty-state h2 {
  margin-bottom: 16px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.empty-state p {
  color: var(--ink-soft);
}

.empty-state .search-form {
  max-width: 620px;
  margin-top: 26px;
}

/* Search form. */
.search-form {
  display: flex;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.search-field:focus {
  border-color: var(--accent);
  outline: 0;
}

.search-submit {
  min-width: 94px;
  height: 52px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.search-submit:hover {
  border-color: var(--accent);
  background: var(--accent);
}

/* Single article and standard pages. */
.single-article,
.page-article {
  padding: 78px 0 120px;
}

.single-featured-image {
  margin: 0 0 72px;
}

.single-featured-image img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  gap: 80px;
  align-items: start;
}

.entry-content {
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 2.05;
  overflow-wrap: anywhere;
}

.page-article .entry-content {
  width: min(100%, 820px);
  margin-inline: auto;
}

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

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content table,
.entry-content pre,
.entry-content blockquote,
.entry-content figure {
  margin-bottom: 30px;
}

.entry-content h2 {
  margin: 68px 0 26px;
  padding: 0 0 17px;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.5;
  letter-spacing: -0.045em;
}

.entry-content h3 {
  margin: 52px 0 21px;
  padding-left: 17px;
  border-left: 4px solid var(--accent);
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.55;
  letter-spacing: -0.035em;
}

.entry-content h4 {
  margin: 40px 0 16px;
  font-size: 19px;
  line-height: 1.6;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.entry-content strong {
  font-weight: 750;
}

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

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

.entry-content blockquote {
  padding: 24px 27px;
  border-left: 4px solid var(--accent);
  background: var(--paper-blue);
  color: var(--ink-soft);
}

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

.entry-content pre,
.entry-content code {
  font-family: var(--mono);
}

.entry-content code {
  padding: 0.15em 0.35em;
  background: var(--paper-blue);
  font-size: 0.9em;
}

.entry-content pre {
  max-width: 100%;
  padding: 23px;
  overflow-x: auto;
  background: var(--ink);
  color: #e7f0f4;
  font-size: 13px;
  line-height: 1.75;
}

.entry-content pre code {
  padding: 0;
  background: transparent;
}

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

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

.entry-content th {
  background: var(--paper-blue);
}

.entry-content figcaption,
.wp-caption-text {
  margin-top: 10px;
  color: #7892a5;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

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

.entry-content .alignleft {
  float: left;
  margin: 8px 30px 24px 0;
}

.entry-content .alignright {
  float: right;
  margin: 8px 0 24px 30px;
}

.entry-content::after {
  display: table;
  clear: both;
  content: "";
}

.wp-block-button__link {
  border-radius: 0;
  background: var(--ink);
  color: var(--white) !important;
  text-decoration: none !important;
}

.wp-block-button__link:hover {
  background: var(--accent);
}

.article-sidebar {
  position: sticky;
  top: 130px;
  padding-top: 4px;
}

.admin-bar .article-sidebar {
  top: 162px;
}

.article-sidebar__group {
  padding: 23px 0;
  border-top: 1px solid var(--line);
}

.article-sidebar__group:last-child {
  border-bottom: 1px solid var(--line);
}

.article-sidebar__label {
  display: block;
  margin-bottom: 8px;
  color: #7892a5;
  font: 9px var(--mono);
  letter-spacing: 0.06em;
}

.article-sidebar__group strong,
.article-sidebar__group a {
  font-size: 13px;
  line-height: 1.7;
}

.article-sidebar__group a:hover {
  color: var(--accent);
}

.article-sidebar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.article-sidebar__tags a {
  padding: 4px 8px;
  background: var(--paper-blue);
  color: var(--ink-soft);
  font-size: 10px;
}

.entry-taxonomy {
  margin-top: 62px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.post-navigation {
  margin-top: 76px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation a {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.post-navigation a:hover {
  color: var(--accent);
}

.post-navigation .nav-subtitle {
  color: #7892a5;
  font: 9px var(--mono);
  letter-spacing: 0.06em;
}

.page-links {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 48px;
  font: 11px var(--mono);
}

.page-links > span,
.page-links a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  text-decoration: none;
}

/* Comments. */
.comments-area {
  margin-top: 74px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
  margin-bottom: 27px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.comment-list {
  padding: 0;
  list-style: none;
}

.comment-list .children {
  padding-left: 30px;
  list-style: none;
}

.comment-body {
  margin-bottom: 24px;
  padding: 22px;
  background: var(--paper-blue);
}

.comment-meta {
  margin-bottom: 12px;
  font-size: 11px;
}

.comment-author img {
  margin-right: 9px;
  vertical-align: middle;
}

.comment-content {
  font-size: 14px;
}

.comment-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.comment-form input:not([type="checkbox"]),
.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 0;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--accent);
  outline: 0;
}

.comment-form .submit {
  padding: 12px 22px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

/* 404. */
.not-found-section {
  padding: 92px 0 120px;
}

.not-found-section__inner {
  max-width: 700px;
}

.not-found-section p {
  color: var(--ink-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  margin-top: 25px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

/* Footer: mirrors the React site. */
.site-footer {
  padding: 38px 0 29px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.7fr);
  align-items: start;
  gap: 58px;
}

.footer-brand-block > p {
  max-width: 300px;
  margin: 25px 0 0;
  color: #c9d6df;
  font-size: 12px;
  line-height: 1.9;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 19px;
  color: #9bb1c1;
  font: 11px/1.4 var(--mono);
  text-decoration: none;
}

.footer-social-link > span:first-child {
  color: var(--white);
  font-size: 17px;
  line-height: 1;
}

.footer-social-link:hover {
  color: var(--white);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer-link-group h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 13px;
  line-height: 1.4;
}

.footer-link-group a {
  color: #aebfc9;
  font-size: 12px;
  line-height: 1.5;
}

.footer-link-group a:hover {
  color: #9cd8d9;
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #9bb1c1;
  font: 10px var(--mono);
}

.footer-meta a:hover {
  color: var(--white);
}

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

  .primary-nav {
    gap: 17px;
  }

  .header-actions {
    gap: 12px;
  }

  .single-layout {
    gap: 52px;
  }
}

@media (max-width: 820px) {
  .content-width {
    width: min(calc(100% - 56px), var(--max));
  }

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

  .header-actions {
    display: none;
  }

  .primary-nav {
    gap: 14px;
  }

  .single-layout {
    display: block;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 68px;
  }

  .article-sidebar__group:last-child {
    border-bottom: 0;
  }
}

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

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .content-width {
    width: calc(100% - 40px);
  }

  .header-inner {
    width: calc(100% - 40px);
    min-height: 68px;
    gap: 0;
  }

  .brand:not(.brand-footer) .brand-logo {
    width: 137px;
    height: 50px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: flex;
    max-height: calc(100vh - 90px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 8px 18px 17px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 15px 30px rgba(20, 40, 61, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-toggle.is-open span:not(.sr-only):first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle.is-open span:not(.sr-only):nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .articles-hero,
  .article-hero,
  .simple-hero {
    padding: 54px 0 67px;
  }

  .articles-hero__copy,
  .simple-hero__copy,
  .article-hero__inner {
    margin-top: 40px;
  }

  .articles-hero h1,
  .simple-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(39px, 11vw, 55px);
    line-height: 1.28;
  }

  .article-hero h1 {
    margin-top: 17px;
    font-size: clamp(30px, 8.3vw, 43px);
    line-height: 1.42;
  }

  .articles-hero__lead,
  .simple-hero__lead {
    font-size: 14px;
  }

  .articles-section,
  .single-article,
  .page-article,
  .not-found-section {
    padding: 68px 0 82px;
  }

  .articles-section__heading {
    display: block;
  }

  .articles-count {
    margin-top: 14px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 35px;
  }

  .post-card__visual {
    margin-bottom: 19px;
  }

  .post-card h2 {
    margin-top: 12px;
    font-size: 21px;
  }

  .pagination {
    margin-top: 58px;
  }

  .single-featured-image {
    width: calc(100% + 40px);
    margin: 0 0 50px -20px;
  }

  .entry-content {
    font-size: 15px;
    line-height: 2;
  }

  .entry-content h2 {
    margin-top: 54px;
    font-size: 25px;
  }

  .entry-content h3 {
    margin-top: 43px;
    font-size: 21px;
  }

  .entry-content .alignwide {
    width: calc(100vw - 40px);
  }

  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    margin: 0 0 30px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 55px;
  }

  .article-sidebar__group:last-child {
    border-bottom: 1px solid var(--line);
  }

  .post-navigation {
    margin-top: 58px;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next {
    text-align: left;
  }

  .search-form {
    display: block;
  }

  .search-submit {
    width: 100%;
    margin-top: 8px;
  }

  .footer-inner {
    display: block;
  }

  .footer-brand-block > p {
    margin: 24px 0 0;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
    margin-top: 39px;
  }

  .footer-meta {
    margin-top: 38px;
  }
}

@media screen and (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}

@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;
  }
}
