:root {
  --sl-black: #000;
  --sl-ink: #0a0a0a;
  --sl-navy: #0b2436;
  --sl-navy-deep: #071a28;
  --sl-blue: #154a6e;
  --sl-blue-soft: #4c7a9e;
  --sl-link: #2a6ca0;
  --sl-light: #f2f2f2;
  --sl-white: #fff;
  --sl-copy: #555;
  --sl-muted: #8c99a3;
  --sl-border: rgba(255, 255, 255, 0.16);
  --sl-border-light: #ddd;
  --sl-gutter: clamp(20px, 4.4vw, 56px);
  --sl-max: 1280px;
  --sl-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body.smalllife-site {
  margin: 0;
  overflow-x: hidden;
  background: var(--sl-navy-deep);
  color: var(--sl-ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.9;
}
body.sl-menu-open { overflow: hidden; }
.smalllife-site *, .smalllife-site *::before, .smalllife-site *::after { box-sizing: border-box; }
.smalllife-site img { display: block; max-width: 100%; }
.smalllife-site a { color: inherit; text-decoration: none; }
.smalllife-site button, .smalllife-site input, .smalllife-site textarea, .smalllife-site select { font: inherit; }

.sl-skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: #fff;
  color: #000;
}
.sl-skip-link:focus { transform: translateY(0); }

.sl-site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  color: #fff;
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}
.sl-site-header.is-scrolled,
.smalllife-content-page .sl-site-header {
  border-bottom: 1px solid var(--sl-border);
  background: rgba(7, 26, 40, 0.94);
  backdrop-filter: blur(12px);
}
body.admin-bar .sl-site-header { top: 32px; }
body.admin-bar .sl-drawer { top: 32px; }
.sl-header-inner {
  display: flex;
  min-height: 80px;
  max-width: var(--sl-max);
  margin: 0 auto;
  padding: 12px var(--sl-gutter);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.sl-brand { display: inline-flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.sl-brand-en,
.sl-footer-logo {
  font: 700 17px/1 Archivo, sans-serif;
  letter-spacing: 0.14em;
}
.sl-primary-nav { display: flex; align-items: center; gap: 24px; }
.sl-menu,
.sl-drawer-menu,
.sl-footer-menu,
.sl-category-list { margin: 0; padding: 0; list-style: none; }
.sl-menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.sl-menu a {
  position: relative;
  display: block;
  font: 500 13px/1 Archivo, sans-serif;
  letter-spacing: 0.12em;
}
.sl-menu a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  content: "";
  transition: transform 300ms var(--sl-ease);
}
.sl-menu a:hover::after, .sl-menu a:focus-visible::after { transform: scaleX(1); }
.sl-header-cta {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.45);
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: background 250ms ease, color 250ms ease;
}
.sl-header-cta:hover, .sl-header-cta:focus-visible { background: #fff; color: var(--sl-blue); }
.sl-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 11px 5px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.sl-menu-toggle span:not(.screen-reader-text) { display: block; height: 1px; margin: 6px 0; background: currentColor; transition: transform 300ms ease, width 300ms ease; }
.sl-menu-toggle span:last-child { width: 66%; margin-left: auto; }
.sl-menu-toggle[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(3.5px) rotate(45deg); }
.sl-menu-toggle[aria-expanded="true"] span:nth-of-type(2) { width: 100%; transform: translateY(-3.5px) rotate(-45deg); }

.sl-drawer {
  position: fixed;
  z-index: 90;
  inset: 0;
  visibility: hidden;
  transform: translateY(-100%);
  background: var(--sl-navy-deep);
  color: #fff;
  transition: visibility 400ms, transform 400ms var(--sl-ease);
}
.sl-drawer.is-open { visibility: visible; transform: translateY(0); }
.sl-drawer-inner { display: flex; min-height: 100%; padding: 110px var(--sl-gutter) 40px; flex-direction: column; justify-content: space-between; }
.sl-drawer-menu a { display: flex; padding: 18px 0; border-bottom: 1px solid var(--sl-border); justify-content: space-between; font: 700 clamp(24px, 7vw, 40px)/1.2 Archivo, sans-serif; letter-spacing: -.01em; }
.sl-drawer-menu a::after { content: ">"; color: var(--sl-muted); font-size: .65em; }

.sl-button { display: inline-flex; min-height: 56px; align-items: stretch; }
.sl-button span { display: flex; padding: 0 26px; align-items: center; background: var(--sl-blue); color: #fff; font-size: 15px; font-weight: 500; letter-spacing: .05em; }
.sl-button b { display: grid; width: 56px; place-items: center; background: #fff; color: var(--sl-blue); font: 400 18px/1 Archivo, sans-serif; transition: transform 300ms var(--sl-ease); }
.sl-button:hover b, .sl-button:focus-visible b { transform: translateX(4px); }
.sl-button-light span { background: #fff; color: var(--sl-blue); }
.sl-button-light b { background: var(--sl-blue); color: #fff; }

.sl-site-footer { background: var(--sl-navy-deep); color: #fff; }
.sl-footer-cta { display: grid; max-width: var(--sl-max); margin: 0 auto; padding: 24px var(--sl-gutter) 0; grid-template-columns: 1fr 1fr; gap: 16px; }
.sl-footer-cta a { display: flex; min-height: 92px; padding-left: clamp(24px,4vw,48px); align-items: center; justify-content: space-between; background: var(--sl-blue); font-weight: 700; }
.sl-footer-cta a:nth-child(2) { background: var(--sl-blue-soft); }
.sl-footer-cta b { display: grid; width: 72px; height: 100%; place-items: center; background: rgba(255,255,255,.12); font: 400 20px/1 Archivo,sans-serif; transition: transform 300ms var(--sl-ease); }
.sl-footer-cta a:hover b { transform: translateX(4px); }
.sl-footer-main { display: grid; max-width: var(--sl-max); margin: 0 auto; padding: clamp(48px,7vw,88px) var(--sl-gutter); grid-template-columns: minmax(250px,.8fr) minmax(420px,1.2fr); gap: clamp(48px,8vw,110px); }
.sl-footer-logo { display: inline-block; font-size: 22px; }
.sl-footer-company p { margin: 18px 0 0; color: var(--sl-muted); font-size: 13px; line-height: 1.9; }
.sl-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.sl-footer-links h2 { margin: 0 0 20px; color: var(--sl-muted); font: 500 12px/1 "Roboto Mono", monospace; letter-spacing: .14em; }
.sl-footer-menu li, .sl-category-list li { margin: 0 0 11px; }
.sl-footer-menu a, .sl-category-list a { color: var(--sl-muted); font-size: 14px; line-height: 1.6; transition: color 200ms ease; }
.sl-footer-menu a:hover, .sl-category-list a:hover { color: #fff; }
.sl-footer-bottom { display: flex; max-width: calc(var(--sl-max) - (2 * var(--sl-gutter))); margin: 0 auto; padding: 24px 0 36px; border-top: 1px solid var(--sl-border); align-items: center; justify-content: space-between; color: var(--sl-muted); font: 400 11px/1.6 "Roboto Mono", monospace; letter-spacing: .08em; }

/* Inner pages: dark frame, white reading surface, dark accents. */
.smalllife-content-page .site-content { min-height: 70vh; padding: 144px var(--sl-gutter) clamp(72px,9vw,120px); background: var(--sl-navy); }
.smalllife-content-page .site-content > .ast-container { display: block; max-width: 1080px; padding: 0; }
.smalllife-content-page #primary { width: 100%; margin: 0; padding: 0; }
.smalllife-content-page #secondary { display: none; }
.smalllife-content-page article,
.smalllife-content-page .ast-archive-description,
.smalllife-content-page .no-results { padding: clamp(28px,5vw,72px); background: #fff; color: var(--sl-copy); }
.smalllife-content-page article + article { margin-top: 2px; }
.smalllife-content-page .entry-title,
.smalllife-content-page .entry-title a,
.smalllife-content-page .page-title { color: var(--sl-ink); font-weight: 700; }
.smalllife-content-page .entry-title { margin-bottom: 24px; font-size: clamp(30px,5vw,54px); line-height: 1.25; }
.smalllife-content-page .entry-content { max-width: 820px; }
.smalllife-content-page .entry-content h2 { margin-top: 2.4em; padding-left: 18px; border-left: 4px solid var(--sl-link); color: var(--sl-ink); }
.smalllife-content-page .entry-content h3 { margin-top: 2em; color: var(--sl-blue); }
.smalllife-content-page .entry-content p,
.smalllife-content-page .entry-content li { color: var(--sl-copy); line-height: 1.95; }
.smalllife-content-page .entry-content a { color: var(--sl-link); text-decoration: underline; text-underline-offset: 3px; }
.smalllife-content-page .entry-meta, .smalllife-content-page .entry-meta * { color: var(--sl-link); }
.smalllife-content-page input:not([type="submit"]),
.smalllife-content-page textarea,
.smalllife-content-page select { border: 1px solid #bbb; border-radius: 0; background: #fff; }
.smalllife-content-page input[type="submit"],
.smalllife-content-page button[type="submit"] { border-radius: 0; background: var(--sl-blue); }
.smalllife-content-page .elementor-page .site-content,
.smalllife-content-page.elementor-page .site-content { padding-right: 0; padding-left: 0; }

.sl-content-frame {
  min-height: 70vh;
  padding: 144px var(--sl-gutter) clamp(88px,10vw,140px);
  background: var(--sl-navy);
}
.sl-reading-surface,
.sl-listing-header,
.sl-comments-area,
.sl-post-nav {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(30px,5.5vw,76px);
  background: #fff;
}
.sl-entry-header > p,
.sl-listing-header > p {
  margin: 0 0 14px;
  color: var(--sl-link);
  font: 500 12px/1 "Roboto Mono", monospace;
  letter-spacing: .16em;
}
.sl-entry-header h1,
.sl-listing-header h1 {
  margin: 0;
  color: var(--sl-ink);
  font-size: clamp(32px,5.5vw,58px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.sl-entry-header > span,
.sl-listing-header > span { display: block; width: 40px; height: 4px; margin-top: 24px; background: var(--sl-link); }
.sl-entry-meta { display: flex; margin-top: 18px; gap: 18px; color: var(--sl-copy); font: 500 12px/1.5 "Roboto Mono",monospace; }
.sl-entry-meta a { color: var(--sl-link); }
.sl-entry-thumbnail { max-width: 900px; margin: 38px 0 0; }
.sl-entry-thumbnail img { width: 100%; height: auto; }
.sl-entry-content { max-width: 820px; margin-top: 44px; color: var(--sl-copy); }
/*
 * アイキャッチの下は広く取る。
 *
 * アイキャッチは見出しの側の要素なので、上（38px）は詰め、下で本文と切る。
 * 44px だとページ自身の内側余白（76px）より狭く、画像が本文に貼り付いて見える。
 * 上限をその 76px に合わせ、狭い画面では詰まりすぎないよう clamp で落とす。
 * アイキャッチが無い記事は 44px のままでよいので、隣接セレクタで限定する。
 */
.sl-entry-thumbnail + .sl-entry-content { margin-top: clamp(44px, 5vw, 76px); }
.sl-entry-content > :first-child { margin-top: 0; }
.sl-entry-content h2 { margin: 2.4em 0 .8em; padding-left: 18px; border-left: 4px solid var(--sl-link); color: var(--sl-ink); font-size: clamp(24px,3.4vw,34px); line-height: 1.5; }
.sl-entry-content h3 { margin: 2em 0 .7em; color: var(--sl-blue); font-size: clamp(20px,2.8vw,27px); line-height: 1.55; }
.sl-entry-content p, .sl-entry-content li { line-height: 2; }
.sl-entry-content a { color: var(--sl-link); text-decoration: underline; text-underline-offset: 3px; }
.sl-entry-content img { height: auto; }
/*
 * 本文に置いた画像。
 *
 * ブロックエディタは figure.wp-block-image で出力する。テーマ側に指定が無いと
 * ブラウザ既定の 1em(16px) しか空かず、画像が文章に貼り付いて見える。
 */
.sl-entry-content figure { margin: 2.4em 0; }
.sl-entry-content figcaption { margin-top: 12px; color: var(--sl-copy); font-size: 13px; line-height: 1.8; }
/*
 * 冒頭に置いた画像は、アイキャッチと同じ役目を果たしている。
 * 下の間隔もアイキャッチに揃え、本文との段差をはっきりさせる。
 * （上は .sl-entry-content > :first-child が 0 にしている）
 */
.sl-entry-content > figure:first-child { margin-bottom: clamp(44px, 5vw, 76px); }
.sl-entry-content blockquote { margin: 2em 0; padding: 20px 24px; border-left: 4px solid var(--sl-link); background: #f4f6f7; }
.sl-entry-content table { border-collapse: collapse; }
.sl-entry-content th, .sl-entry-content td { padding: 12px; border: 1px solid var(--sl-border-light); }
.sl-entry-footer { max-width: 820px; margin-top: 36px; }
.sl-tags a { display: inline-block; margin: 0 8px 8px 0; padding: 5px 12px; border: 1px solid var(--sl-link); border-radius: 999px; color: var(--sl-ink); font-size: 13px; }
.sl-post-nav { display: flex; margin-top: 2px; justify-content: space-between; gap: 30px; }
.sl-post-nav a { color: var(--sl-link); }
.sl-comments-area { margin-top: 2px; }
.sl-content-frame .comments-area { max-width: 1080px; margin: 2px auto 0; padding: clamp(30px,5.5vw,76px); background: #fff; }
.sl-elementor-content { padding-top: 80px; background: #fff; }
.sl-listing-header { margin-bottom: 2px; }
.sl-listing-header > div { max-width: 760px; color: var(--sl-copy); }
.sl-archive-grid { display: grid; max-width: 1080px; margin: 0 auto; grid-template-columns: repeat(2,1fr); gap: 2px; }
.sl-archive-card { padding: clamp(24px,4vw,44px); background: #fff; }
.sl-archive-thumb { display: grid; height: 220px; margin-bottom: 20px; overflow: hidden; place-items: center; background: var(--sl-navy); color: rgba(255,255,255,.5); font: 700 18px/1 Archivo,sans-serif; letter-spacing: .14em; }
.sl-archive-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--sl-ease); }
.sl-archive-card a:hover .sl-archive-thumb img { transform: scale(1.035); }
.sl-archive-card time { color: var(--sl-link); font: 500 12px/1 "Roboto Mono",monospace; }
.sl-archive-card h2 { margin: 14px 0 0; color: var(--sl-ink); font-size: clamp(20px,2.5vw,26px); line-height: 1.5; }
.sl-archive-card p { margin: 14px 0 0; color: var(--sl-copy); font-size: 15px; line-height: 1.85; }
.sl-listing-page .navigation.pagination { max-width: 1080px; margin: 30px auto 0; color: #fff; }
.sl-listing-page .page-numbers { display: inline-grid; min-width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3); place-items: center; }
.sl-listing-page .page-numbers.current { background: #fff; color: var(--sl-blue); }
.sl-error-page { text-align: center; }
.sl-error-code { margin: 0; color: var(--sl-link); font: 700 clamp(72px,14vw,160px)/1 Archivo,sans-serif; }
.sl-error-page h1 { color: var(--sl-ink); }
.sl-error-page .sl-button { margin-top: 30px; }

@media (max-width: 1080px) {
  .sl-primary-nav { display: none; }
  .sl-menu-toggle { display: block; }
}
@media (max-width: 720px) {
  .sl-header-inner { min-height: 64px; }
  .sl-brand-en { font-size: 14px; letter-spacing: .1em; }
  .sl-footer-cta, .sl-footer-main, .sl-footer-links { grid-template-columns: 1fr; }
  .sl-footer-cta { gap: 1px; padding: 16px 0 0; }
  .sl-footer-cta a { min-height: 76px; }
  .sl-footer-main { padding-top: 64px; }
  .sl-footer-links { gap: 36px; }
  .sl-footer-bottom { margin: 0 var(--sl-gutter); padding-bottom: 28px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .smalllife-content-page .site-content { padding-top: 104px; }
  .smalllife-content-page article, .smalllife-content-page .ast-archive-description, .smalllife-content-page .no-results { padding: 28px 22px; }
  .sl-content-frame { padding: 104px 16px 88px; }
  .sl-reading-surface, .sl-listing-header, .sl-comments-area, .sl-post-nav { padding: 32px 22px; }
  .sl-archive-grid { grid-template-columns: 1fr; }
  .sl-post-nav { flex-direction: column; }
  .sl-elementor-content { padding-top: 64px; }
}
@media (max-width: 782px) {
  body.admin-bar .sl-site-header { top: 46px; }
  body.admin-bar .sl-drawer { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
