/*!
 * Siam Works — 下層ページ（NewsIndex / NewsArticle / ProductsIndex / About の移植）
 *
 * カンプのインラインスタイルを 1 対 1 でクラスに写している。
 */

/* =========================================================
   下層のヒーロー（白地・粒子・青い円・ベージュの三角）
   ========================================================= */

.sw-subhero { position: relative; overflow: hidden; background: var(--greige-000); }
.sw-subhero__circle {
  position: absolute;
  top: -90px;
  right: -80px;
  width: min(24vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue-500);
  animation: sw-drift 14s ease-in-out infinite;
}
.sw-subhero--article .sw-subhero__circle { top: -100px; right: -70px; width: min(20vw, 250px); }
.sw-subhero__tri {
  position: absolute;
  bottom: -40px;
  left: -30px;
  width: min(20vw, 190px);
  aspect-ratio: 1;
  background: var(--greige-300);
  opacity: .6;
  clip-path: polygon(0 100%, 100% 100%, 0 0);
}
.sw-subhero__in { position: relative; z-index: 1; padding: clamp(104px, 15vh, 164px) 0 clamp(44px, 7vh, 74px); }
.sw-subhero--article .sw-subhero__in { padding-bottom: clamp(36px, 6vh, 60px); }
.sw-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-family-mono);
  font-size: var(--type-meta-size);
  letter-spacing: .06em;
  color: var(--ink-500);
  margin-bottom: 26px;
}
.sw-crumbs a { color: var(--blue-600); text-decoration: none; }
.sw-subhero__latin {
  font-family: var(--font-family-grotesk);
  font-weight: 700;
  font-size: clamp(2.4rem, 7.6vw, 4.6rem);
  line-height: .96;
  letter-spacing: -.045em;
  color: var(--blue-500);
  margin: 0 0 18px;
}
.sw-subhero__jp { font-family: var(--type-display-family); font-size: var(--text-xl); font-weight: 900; letter-spacing: .02em; margin: 0 0 20px; }
.sw-subhero__lead { margin: 0; font-size: var(--type-body-size); line-height: var(--leading-body); color: var(--ink-700); }

/* 記事のヒーロー内 */
.sw-arthead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 22px; }
.sw-arthead__latin {
  font-family: var(--font-family-grotesk);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-index);
  text-transform: uppercase;
  color: var(--blue-600);
}
.sw-arthead__title {
  font-family: var(--type-display-family);
  font-size: var(--type-statement-size);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.01em;
  margin: 0 0 26px;

  text-wrap: pretty;
}
.sw-arthead__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.sw-arthead__lead { margin: 22px 0 0; font-size: var(--type-body-size); line-height: var(--leading-body); color: var(--ink-700); }
.sw-arthead__actions { margin-top: 24px; }

/* =========================================================
   一覧（NEWS / PRODUCTS）
   ========================================================= */

.sw-list { position: relative; background: var(--surface-page); }
.sw-list__in { padding: clamp(40px, 6vh, 64px) 0 var(--band-y); }

.sw-filters {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: clamp(26px, 4vh, 38px);
  border-bottom: 1px solid var(--border-rule, var(--greige-300));
}
.sw-filters__row { display: flex; flex-wrap: wrap; gap: 10px; }
.sw-catbtn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 9999px;
  border: 1px solid var(--border-hairline);
  background: #fff;
  color: var(--ink-800);
  padding: 11px 22px;
  font-family: var(--type-body-family);
  font-size: var(--type-ui-size);
  font-weight: 700;
  line-height: normal; /* カンプは button。a で使うときも本文の行送りを継がせない（45px） */
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.sw-catbtn:hover { border-color: var(--blue-400); color: var(--blue-600); }
.sw-catbtn[aria-current="page"],
.sw-catbtn[aria-pressed="true"] { border-color: var(--ink-900); background: var(--ink-900); color: #fff; }
.sw-catbtn__n { font-family: var(--font-family-mono); font-size: var(--type-meta-size); opacity: .72; }

.sw-filters__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.sw-filters__label {
  font-family: var(--font-family-grotesk);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-index);
  text-transform: uppercase;
  color: var(--ink-500);
  margin-right: 6px;
}
.sw-tagbtn {
  cursor: pointer;
  border-radius: 9999px;
  border: 1px solid var(--border-hairline);
  background: transparent;
  color: var(--ink-700);
  padding: 7px 15px;
  font-family: var(--type-body-family);
  font-size: var(--text-xs);
  font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s;
}
.sw-tagbtn:hover { border-color: var(--blue-400); color: var(--blue-600); }
.sw-tagbtn[aria-pressed="true"] { border-color: var(--blue-500); background: var(--blue-500); color: #fff; font-weight: 700; }

.sw-countrow { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: clamp(26px, 4vh, 38px) 0 clamp(20px, 3vh, 28px); }
.sw-count { display: flex; align-items: baseline; gap: 10px; }
.sw-count__n { font-family: var(--font-family-grotesk); font-size: var(--text-xl); font-weight: 700; letter-spacing: -.02em; color: var(--blue-500); }
.sw-count__l { font-size: var(--type-ui-size); color: var(--ink-600); }
.sw-order { font-family: var(--font-family-mono); font-size: var(--type-meta-size); letter-spacing: .06em; color: var(--ink-500); }

.sw-listgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(276px, 1fr)); gap: 28px; }
.sw-listgrid [data-item][hidden] { display: none; }

.sw-noresult {
  display: none;
  background: var(--greige-000);
  border: 1px dashed var(--border-hairline);
  border-radius: clamp(16px, 1.8vw, 24px);
  padding: 52px 28px;
  text-align: center;
}
.sw-noresult[data-show="true"] { display: block; }
.sw-noresult__title { font-family: var(--type-display-family); font-size: var(--text-lg); font-weight: 900; margin: 0 0 10px; }
.sw-noresult__body { margin: 0; font-size: var(--type-ui-size); line-height: var(--leading-body); color: var(--ink-700); }

/* ページ送り（WordPress の the_posts_pagination の出力に当てる） */
.sw-pager { margin-top: clamp(44px, 7vh, 72px); }
.sw-pager .nav-links { display: flex; justify-content: center; align-items: center; gap: 10px; }
.sw-pager .page-numbers {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-hairline);
  background: #fff;
  color: var(--ink-800);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-grotesk);
  font-size: var(--type-ui-size);
  font-weight: 700;
  transition: all .2s;
  box-sizing: border-box;
}
.sw-pager .page-numbers:hover { border-color: var(--blue-400); color: var(--blue-600); }
.sw-pager .page-numbers.current { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.sw-pager .page-numbers.dots { border: 0; background: transparent; min-width: 0; padding: 0 4px; color: var(--ink-400); }
.sw-pager .page-numbers.prev,
.sw-pager .page-numbers.next { width: 44px; padding: 0; border-radius: 50%; color: var(--blue-500); }
.sw-pager .page-numbers.next:hover,
.sw-pager .page-numbers.prev:hover { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
.sw-pager[data-hidden="true"] { display: none; }

/* 制作物カード（一覧） */
.sw-pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--greige-000);
  border: 1px solid var(--border-hairline);
  border-radius: clamp(16px, 1.8vw, 24px);
  overflow: hidden;
  transition: box-shadow .3s cubic-bezier(.2, 0, .2, 1);
}
.sw-pcard:hover { box-shadow: var(--shadow-card); }
.sw-pcard__num {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: clamp(56px, 6vw, 68px);
  height: clamp(56px, 6vw, 68px);
  background: var(--ink-900);
  border-radius: clamp(16px, 1.8vw, 24px) 0 clamp(16px, 1.8vw, 24px) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-grotesk);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}
.sw-pcard__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-200); background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .4) 0 12px, transparent 12px 24px); }
.sw-pcard__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sw-pcard:nth-child(6n+2) .sw-pcard__thumb { background: var(--ink-900); background-image: radial-gradient(rgba(255, 255, 255, .24) 1.5px, transparent 1.5px); background-size: 15px 15px; }
.sw-pcard:nth-child(6n+3) .sw-pcard__thumb { background: var(--greige-200); background-image: repeating-linear-gradient(-45deg, rgba(23, 24, 26, .08) 0 12px, transparent 12px 24px); }
.sw-pcard:nth-child(6n+4) .sw-pcard__thumb { background: var(--blue-500); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 2px, transparent 2px 16px); }
.sw-pcard:nth-child(6n+5) .sw-pcard__thumb { background: var(--greige-300); background-image: none; }
.sw-pcard:nth-child(6n+6) .sw-pcard__thumb { background: var(--blue-200); background-image: radial-gradient(rgba(23, 24, 26, .1) 1.5px, transparent 1.5px); background-size: 16px 16px; }
.sw-pcard__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.sw-pcard__type {
  font-family: var(--font-family-grotesk);
  font-size: var(--type-index-size);
  font-weight: var(--type-index-weight);
  letter-spacing: var(--type-index-tracking);
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 10px;
}
.sw-pcard__title { font-family: var(--type-display-family); font-size: var(--text-lg); font-weight: 900; line-height: 1.5; margin: 0 0 12px; }
.sw-pcard__desc { margin: 0 0 16px; font-size: var(--type-ui-size); line-height: var(--leading-ui); color: var(--ink-700); }
.sw-pcard__make {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: 14px;
  font-family: var(--type-ui-family, var(--type-body-family));
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
  border-bottom: 2px solid var(--blue-500);
  padding-bottom: 2px;
}
.sw-pcard__make:hover { color: var(--blue-600); }
.sw-pcard__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  text-decoration: none;
  color: inherit;
}
/* カード全体を公開先へのリンクにする（カンプはカードが1本のリンク） */
.sw-pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sw-pcard__cta { font-family: var(--type-display-family); font-size: var(--text-xs); font-weight: 700; color: var(--blue-600); }

/* =========================================================
   記事（NewsArticle 2026-09-07 版の移植）
   本文の列は「太字の導入 → 目次 → 本文」。右に「よく読まれている記録」「新着の記録」。
   カンプから意図して変えているところ：本文ブロックの上に余白、本文に横幅の上限なし。
   ========================================================= */

.sw-artwrap { position: relative; background: var(--surface-page); }
.sw-artwrap__in { padding: clamp(40px, 6vh, 68px) 0 var(--band-y); }
.sw-arthero {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-hairline);
  border-radius: clamp(16px, 2vw, 26px);
  overflow: hidden;
  margin: 0 0 clamp(40px, 6vh, 68px);
  background: var(--blue-500);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 2px, transparent 2px 16px);
}
.sw-arthero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sw-artgrid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(36px, 4.5vw, 80px); align-items: start; }
.sw-artgrid--single { grid-template-columns: minmax(0, 1fr); }
.sw-artmain { min-width: 0; }

/* 太字の導入（抜粋） */
.sw-artlead { margin: 0 0 28px; font-size: var(--text-lg); font-weight: 700; line-height: 1.9; letter-spacing: .01em; color: var(--ink-800); text-wrap: pretty; }

/* 本文 */
.sw-artprose > * { margin-top: 0; }
.sw-artprose p { margin: 0 0 28px; font-size: var(--type-body-size); line-height: 1.95; letter-spacing: .01em; color: var(--ink-800); text-wrap: pretty; }
.sw-artprose a { color: var(--blue-600); }
.sw-artprose h2 {
  font-family: var(--type-display-family);
  font-size: var(--type-heading-size);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .01em;
  margin: clamp(72px, 11vh, 124px) 0 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-rule, var(--greige-300));
  scroll-margin-top: 110px;
}
.sw-artprose h3 { font-family: var(--type-display-family); font-size: var(--text-lg); font-weight: 900; line-height: 1.5; margin: 40px 0 18px; }
.sw-artprose ul,
.sw-artprose ol { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: var(--type-body-size); line-height: var(--leading-body); color: var(--ink-800); }
.sw-artprose li { display: flex; gap: 14px; }
.sw-artprose ul li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--blue-500); flex: none; margin-top: .55em; }
.sw-artprose ol { counter-reset: sw-ol; }
.sw-artprose ol li::before { counter-increment: sw-ol; content: counter(sw-ol, decimal-leading-zero); font-family: var(--font-family-mono); font-size: var(--text-sm); color: var(--blue-500); flex: none; padding-top: .2em; }
.sw-artprose img { max-width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-hairline); }
.sw-artprose figure { margin: 0 0 32px; }
.sw-artprose figcaption { margin: 12px 0 0; font-family: var(--font-family-mono); font-size: var(--type-meta-size); letter-spacing: .04em; color: var(--ink-500); }
.sw-artprose :not(pre) > code { font-family: var(--font-family-mono); font-size: .92em; background: var(--greige-200); padding: .15em .4em; border-radius: 4px; }
.sw-artprose table { width: 100%; border-collapse: collapse; font-size: var(--type-ui-size); margin: 0 0 32px; }
.sw-artprose th, .sw-artprose td { border: 1px solid var(--border-hairline); padding: 10px 12px; text-align: left; }
.sw-artprose hr { border: 0; border-top: 1px solid var(--border-rule, var(--greige-300)); margin: 40px 0; }

/* 目次（導入の後、最初の h2 の前に自動で入る） */
.sw-toc2 {
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--greige-000);
  padding: clamp(24px, 2.6vw, 32px) clamp(24px, 2.8vw, 36px);
  margin: clamp(40px, 6vh, 64px) 0 0;
}
.sw-toc2__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.sw-toc2__title { font-family: var(--type-display-family); font-size: var(--text-lg); font-weight: 900; letter-spacing: .14em; }
.sw-toc2__latin { font-family: var(--font-family-grotesk); font-size: var(--text-3xs); font-weight: 700; letter-spacing: var(--tracking-index); text-transform: uppercase; color: var(--ink-500); }
.sw-toc2__list { display: flex; flex-direction: column; gap: 14px; }
.sw-toc2__link { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink-700); font-size: var(--type-ui-size); line-height: 1.7; transition: color .2s; }
.sw-toc2__link:hover { color: var(--blue-600); }
.sw-toc2__link[aria-current="true"] { color: var(--blue-600); font-weight: 700; }
.sw-toc2__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-400); flex: none; transform: translateY(-3px); }

/* コードブロック（黒いターミナル風） */
.sw-code { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--ink-800); margin: 0 0 32px; }
.sw-code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--ink-800);
  color: rgba(255, 255, 255, .86);
  padding: 10px 16px;
  font-family: var(--font-family-mono);
  font-size: var(--text-2xs);
  letter-spacing: .06em;
}
.sw-code__lang { display: inline-flex; align-items: center; gap: 8px; }
.sw-code__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 9999px;
  color: rgba(255, 255, 255, .86);
  padding: 4px 12px;
  font-family: var(--font-family-mono);
  font-size: var(--text-3xs);
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .2s;
}
.sw-code__copy:hover { border-color: #fff; color: #fff; }
.sw-code pre {
  margin: 0;
  background: var(--ink-900);
  color: #e8eaee;
  padding: 22px 20px;
  font-family: var(--font-family-mono);
  font-size: var(--text-sm);
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
}
.sw-code pre code { font-family: inherit; font-size: inherit; background: none; padding: 0; }

/* 補足 */
.sw-callout {
  border-radius: var(--radius-lg);
  background: var(--greige-000);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--blue-500);
  padding: 24px 26px;
  margin: 0 0 32px;
}
.sw-callout__label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-family-grotesk);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-index);
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.sw-callout p { margin: 0 0 10px; font-size: var(--type-ui-size); line-height: var(--leading-body); color: var(--ink-800); }
.sw-callout p:last-child { margin-bottom: 0; }
.sw-callout ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: var(--type-ui-size); }
.sw-callout li a { color: var(--blue-600); word-break: break-all; }

/* シェア */
.sw-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: clamp(56px, 8vh, 88px) 0 0;
  padding-top: clamp(26px, 4vh, 36px);
  border-top: 1px solid var(--border-rule, var(--greige-300));
}
.sw-share__label { font-family: var(--font-family-grotesk); font-size: var(--text-2xs); font-weight: 700; letter-spacing: var(--tracking-index); text-transform: uppercase; color: var(--ink-500); }
.sw-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 9999px;
  border: 1px solid var(--border-hairline);
  background: #fff;
  color: var(--ink-800);
  text-decoration: none;
  padding: 10px 20px;
  font-family: var(--type-body-family);
  font-size: var(--type-ui-size);
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
a.sw-share__btn:hover { background: var(--blue-500); color: #fff; border-color: var(--blue-500); }
button.sw-share__btn:hover { border-color: var(--blue-400); color: var(--blue-600); }

/* 右の欄：よく読まれている記録・新着の記録 */
.sw-side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px); }
.sw-side__head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--border-rule, var(--greige-300)); }
.sw-side__title { font-family: var(--type-display-family); font-size: var(--text-md); font-weight: 900; letter-spacing: .02em; margin: 0; }
.sw-side__latin { font-family: var(--font-family-grotesk); font-size: var(--text-3xs); font-weight: 700; letter-spacing: var(--tracking-index); text-transform: uppercase; color: var(--ink-500); }
.sw-side__list { display: flex; flex-direction: column; gap: 20px; }
.sw-side__item { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: start; gap: 12px; text-decoration: none; color: inherit; transition: opacity .2s; }
.sw-side__item--rank { grid-template-columns: 26px 74px minmax(0, 1fr); }
.sw-side__item:hover { opacity: .62; color: inherit; }
.sw-side__n { font-family: var(--font-family-grotesk); font-size: var(--text-lg); font-weight: 700; line-height: 1.2; color: var(--ink-400); }
.sw-side__n--top { color: var(--blue-500); }
.sw-side__thumb { position: relative; display: block; aspect-ratio: 4 / 3; border: 1px solid var(--border-hairline); border-radius: 8px; overflow: hidden; background: var(--greige-300); }
.sw-side__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 画像が無いときの地色（カンプの並び） */
.sw-side__item:nth-child(5n+1) .sw-side__thumb:not(:has(img)) { background: var(--blue-200); background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .4) 0 10px, transparent 10px 20px); }
.sw-side__item:nth-child(5n+3) .sw-side__thumb:not(:has(img)) { background: var(--ink-900); background-image: radial-gradient(rgba(255, 255, 255, .24) 1.5px, transparent 1.5px); background-size: 13px 13px; }
.sw-side__item:nth-child(5n+4) .sw-side__thumb:not(:has(img)) { background: var(--blue-500); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 2px, transparent 2px 14px); }
.sw-side__item:nth-child(5n) .sw-side__thumb:not(:has(img)) { background: var(--greige-200); background-image: repeating-linear-gradient(-45deg, rgba(23, 24, 26, .08) 0 10px, transparent 10px 20px); }
.sw-side__txt { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sw-side__cat { font-family: var(--font-family-grotesk); font-size: var(--text-3xs); font-weight: 700; letter-spacing: var(--tracking-index); text-transform: uppercase; color: var(--blue-600); }
.sw-side__t { font-family: var(--type-display-family); font-size: var(--text-xs); font-weight: 700; line-height: 1.6; }
.sw-side__d { font-family: var(--font-family-mono); font-size: var(--text-3xs); letter-spacing: .05em; color: var(--ink-500); }
.sw-side__more { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; text-decoration: none; font-family: var(--type-display-family); font-size: var(--text-xs); font-weight: 700; color: var(--blue-600); }
.sw-side__more span { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--blue-400); display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 939px) {
  .sw-artgrid { grid-template-columns: 1fr; }
  .sw-side { position: static; }
}

/* 前後の記事 */
.sw-adjacent { position: relative; background: var(--greige-000); border-top: 1px solid var(--border-hairline); }
.sw-adjacent__in { padding: clamp(44px, 7vh, 72px) 0; }
.sw-adjacent__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.sw-adjacent__card {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: box-shadow .3s cubic-bezier(.2, 0, .2, 1);
}
.sw-adjacent__card:hover { box-shadow: var(--shadow-card); color: inherit; }
.sw-adjacent__card--next { justify-content: flex-end; text-align: right; }
.sw-adjacent__txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sw-adjacent__lbl { font-family: var(--font-family-grotesk); font-size: var(--text-2xs); font-weight: 700; letter-spacing: var(--tracking-index); text-transform: uppercase; color: var(--ink-500); }
.sw-adjacent__t { font-family: var(--type-display-family); font-size: var(--type-ui-size); font-weight: 900; line-height: 1.5; }

/* 関連する記録 */
.sw-related { position: relative; background: var(--surface-page); }
.sw-related__in { padding: var(--band-y) 0; }
.sw-sechead2 { margin-bottom: var(--stack-y); }
.sw-sechead2__jp { font-family: var(--type-display-family); font-size: var(--type-heading-size); font-weight: 900; letter-spacing: .02em; line-height: 1.3; margin: 0 0 12px; }
.sw-sechead2__latin {
  font-family: var(--font-family-grotesk);
  font-size: var(--type-index-size);
  font-weight: var(--type-index-weight);
  letter-spacing: var(--type-index-tracking);
  text-transform: uppercase;
  color: var(--ink-600);
}
.sw-center { display: flex; justify-content: center; margin-top: var(--stack-y); }
.sw-btnrow { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--stack-y); }

/* =========================================================
   About
   ========================================================= */

.sw-band-page { position: relative; background: var(--surface-page); }
.sw-band-page__in { padding: var(--band-y) 0; }
.sw-band-page__in--tight { padding-top: 0; }
.sw-band-white { position: relative; background: var(--greige-000); border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline); }
.sw-band-white__in { position: relative; z-index: 1; padding: var(--band-y) 0; }

.sw-stance2__title {
  font-family: var(--type-display-family);
  font-weight: 900;
  font-size: var(--type-statement-size);
  line-height: 1.35;
  letter-spacing: -.01em;
  margin: 0 0 28px;

}
.sw-stance2__p { margin: 0 0 22px; font-size: var(--type-body-size); line-height: 1.9; color: var(--ink-800); text-wrap: pretty; }
.sw-stance2__p--strong { font-weight: 500; }
.sw-stance2__p:last-child { margin-bottom: 0; }

.sw-rows { display: flex; flex-direction: column; border-top: 1px solid var(--border-rule, var(--greige-300)); }
.sw-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 14px;
  padding: clamp(28px, 3.4vw, 42px) 0;
  border-bottom: 1px solid var(--border-rule, var(--greige-300));
}
.sw-row__head { flex: 0 1 300px; display: flex; align-items: baseline; gap: 14px; }
.sw-row__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-500); flex: none; }
.sw-row__title { font-family: var(--type-display-family); font-size: var(--type-heading-size); font-weight: 900; line-height: 1.4; color: var(--blue-500); margin: 0; }
.sw-row__body { flex: 1 1 300px; margin: 0; font-size: var(--type-body-size); line-height: 1.9; color: var(--ink-800); }

.sw-profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.sw-profile__fig {
  position: relative;
  aspect-ratio: 1;
  max-width: 320px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  background: var(--greige-300);
  overflow: hidden;
}
.sw-profile__fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sw-profile__txt { display: flex; flex-direction: column; gap: 20px; }
.sw-profile__txt p { margin: 0; font-size: var(--type-body-size); line-height: 1.9; color: var(--ink-800); text-wrap: pretty; }
.sw-profile__tools { display: flex; flex-direction: column; gap: 10px; }
.sw-profile__label {
  font-family: var(--font-family-grotesk);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-index);
  text-transform: uppercase;
  color: var(--ink-500);
}

/* =========================================================
   検索・404・固定ページ
   ========================================================= */

.sw-searchform { display: flex; gap: 10px; max-width: 520px; margin-top: 26px; }
.sw-searchform input[type="search"] {
  flex: 1;
  padding: 12px 20px;
  border-radius: 9999px;
  border: 1px solid var(--border-hairline);
  background: #fff;
  font: inherit;
  font-size: var(--type-ui-size);
  color: var(--ink-900);
}
.sw-searchform button {
  border: 0;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 9999px;
  background: var(--blue-500);
  color: #fff;
  font-family: var(--font-family-grotesk);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sw-searchform button:hover { background: var(--blue-700); }
.sw-searchcount { margin: 0 0 20px; }
