@charset "UTF-8";
/* =========================================================
   NABELOG - Minimal Blog Template
   Monochrome / White & Black
   ---------------------------------------------------------
   1.  Design Tokens
   2.  Base
   3.  Layout
   4.  Header / Nav / Drawer
   5.  Hero
   6.  Section Heading
   7.  Post Card / Post List / Ranking
   8.  Sidebar Widget
   9.  Breadcrumb / Pagination
   10. Single (entry header / TOC / content)
   11. Content Parts (box / balloon / merit / rating / cta ...)
   12. Share / Author / Related / Post Nav
   13. Footer / Page Top
   14. Utility
   ========================================================= */

/* =========================================================
   1. Design Tokens
   ========================================================= */
:root {
  /* 既定はライト。ダークは切り替えボタンで選んだときだけ
     （[data-theme="dark"]）。OS の設定には追従しない。 */
  color-scheme: light;

  /* color */
  --c-bg:        #ffffff;
  --c-bg-sub:    #f5f5f5;
  --c-bg-inv:    #0f0f0f;
  --c-text:      #111111;
  --c-text-sub:  #6b6b6b;
  --c-text-inv:  #fafafa;
  --c-line:      #e4e4e4;
  --c-line-str:  #111111;
  --c-accent:    #111111;

  /* typography */
  --f-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
            "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --f-en:   "Helvetica Neue", Arial, sans-serif;
  --f-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* metrics */
  --w-container: 1180px;
  --w-side:      320px;
  --gap-col:     56px;
  --header-h:    68px;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --c-bg:       #0d0d0d;
  --c-bg-sub:   #171717;
  --c-bg-inv:   #fafafa;
  --c-text:     #ededed;
  --c-text-sub: #9a9a9a;
  --c-text-inv: #0d0d0d;
  --c-line:     #292929;
  --c-line-str: #ededed;
  --c-accent:   #ededed;
}

/* =========================================================
   2. Base
   ========================================================= */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-bg);
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}

a:hover {
  opacity: 0.6;
}

::selection {
  background: var(--c-text);
  color: var(--c-bg);
}

/* =========================================================
   3. Layout
   ========================================================= */
.l-container {
  width: min(100% - 40px, var(--w-container));
  margin-inline: auto;
}

.l-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--w-side);
  gap: var(--gap-col);
  align-items: start;
  padding: 56px 0 96px;
}

.l-wrap--full {
  display: block;
  padding: 56px 0 96px;
}

.l-main {
  min-width: 0;
}

.l-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.l-section {
  margin-bottom: 72px;
}

.l-section:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .l-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
  }
  .l-side {
    position: static;
  }
}

/* =========================================================
   4. Header / Nav / Drawer
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.site-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.site-logo__name {
  font-family: var(--f-en);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
}

.site-logo__tag {
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--c-text-sub);
  white-space: nowrap;
}

.global-nav {
  margin-left: auto;
}

.global-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.global-nav__list a {
  position: relative;
  display: block;
  padding: 4px 0;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.global-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.global-nav__list a:hover {
  opacity: 1;
}

.global-nav__list a:hover::after,
.global-nav__list .is-current a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  color: var(--c-text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.icon-btn:hover {
  border-color: var(--c-line);
  background: var(--c-bg-sub);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn__moon { display: none; }
:root[data-theme="dark"] .icon-btn__sun { display: none; }
:root[data-theme="dark"] .icon-btn__moon { display: block; }

.menu-btn {
  display: none;
}

/* --- drawer --- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.drawer.is-open .drawer__overlay {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100%;
  padding: 24px 28px 48px;
  background: var(--c-bg);
  border-left: 1px solid var(--c-line);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  margin-bottom: 24px;
}

.drawer__title {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--c-text-sub);
}

.drawer__nav a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.drawer__nav a::after {
  content: "→";
  float: right;
  color: var(--c-text-sub);
}

.drawer__sub {
  margin-top: 32px;
}

/* --- search --- */
.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--c-line);
  background: var(--c-bg);
}

.searchbox input {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  outline: none;
}

.searchbox input::placeholder {
  color: var(--c-text-sub);
}

.searchbox button {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-text-sub);
  white-space: nowrap;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: start center;
  padding-top: 18vh;
  background: color-mix(in srgb, var(--c-bg) 94%, transparent);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.search-modal__inner {
  width: min(100% - 40px, 640px);
}

.search-modal__label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--c-text-sub);
}

.search-modal .searchbox {
  border: none;
  border-bottom: 1px solid var(--c-line-str);
  padding: 12px 0;
}

.search-modal .searchbox input {
  font-size: 20px;
}

.search-modal__hint {
  margin-top: 16px;
  font-size: 12px;
  color: var(--c-text-sub);
}

@media (max-width: 900px) {
  .global-nav {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .header-tools {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .site-header__inner {
    gap: 12px;
  }
  /* アイコン3つ分の幅を確保するためタグラインは隠す */
  .site-logo__tag {
    display: none;
  }
  .icon-btn {
    width: 34px;
    height: 34px;
  }
}

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--c-line);
}

.hero__eyebrow {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--c-text-sub);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.hero__title em {
  font-style: normal;
  display: inline-block;
  border-bottom: 4px solid var(--c-line-str);
  padding-bottom: 2px;
}

.hero__lead {
  max-width: 620px;
  font-size: 15px;
  color: var(--c-text-sub);
  line-height: 2;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 36px;
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-text-sub);
}

/* =========================================================
   6. Section Heading
   ========================================================= */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--c-line-str);
}

.sec-head__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sec-head__en {
  font-family: var(--f-en);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--c-text-sub);
}

.sec-head__more {
  flex-shrink: 0;
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-text-sub);
}

.sec-head__more::after {
  content: " →";
}

/* =========================================================
   7. Post Card / Post List / Ranking
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--c-bg-sub);
  margin-bottom: 16px;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.post-card:hover .post-card__thumb img {
  transform: scale(1.05);
}

.post-card a {
  display: block;
}

.post-card a:hover {
  opacity: 1;
}

.cat-label {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--c-text-inv);
  background: var(--c-bg-inv);
}

.cat-label--outline {
  color: var(--c-text);
  background: transparent;
  border: 1px solid var(--c-line-str);
}

.post-card__thumb .cat-label {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
}

.post-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 10px;
  transition: opacity 0.2s var(--ease);
}

.post-card:hover .post-card__title {
  opacity: 0.6;
}

.post-card__excerpt {
  font-size: 13px;
  line-height: 1.9;
  color: var(--c-text-sub);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-text-sub);
}

.post-meta time::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: currentColor;
}

/* --- 記事リスト（横並び） --- */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-list__item {
  border-bottom: 1px solid var(--c-line);
}

.post-list__item:first-child {
  border-top: 1px solid var(--c-line);
}

.post-list__link {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  align-items: start;
}

.post-list__link:hover {
  opacity: 1;
}

.post-list__thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--c-bg-sub);
}

.post-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.post-list__link:hover .post-list__thumb img {
  transform: scale(1.05);
}

.post-list__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.65;
  margin: 10px 0;
}

.post-list__link:hover .post-list__title {
  opacity: 0.6;
}

.post-list__excerpt {
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.9;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* --- ランキング --- */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: rank;
}

.rank-list__item {
  counter-increment: rank;
}

.rank-list__link {
  display: grid;
  grid-template-columns: 28px 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.rank-list__link:hover {
  opacity: 1;
}

.rank-list__num {
  font-family: var(--f-en);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-text-sub);
}

.rank-list__item:nth-child(-n + 3) .rank-list__num {
  color: var(--c-text);
}

.rank-list__num::before {
  content: counter(rank, decimal-leading-zero);
}

.rank-list__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-bg-sub);
}

.rank-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-list__title {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

.rank-list__link:hover .rank-list__title {
  opacity: 0.6;
}

.rank-list__date {
  display: block;
  margin-top: 4px;
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--c-text-sub);
}

/* --- カテゴリータイル --- */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}

.cat-tiles a {
  display: block;
  padding: 32px 20px;
  background: var(--c-bg);
  text-align: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.cat-tiles a:hover {
  opacity: 1;
  background: var(--c-bg-inv);
  color: var(--c-text-inv);
}

.cat-tiles__en {
  display: block;
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--c-text-sub);
  margin-bottom: 8px;
}

.cat-tiles a:hover .cat-tiles__en,
.cat-tiles a:hover .cat-tiles__count {
  color: inherit;
}

.cat-tiles__name {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.cat-tiles__count {
  display: block;
  font-family: var(--f-en);
  font-size: 11px;
  color: var(--c-text-sub);
  margin-top: 6px;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }
  .cat-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .card-grid,
  .card-grid--2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .post-list__link {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
  }
  .post-list__title {
    font-size: 15px;
    margin: 8px 0;
  }
  .post-list__excerpt {
    display: none;
  }
}

/* =========================================================
   8. Sidebar Widget
   ========================================================= */
.widget__title {
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--c-line-str);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.widget__title span {
  font-family: var(--f-en);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--c-text-sub);
  margin-left: 8px;
}

.profile-widget {
  text-align: center;
  border: 1px solid var(--c-line);
  padding: 32px 24px;
}

.profile-widget__avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-widget__name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-widget__role {
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--c-text-sub);
  margin-bottom: 16px;
}

.profile-widget__text {
  font-size: 13px;
  line-height: 1.9;
  color: var(--c-text-sub);
  text-align: left;
}

.profile-widget__link {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.cat-links li + li {
  border-top: 1px solid var(--c-line);
}

.cat-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 13px;
  transition: padding-left 0.25s var(--ease);
}

.cat-links a:hover {
  opacity: 1;
  padding-left: 6px;
}

.cat-links__count {
  font-family: var(--f-en);
  font-size: 11px;
  color: var(--c-text-sub);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  display: block;
  padding: 5px 12px;
  border: 1px solid var(--c-line);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-text-sub);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.tag-cloud a:hover {
  opacity: 1;
  border-color: var(--c-line-str);
  color: var(--c-text);
}

.widget-banner {
  display: block;
  padding: 28px 24px;
  background: var(--c-bg-inv);
  color: var(--c-text-inv);
  text-align: center;
}

.widget-banner__en {
  display: block;
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.24em;
  opacity: 0.6;
}

.widget-banner__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin: 10px 0 6px;
}

.widget-banner__text {
  display: block;
  font-size: 12px;
  opacity: 0.7;
}

/* =========================================================
   9. Breadcrumb / Pagination
   ========================================================= */
.breadcrumb {
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--c-text-sub);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  opacity: 0.4;
}

.breadcrumb li:last-child {
  color: var(--c-text);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 56px;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--c-line);
  font-family: var(--f-en);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.pagination a:hover {
  opacity: 1;
  border-color: var(--c-line-str);
}

.pagination .is-current {
  background: var(--c-bg-inv);
  border-color: var(--c-bg-inv);
  color: var(--c-text-inv);
}

.pagination .is-dots {
  border-color: transparent;
  color: var(--c-text-sub);
  min-width: 24px;
}

/* =========================================================
   10. Single
   ========================================================= */
.entry-header {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 40px;
}

.entry-header__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.entry-title {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.entry-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.entry-header__author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--c-text-sub);
}

.entry-header__author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.entry-thumb {
  margin-bottom: 40px;
  background: var(--c-bg-sub);
}

.entry-thumb img {
  width: 100%;
}

/* --- 目次 --- */
.toc {
  border: 1px solid var(--c-line);
  padding: 24px 28px;
  margin-bottom: 48px;
  background: var(--c-bg-sub);
}

.toc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toc__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.toc__title span {
  font-family: var(--f-en);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--c-text-sub);
}

.toc__toggle {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-text-sub);
}

.toc__body {
  margin-top: 18px;
  counter-reset: toc;
}

.toc.is-closed .toc__body {
  display: none;
}

.toc__body > li {
  counter-increment: toc;
}

.toc__body > li + li {
  margin-top: 12px;
}

.toc__body > li > a {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}

.toc__body > li > a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--f-en);
  font-size: 11px;
  color: var(--c-text-sub);
  margin-right: 10px;
}

.toc__body ul {
  margin: 8px 0 0 26px;
}

.toc__body ul li + li {
  margin-top: 6px;
}

.toc__body ul a {
  display: block;
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.7;
}

.toc__body ul a::before {
  content: "–";
  margin-right: 8px;
}

.toc__body a.is-active {
  opacity: 1;
  color: var(--c-text);
  font-weight: 700;
}

/* --- 本文タイポグラフィ --- */
.entry-content {
  font-size: 16px;
  line-height: 2.05;
}

.entry-content > * + * {
  margin-top: 1.6em;
}

.entry-content h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  margin-top: 3.2em;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-line-str);
}

.entry-content h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 2.6em;
  padding-left: 14px;
  border-left: 3px solid var(--c-line-str);
}

.entry-content h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  margin-top: 2.2em;
}

.entry-content h4::before {
  content: "■";
  margin-right: 8px;
  font-size: 11px;
  vertical-align: 2px;
}

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

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

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

.entry-content ul > li {
  list-style: none;
  position: relative;
}

.entry-content ul > li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.85em;
  width: 6px;
  height: 6px;
  background: var(--c-text);
}

.entry-content ol {
  list-style: decimal;
}

.entry-content ol > li::marker {
  font-family: var(--f-en);
  font-size: 13px;
  color: var(--c-text-sub);
}

.entry-content li + li {
  margin-top: 0.5em;
}

.entry-content blockquote {
  position: relative;
  padding: 24px 28px 24px 56px;
  background: var(--c-bg-sub);
  font-size: 15px;
  color: var(--c-text-sub);
}

.entry-content blockquote::before {
  content: "\201C";
  position: absolute;
  left: 20px;
  top: 10px;
  font-family: var(--f-en);
  font-size: 46px;
  line-height: 1;
  color: var(--c-text);
  opacity: 0.25;
}

.entry-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  font-style: normal;
}

.entry-content figure img {
  width: 100%;
}

.entry-content figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--c-text-sub);
  text-align: center;
}

.entry-content code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--c-bg-sub);
  border: 1px solid var(--c-line);
}

.entry-content pre {
  padding: 20px 22px;
  background: var(--c-bg-inv);
  color: var(--c-text-inv);
  overflow-x: auto;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.8;
}

.entry-content pre code {
  padding: 0;
  background: none;
  border: none;
  color: inherit;
}

.entry-content hr {
  height: 1px;
  background: var(--c-line);
  margin: 3em 0;
}

.table-scroll {
  overflow-x: auto;
}

.entry-content table {
  width: 100%;
  min-width: 480px;
  font-size: 14px;
  border: 1px solid var(--c-line);
}

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

.entry-content thead th {
  background: var(--c-bg-inv);
  color: var(--c-text-inv);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.entry-content tbody th {
  background: var(--c-bg-sub);
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================================
   11. Content Parts
   ========================================================= */
/* --- ボックス --- */
.n-box {
  position: relative;
  padding: 24px 26px;
  border: 1px solid var(--c-line-str);
}

.n-box__label {
  position: absolute;
  top: -11px;
  left: 20px;
  padding: 0 10px;
  background: var(--c-bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.n-box > *:first-child {
  margin-top: 0;
}

.n-box--fill {
  border: none;
  background: var(--c-bg-sub);
}

.n-box--dark {
  border: none;
  background: var(--c-bg-inv);
  color: var(--c-text-inv);
}

.n-box--fill .n-box__label,
.n-box--dark .n-box__label {
  position: static;
  display: block;
  padding: 0;
  margin-bottom: 8px;
  background: none;
}

.n-box--dark .n-box__label {
  opacity: 0.6;
}

/* --- 吹き出し --- */
.n-balloon {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.n-balloon__icon {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
}

.n-balloon__icon img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
}

.n-balloon__name {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--c-text-sub);
}

.n-balloon__text {
  position: relative;
  flex: 1;
  padding: 16px 20px;
  border: 1px solid var(--c-line-str);
  font-size: 14px;
  line-height: 1.9;
}

.n-balloon__text::before,
.n-balloon__text::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 0;
  height: 0;
  border-style: solid;
}

.n-balloon__text::before {
  left: -10px;
  border-width: 7px 10px 7px 0;
  border-color: transparent var(--c-line-str) transparent transparent;
}

.n-balloon__text::after {
  left: -8.5px;
  border-width: 7px 10px 7px 0;
  border-color: transparent var(--c-bg) transparent transparent;
}

.n-balloon--right {
  flex-direction: row-reverse;
}

.n-balloon--right .n-balloon__text::before {
  left: auto;
  right: -10px;
  border-width: 7px 0 7px 10px;
  border-color: transparent transparent transparent var(--c-line-str);
}

.n-balloon--right .n-balloon__text::after {
  left: auto;
  right: -8.5px;
  border-width: 7px 0 7px 10px;
  border-color: transparent transparent transparent var(--c-bg);
}

/* --- メリット / デメリット --- */
.n-goodbad {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.n-gb {
  border: 1px solid var(--c-line-str);
  padding: 22px 24px;
}

.n-gb__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.n-gb__title::before {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  font-size: 12px;
  line-height: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.n-gb--good .n-gb__title::before {
  content: "◎";
}

.n-gb--bad .n-gb__title::before {
  content: "×";
}

.n-gb ul {
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.9;
}

.n-gb li {
  list-style: none;
  position: relative;
}

.n-gb li + li {
  margin-top: 8px;
}

.n-gb li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.8em;
  width: 5px;
  height: 5px;
  background: currentColor;
}

/* --- 評価 --- */
.n-review {
  border: 1px solid var(--c-line-str);
}

.n-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: var(--c-bg-inv);
  color: var(--c-text-inv);
}

.n-review__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.n-review__score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--f-en);
}

.n-review__score b {
  font-size: 24px;
  line-height: 1;
}

.n-review__score span {
  font-size: 11px;
  opacity: 0.6;
}

.n-review__body {
  padding: 20px 22px;
}

.n-rating {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px 14px;
  font-size: 13px;
}

.n-rating__label {
  color: var(--c-text-sub);
  letter-spacing: 0.06em;
}

.n-rating__bar {
  position: relative;
  height: 6px;
  background: var(--c-line);
}

.n-rating__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  background: var(--c-text);
}

.n-rating__num {
  font-family: var(--f-en);
  font-size: 12px;
  text-align: right;
}

.n-stars {
  display: inline-flex;
  gap: 2px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* --- CTA ボタン --- */
.n-cta {
  text-align: center;
  border: 1px solid var(--c-line);
  padding: 28px 24px;
}

.n-cta__note {
  font-size: 12px;
  color: var(--c-text-sub);
  margin-bottom: 14px;
}

.n-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--c-line-str);
  background: var(--c-bg-inv);
  color: var(--c-text-inv);
  text-decoration: none !important;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn::after {
  content: "→";
  font-weight: 400;
}

.btn:hover {
  opacity: 1;
  background: var(--c-bg);
  color: var(--c-text);
}

.btn--outline {
  background: transparent;
  color: var(--c-text);
}

.btn--outline:hover {
  background: var(--c-bg-inv);
  color: var(--c-text-inv);
}

.btn--sm {
  min-width: 0;
  padding: 10px 20px;
  font-size: 12px;
}

/* 本文内のリンク色（.entry-content a）に負けないよう明示的に上書き。
   詳細度が同じ場合は後勝ちのため、この4行の順番は変えないこと */
.entry-content .btn          { color: var(--c-text-inv); }
.entry-content .btn:hover    { color: var(--c-text); }
.entry-content .btn--outline { color: var(--c-text); }
.entry-content .btn--outline:hover { color: var(--c-text-inv); }

/* --- ブログカード --- */
.n-blogcard {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  border: 1px solid var(--c-line);
  padding: 16px;
  text-decoration: none !important;
  transition: border-color 0.25s var(--ease);
}

.n-blogcard:hover {
  opacity: 1;
  border-color: var(--c-line-str);
}

.n-blogcard__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-bg-sub);
}

.n-blogcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n-blogcard__label {
  display: block;
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--c-text-sub);
}

.n-blogcard__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  margin: 6px 0 8px;
}

.n-blogcard__excerpt {
  font-size: 12px;
  color: var(--c-text-sub);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* --- FAQ --- */
.n-faq {
  border-top: 1px solid var(--c-line);
}

.n-faq details {
  border-bottom: 1px solid var(--c-line);
}

.n-faq summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
}

.n-faq summary::-webkit-details-marker {
  display: none;
}

.n-faq summary::before {
  content: "Q";
  font-family: var(--f-en);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: var(--c-bg-inv);
  color: var(--c-text-inv);
  margin-top: 3px;
}

.n-faq summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--f-en);
  font-weight: 400;
  color: var(--c-text-sub);
}

.n-faq details[open] summary::after {
  content: "−";
}

.n-faq__answer {
  display: flex;
  gap: 12px;
  padding: 0 0 20px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--c-text-sub);
}

.n-faq__answer::before {
  content: "A";
  font-family: var(--f-en);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 12px;
  border: 1px solid var(--c-line-str);
  color: var(--c-text);
  margin-top: 3px;
}

/* --- 広告表記 --- */
.n-pr {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--c-line);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--c-text-sub);
}

@media (max-width: 600px) {
  .n-goodbad {
    grid-template-columns: minmax(0, 1fr);
  }
  .n-blogcard {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
  }
  .n-rating {
    grid-template-columns: 88px minmax(0, 1fr) 36px;
  }
  .btn {
    min-width: 100%;
  }
}

/* =========================================================
   12. Share / Author / Related / Post Nav
   ========================================================= */
.entry-footer {
  margin-top: 64px;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.share {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 24px 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.share__label {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--c-text-sub);
}

.share__list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share__list a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-line);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.share__list a:hover {
  opacity: 1;
  background: var(--c-bg-inv);
  border-color: var(--c-bg-inv);
  color: var(--c-text-inv);
}

.author-box {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  padding: 32px;
  margin-top: 48px;
  border: 1px solid var(--c-line);
}

.author-box__avatar img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
}

.author-box__role {
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--c-text-sub);
}

.author-box__name {
  font-size: 17px;
  font-weight: 700;
  margin: 4px 0 10px;
}

.author-box__text {
  font-size: 13px;
  line-height: 1.9;
  color: var(--c-text-sub);
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 56px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}

.post-nav__item {
  background: var(--c-bg);
  padding: 24px;
  transition: background 0.25s var(--ease);
}

.post-nav__item:hover {
  opacity: 1;
  background: var(--c-bg-sub);
}

.post-nav__label {
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--c-text-sub);
  margin-bottom: 8px;
}

.post-nav__item--next {
  text-align: right;
}

.post-nav__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .author-box {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    padding: 28px 20px;
  }
  .author-box__avatar img {
    margin: 0 auto;
  }
  .author-box__text {
    text-align: left;
  }
  .post-nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-nav__item--next {
    text-align: left;
  }
}

/* =========================================================
   13. Footer / Page Top
   ========================================================= */
.site-footer {
  background: var(--c-bg-inv);
  color: var(--c-text-inv);
  padding: 72px 0 32px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid color-mix(in srgb, var(--c-text-inv) 20%, transparent);
}

.site-footer .site-logo__name {
  font-size: 24px;
}

.site-footer__desc {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.9;
  opacity: 0.65;
  max-width: 32em;
}

.footer-nav__title {
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.24em;
  opacity: 0.5;
  margin-bottom: 18px;
}

.footer-nav__list li + li {
  margin-top: 12px;
}

.footer-nav__list a {
  font-size: 13px;
  opacity: 0.85;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  opacity: 0.7;
}

.copyright {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.5;
}

#pagetop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--c-bg-inv);
  color: var(--c-text-inv);
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

#pagetop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* =========================================================
   14. Utility
   ========================================================= */
.u-center { text-align: center; }
.u-mt-0   { margin-top: 0 !important; }
.u-mt-40  { margin-top: 40px !important; }
.u-mt-64  { margin-top: 64px !important; }
.u-mb-0   { margin-bottom: 0 !important; }

.u-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.is-noscroll {
  overflow: hidden;
}

/* --- 404 --- */
.notfound {
  text-align: center;
  padding: 120px 0;
}

.notfound__num {
  font-family: var(--f-en);
  font-size: clamp(72px, 18vw, 180px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.notfound__title {
  font-size: 20px;
  font-weight: 700;
  margin: 24px 0 12px;
}

.notfound__text {
  font-size: 14px;
  color: var(--c-text-sub);
  margin-bottom: 32px;
}

/* --- スタイルガイド用 --- */
.sg-item {
  padding: 40px 0;
  border-bottom: 1px dashed var(--c-line);
}

.sg-item__label {
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--c-text-sub);
  margin-bottom: 20px;
}

.sg-code {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--c-bg-sub);
  border: 1px solid var(--c-line);
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-text-sub);
  overflow-x: auto;
  white-space: pre;
}

.sg-swatch {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.sg-swatch__chip {
  height: 72px;
  border: 1px solid var(--c-line);
}

.sg-swatch__name {
  display: block;
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-text-sub);
}
