:root {
  /*
   * Soft green reading palette
   * - 余白（ページ背景）はいちばん淡く
   * - 固定ヘッダーは余白より一段しっかりした緑み
   * - 本文パネルは白〜ほぼ白の読書面
   * - アクセントは旧サイトより一段柔らかく
   */
  --bg: #f7faf8;
  --ink: #243029;
  --muted: #5e6b63;
  --accent: #3f7a68;
  --accent-deep: #2f5f52;
  --accent-soft: #e5f0ea;
  --card: #fbfcfb;
  --line: #d4e0d9;
  --surface: #e8f0eb;
  --surface-strong: #d7e6de;
  --good: #3d8a5f;
  --bad: #b54a4a;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --text: 1.0625rem;
  --text-sm: 0.9375rem;
  --leading: 1.8;

  /* Pagefind Component UI */
  --pf-text: var(--ink);
  --pf-text-secondary: var(--muted);
  --pf-text-muted: var(--muted);
  --pf-background: var(--card);
  --pf-border: var(--line);
  --pf-border-focus: var(--accent);
  --pf-skeleton: var(--surface);
  --pf-skeleton-shine: var(--surface-strong);
  --pf-hover: var(--accent-soft);
  --pf-mark: var(--accent-deep);
  --pf-outline-focus: var(--accent);
  --pf-font: var(--font);
  --pf-border-radius: 8px;
  --pf-modal-backdrop: rgba(36, 48, 41, 0.45);
}

* { box-sizing: border-box; }
html { font-size: 100%; /* 16px */ overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(ellipse 85% 55% at 8% -8%, #eaf4ef 0%, transparent 58%),
    radial-gradient(ellipse 60% 45% at 100% 0%, #eef6f1 0%, transparent 50%),
    linear-gradient(180deg, #fafcfb, var(--bg));
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: var(--accent); }
.wrap { width: min(760px, calc(100% - 2rem)); margin: 0 auto; }
/* トップはマガジン用に広く（記事カラムとは別） */
body.page-home .wrap { width: min(1120px, calc(100% - 2.5rem)); }
body.page-home main.wrap { width: min(1200px, calc(100% - 2rem)); }
body.page-tax-index main.wrap { width: min(960px, calc(100% - 2rem)); }
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--line) 65%, transparent),
    0 6px 18px rgba(36, 48, 41, 0.06);
}
.site-header {
  padding: 0.85rem 0 0.35rem;
  border-bottom: 0;
  /* 余白より一段濃い緑み。ぼかしで下のページが透ける */
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}
.read-progress {
  height: 3px;
  margin: 0;
  padding: 0;
  background: color-mix(in srgb, var(--line) 45%, transparent);
  overflow: hidden;
}
.read-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform-origin: left center;
  will-change: width;
}
@media (prefers-reduced-motion: reduce) {
  .read-progress__bar {
    transition: none;
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: color-mix(in srgb, var(--surface) 82%, var(--accent-soft));
  }
}
.site-sale {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #b83228 0%, #e45a2b 42%, #c73d22 78%, #a82e28 100%);
  color: #fff8f4;
  border-bottom: 1px solid color-mix(in srgb, #8f241c 70%, #000);
}
.site-sale::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.08) 46%,
    rgba(255, 236, 180, 0.38) 50%,
    rgba(255, 255, 255, 0.1) 54%,
    transparent 62%
  );
  transform: translateX(-130%);
  animation: sale-shine 6.5s ease-in-out infinite;
}
.site-sale__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  min-height: 2.4rem;
}
.site-sale__inner + .site-sale__inner {
  border-top: 1px solid rgba(255, 248, 244, 0.22);
}
.site-sale__label {
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
a.site-sale__label:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-sale__close {
  appearance: none;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}
.site-sale__close:hover {
  opacity: 1;
  background: color-mix(in srgb, #fff 16%, transparent);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: 2.75rem;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-size: 1rem;
  font-weight: 500;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); }
.nav-search {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: inherit;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.nav-search:hover { color: var(--accent); }
.site-nav .nav-search { color: var(--muted); }
.nav-search--drawer {
  display: block;
  width: 100%;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.05rem;
}
.footer-nav .nav-search,
.home-explore__nav .nav-search {
  color: inherit;
}
.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
}
.nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.nav-open { overflow: hidden; }
body.nav-open .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.site-drawer[hidden] { display: none !important; }
.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.site-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 28, 0.42);
}
.site-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(18rem, 86vw);
  height: 100%;
  padding: 1.25rem 1.1rem 2rem;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  box-shadow: -8px 0 28px rgba(36, 48, 41, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow-y: auto;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-drawer__panel {
    background: var(--card);
  }
}
.site-drawer__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.site-drawer__panel a {
  display: block;
  padding: 0.7rem 0.35rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.site-drawer__panel a:hover { color: var(--accent); }
.site-drawer__panel .nav-search--drawer {
  padding: 0.7rem 0.35rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }
.brand { margin: 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: 0.04em; }
.brand a { color: inherit; text-decoration: none; }
.tagline { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; }
.stage-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--card);
}
.hero { padding: 1.5rem 0 0.5rem; }
.hero h1 { margin: 0 0 0.5rem; font-size: 1.8rem; }
.nav-links { color: var(--muted); font-size: 0.95rem; }
.nav-links a { margin: 0 0.1rem; }
.collection-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.collection-badge--sm { font-size: 0.72rem; padding: 0.05rem 0.4rem; font-weight: 500; }
.collection-badge[data-collection="deep"] {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.collection-badge[data-collection="memo"] {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}
.collection-badge[data-collection="post"] {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}
.collection-badge[data-collection="page"] {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 70%, #fff);
  color: var(--accent-deep);
}
.post-list .meta { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.post-list ul { list-style: none; padding: 0; margin: 0; }
.post-list__item {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.post-list__item--plain {
  grid-template-columns: minmax(0, 1fr);
}
.post-list__thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--line);
  border: 1px solid var(--line);
  text-decoration: none;
}
.post-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-list__body {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}
.post-list__title {
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  color: var(--ink);
}
.post-list__title:hover { color: var(--accent); }
.post-list time { color: var(--muted); font-size: var(--text-sm); }
@media (max-width: 640px) {
  .post-list__item:not(.post-list__item--plain) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
    padding: 1.15rem 0;
  }
  .post-list__thumb {
    width: 100%;
    border-radius: 10px;
  }
  .post-list__item--plain {
    padding: 0.95rem 0;
  }
  .post-list__title {
    font-size: 1.02rem;
    line-height: 1.5;
  }
}
.post-header h1 {
  margin: 0.35rem 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 1.8rem);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.reading-time {
  margin: -0.55rem 0 1rem;
  color: var(--muted);
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
}
.post-header:has(.reading-time) h1 {
  margin-bottom: 0.55rem;
}
.term-icon {
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
.term-icon--lg {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  margin-right: 0.2em;
}
.term-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  text-decoration: none;
  font-weight: 500;
}
.term-link:hover { text-decoration: underline; }
.term-link--category { color: var(--accent); }
.term-link--tag { color: var(--muted); }
.term-link--tag:hover { color: var(--accent); }
.term-heading {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.site-nav .term-icon,
.footer-nav .term-icon,
.site-drawer__panel .term-icon,
.btn .term-icon,
.home-explore__nav .term-icon {
  margin-right: 0.15rem;
}
.meta { color: var(--muted); font-size: var(--text-sm); }
.post-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* 日本語フォントは italic が傾かないことが多いので、色で区別 */
.post-body em {
  font-style: italic;
  color: color-mix(in srgb, var(--accent-deep) 72%, var(--ink));
  font-family: var(--font-display), var(--font);
}
.post-body blockquote {
  margin: 1.35rem 0;
  padding: 0.85rem 1rem 0.9rem 1.05rem;
  border-left: 3px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 42%, #fff);
  border-radius: 0 10px 10px 0;
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
}
.post-body blockquote > :first-child { margin-top: 0; }
.post-body blockquote > :last-child { margin-bottom: 0; }
.post-body blockquote p {
  margin: 0 0 0.65rem;
}
.post-body blockquote p:last-child {
  margin-bottom: 0;
}
.post-body figure,
.post-body .wp-block-image {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 1.25rem 0;
  padding: 0;
  box-sizing: border-box;
  vertical-align: top;
}
/* 小さい画像は原寸／大きい画像だけ枠に収める（引き伸ばさない） */
.post-body img {
  display: block;
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  margin: 1.25rem 0;
  border-radius: 0;
  border: 1px solid var(--line);
  box-sizing: border-box;
}
.post-body figure > img,
.post-body .wp-block-image > img {
  margin: 0;
}
/*
 * スマホ: 画像ブロック自体を画面端までフルブリード。
 * 小さい画像は原寸のまま中央（引き伸ばさない）。
 * 大きい画像は 100vw まで広がる。
 */
@media (max-width: 720px) {
  .post-body figure,
  .post-body .wp-block-image,
  .post-body p:has(> img:only-child),
  .post-body p:has(> a:only-child > img:only-child) {
    display: block;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
  }
  .post-body figure > img,
  .post-body .wp-block-image > img,
  .post-body p > img:only-child,
  .post-body p > a:only-child > img:only-child {
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    margin: 0 auto;
    border-left: 0;
    border-right: 0;
  }
}
.post-body .product-card img,
.post-body .applink img,
.post-body .applink__links img,
.post-body .appreach img,
.post-body .appreach__links img,
.post-body #appreach-box img,
.post-body img[width="1"],
.post-body img[height="1"] {
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  margin: 0;
  border: 0;
}
.post-body .product-card--direct .product-card__img {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  object-fit: contain;
}
@media (max-width: 720px) {
  .post-body .product-card {
    display: block;
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
.post-body iframe {
  display: block;
  max-width: 100%;
  margin: 1rem 0;
}
.post-body .video-embed {
  position: relative;
  width: 100%;
  max-width: 40rem;
  aspect-ratio: 16 / 9;
  margin: 1.25rem 0;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  overflow: hidden;
}
.post-body .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  max-width: none;
}
.post-body p { margin: 0 0 1rem; }
.post-body h2 {
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.post-body h3 {
  margin: 1.75rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.45;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.post-body ul,
.post-body ol {
  margin: 0 0 1.15rem;
  padding-left: 0;
  list-style: none;
}
.post-body ul > li,
.post-body ol > li {
  position: relative;
  margin: 0.45rem 0;
  padding-left: 1.55rem;
  line-height: 1.65;
}
.post-body ul > li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.7em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}
.post-body ol {
  counter-reset: post-ol;
}
.post-body ol > li {
  counter-increment: post-ol;
  padding-left: 2.1rem;
}
.post-body ol > li::before {
  content: counter(post-ol);
  position: absolute;
  left: 0;
  top: 0.15em;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.55rem;
  text-align: center;
  box-sizing: border-box;
}
.post-body li > ul,
.post-body li > ol {
  margin: 0.35rem 0 0.15rem;
}

/* ===== SWELL/Cocoon 由来のリスト・マーカー（HTMLにクラスが残っている） ===== */
.post-body .has-background {
  padding: 0.95rem 1.05rem;
  margin: 0 0 1.15rem;
  border: 1px solid var(--line);
  box-sizing: border-box;
}
.post-body ul.has-background,
.post-body ol.has-background {
  margin-bottom: 1.15rem;
}
.post-body .has-swl-pale-01-background-color {
  background-color: #f4f9f6;
}
.post-body .has-swl-pale-02-background-color {
  background-color: var(--accent-soft);
}
.post-body .has-swl-pale-04-background-color,
.post-body .has-swl-pale-03-background-color {
  background-color: var(--surface);
}
.post-body .has-swl-main-thin-background-color {
  background-color: var(--accent-soft);
}
.post-body .has-swl-gray-background-color {
  background-color: color-mix(in srgb, var(--surface) 70%, #e8ebe9);
}
/* インライン強調・表セル用：旧サイトの濃緑を一段柔らかく */
.post-body .has-swl-main-color,
.post-body .has-swl-deep-01-color {
  color: var(--accent-deep);
}
.post-body .has-swl-deep-02-color {
  color: var(--accent);
}
.post-body .has-swl-main-background-color {
  background-color: color-mix(in srgb, var(--accent) 18%, #fff);
  color: var(--accent-deep);
}
.post-body .has-swl-deep-01-background-color,
.post-body .has-swl-deep-02-background-color {
  background-color: var(--accent);
  color: #fff;
}
.post-body .has-swl-deep-03-background-color {
  background-color: color-mix(in srgb, var(--accent) 72%, #1e3d34);
  color: #fff;
}
.post-body .has-swl-deep-04-background-color {
  background-color: var(--accent-deep);
  color: #fff;
}
.post-body .swl-bg-color {
  padding: 0.05em 0.28em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.post-body .swl-cell-bg {
  display: inline-block;
  min-width: 0.65em;
  min-height: 1em;
  border-radius: 2px;
}

/* SWELL ステップ */
.post-body .swell-block-step {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}
.post-body .swell-block-step__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.85rem;
  margin: 0 0 1.1rem;
  align-items: start;
}
.post-body .swell-block-step__number,
.post-body .u-bg-main {
  background: var(--accent);
  color: #fff;
}
.post-body .swell-block-step__number {
  grid-row: 1 / span 2;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.post-body .swell-block-step__title {
  font-weight: 700;
  color: var(--accent-deep);
  margin: 0.15rem 0 0;
}
.post-body .swell-block-step__body {
  grid-column: 2;
  margin: 0;
}

/* ✅ チェックリスト */
.post-body ul.is-style-check_list > li {
  padding-left: 1.75rem;
}
.post-body ul.is-style-check_list > li::before {
  content: "✓";
  left: 0;
  top: 0.05em;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--good);
  font-size: 1.05em;
  font-weight: 700;
  transform: none;
  line-height: 1.4;
}

/* ○ Good */
.post-body ul.is-style-good_list > li {
  padding-left: 1.75rem;
}
.post-body ul.is-style-good_list > li::before {
  content: "○";
  left: 0;
  top: 0.05em;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--good);
  font-size: 1.05em;
  font-weight: 700;
  transform: none;
  line-height: 1.4;
}

/* × Bad */
.post-body ul.is-style-bad_list > li {
  padding-left: 1.75rem;
}
.post-body ul.is-style-bad_list > li::before {
  content: "×";
  left: 0;
  top: 0.05em;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--bad);
  font-size: 1.1em;
  font-weight: 700;
  transform: none;
  line-height: 1.4;
}

.post-body ul.is-style-check_list > li > ul > li::before,
.post-body ul.is-style-good_list > li > ul > li::before,
.post-body ul.is-style-bad_list > li > ul > li::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: currentColor;
  top: 0.7em;
  transform: translateY(-50%);
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

/* [em] / [small] — 用途固定のインライン強調（色・サイズはテーマ任せ） */
.post-body .text-em {
  color: var(--accent-deep);
  font-weight: 600;
}
.post-body .text-small {
  font-size: 0.875em;
  color: var(--muted);
  line-height: 1.6;
}

/* 蛍光ペンマーカー（下線風含む） */
.post-body hr {
  border: 0;
  height: 0;
  border-top: 1px solid var(--line);
  margin: 1.75rem 0;
}
.post-body mark.marker,
.post-body .marker {
  background-color: #ff9;
}
.post-body .marker-red {
  background-color: #ffd0d1;
}
.post-body .marker-blue {
  background-color: #a8dafb;
}
.post-body .marker-under {
  background: linear-gradient(transparent 60%, #ff9 60%);
}
.post-body .marker-under-red {
  background: linear-gradient(transparent 60%, #ffd0d1 60%);
}
.post-body .marker-under-blue {
  background: linear-gradient(transparent 60%, #a8dafb 60%);
}

/* 最安値など、杯単価のスポットライト */
.post-body .price-spotlight {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--accent-soft) 55%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  line-height: 1.35;
}
.post-body .price-spotlight__value {
  display: inline-block;
  margin-left: 0.15em;
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #c0392b;
  line-height: 1.15;
  vertical-align: -0.08em;
}
.post-body .price-spotlight__note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* 簡易ボックス類（白パネル上では塗りを淡く、枠で存在感） */
.post-body .blank-box,
.post-body .information-box,
.post-body .info-box,
.post-body .memo-box,
.post-body .primary-box,
.post-body .success-box,
.post-body .good-box,
.post-body .alert-box {
  margin: 0 0 1.15rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 40%, #fff);
}
.post-body .alert-box {
  background: #faf3f3;
  border-color: #e2c8c8;
}
.post-body .success-box,
.post-body .good-box {
  background: color-mix(in srgb, var(--accent-soft) 48%, #fff);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.post-body .table-wrap {
  position: relative;
  margin: 0 0 1.25rem;
}
.post-body .table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  background: var(--card);
}
.post-body table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.45;
}
.post-body th,
.post-body td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
}
/* 1行目に色（th / thead内td / ヘッダー無し表の先頭行） */
.post-body thead th,
.post-body thead td {
  background: var(--surface-strong);
  color: var(--accent-deep);
  font-weight: 700;
}
.post-body table:not(:has(thead)) > tr:first-child > th,
.post-body table:not(:has(thead)) > tr:first-child > td,
.post-body table:not(:has(thead)) > tbody > tr:first-child > th,
.post-body table:not(:has(thead)) > tbody > tr:first-child > td {
  background: var(--surface-strong);
  color: var(--accent-deep);
  font-weight: 700;
}
.post-body tr:last-child td { border-bottom: 0; }
.post-body th:last-child,
.post-body td:last-child { border-right: 0; }

/* 楽天などの貼り付けウィジェット — 記事テーブル／画像スタイルを当てない */
.post-body .affiliate-embed {
  max-width: 100%;
  margin: 0 0 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.post-body .affiliate-embed table {
  width: auto !important;
  min-width: 0 !important;
  max-width: none;
  border-collapse: separate;
  font-size: inherit;
  line-height: inherit;
}
.post-body .affiliate-embed th,
.post-body .affiliate-embed td {
  padding: 0;
  border: 0;
  background: transparent !important;
  color: inherit !important;
  font-weight: inherit !important;
  white-space: normal;
  vertical-align: top;
  text-align: left;
}
.post-body .affiliate-embed img {
  display: inline-block;
  float: none;
  width: auto !important;
  max-width: 100%;
  height: auto !important;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.post-body .affiliate-embed img[src*="rakuten-makelink"],
.post-body .affiliate-embed a img[style*="float"] {
  float: left;
  max-height: 27px;
  width: auto !important;
}
.post-body .affiliate-embed a {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}
.post-body .affiliate-embed a::before {
  content: none !important;
}

.post-body pre,
.post-body .wp-block-code {
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.82rem;
  line-height: 1.55;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-sizing: border-box;
}
.post-body pre code,
.post-body .wp-block-code code {
  display: block;
  max-width: 100%;
  white-space: inherit;
  overflow-wrap: inherit;
  word-break: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: inherit;
  background: none;
  padding: 0;
  border: 0;
}
.post-body :not(pre) > code {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  font-weight: 550;
  padding: 0.06em 0.38em;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent-deep);
}

.table-scroll__hint {
  display: none;
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 3;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  pointer-events: none;
}
.table-wrap.is-scrollable .table-scroll__hint { display: inline-flex; }
.table-wrap.is-scrolled .table-scroll__hint { opacity: 0; transition: opacity 0.25s ease; }
.table-scroll__finger {
  display: inline-flex;
  animation: table-swipe 1.15s ease-in-out infinite;
}
.table-scroll__finger svg { display: block; }
@keyframes table-swipe {
  0%, 100% { transform: translateX(4px); }
  50% { transform: translateX(-10px); }
}
.post-body a { text-underline-offset: 2px; }
/* 本文リンク: 枠なし。内外とも太字＋下線。外部は末尾に ↗ */
.post-body a.ext-link,
.post-body a.int-link:not(.link-card__a) {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.18em;
  font-weight: 700;
  line-height: inherit;
  vertical-align: baseline;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.post-body a.ext-link::before {
  content: none;
}
.post-body a.ext-link::after {
  content: "↗";
  margin-left: 0.15em;
  font-size: 0.85em;
  font-weight: 600;
  opacity: 0.7;
  text-decoration: none;
}
.post-body a.ext-link:hover,
.post-body a.int-link:not(.link-card__a):hover {
  color: var(--accent-deep);
  background: none;
  border: 0;
}
.link-card {
  display: block;
  margin: 0.45rem 0;
  padding: 0;
}
.link-card .link-card__a,
.link-card a.ext-link,
.link-card a.int-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.link-card a.ext-link::before,
.link-card a.int-link::before {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background: var(--card);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  opacity: 1;
  margin: 0;
}
.link-card a.int-link::before {
  content: "記事";
}
.link-card a.ext-link::before {
  content: "外部";
}
.link-card a.int-link::after,
.link-card a.ext-link::after {
  content: "›";
  margin-left: auto;
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  opacity: 0.75;
}
.link-card a.ext-link:hover,
.link-card a.int-link:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.link-card a.ext-link:hover::after,
.link-card a.int-link:hover::after {
  opacity: 1;
}
.link-card--retired a.int-link {
  background: color-mix(in srgb, var(--surface) 55%, #fff);
  color: var(--muted);
  font-weight: 600;
}
.link-card--retired a.int-link::before {
  content: "終了";
  color: var(--muted);
  border-color: var(--line);
  background: #fff;
}
.link-card--retired a.int-link::after {
  content: none;
}
.link-card--retired a.int-link:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

/* [card:] bookmark cards */
.bookmark-card {
  display: block;
  margin: 1.1rem 0;
  max-width: 40rem;
}
.bookmark-card__a {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bookmark-card__a:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-soft);
}
.bookmark-card__media {
  flex: 0 0 7.5rem;
  max-width: 38%;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.bookmark-card__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 5.5rem;
  object-fit: cover;
  margin: 0;
  border: 0;
}
.bookmark-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.75rem 0.9rem 0.8rem;
}
.bookmark-card__label {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background: var(--card);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.bookmark-card__title {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink);
}
.bookmark-card__desc {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bookmark-card__site {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.bookmark-card--retired .bookmark-card__title {
  color: var(--muted);
}
.bookmark-card--retired .bookmark-card__label {
  color: var(--muted);
  border-color: var(--line);
}
@media (max-width: 560px) {
  .bookmark-card__media {
    flex-basis: 5.5rem;
  }
}

/* [note] / [warn] / [info] — 白パネル上は塗りを淡く、枠とラベルで役割を出す */
.callout {
  margin: 1.25rem 0;
  padding: 0.9rem 1.05rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 38%, #fff);
}
.callout__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1.3;
}
.callout__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  font-style: normal;
  border: 1.5px solid currentColor;
}
.callout__icon::before {
  content: "i";
}
.callout--warn .callout__icon::before {
  content: "!";
}
.callout__body > :first-child { margin-top: 0; }
.callout__body > :last-child { margin-bottom: 0; }
.callout--note {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 42%, #fff);
}
.callout--warn {
  border-color: color-mix(in srgb, #b45309 35%, var(--line));
  background: color-mix(in srgb, #b45309 7%, #fff);
}
.callout--warn .callout__label {
  color: #9a3412;
}
.callout--info {
  border-color: color-mix(in srgb, #2563eb 28%, var(--line));
  background: color-mix(in srgb, #2563eb 5%, #fff);
}
.callout--info .callout__label {
  color: #1d4ed8;
}

/* [box] / [box:note|warn|info] — frame only */
.content-box {
  margin: 1.15rem 0;
  padding: 0.85rem 1rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 32%, #fff);
}
.content-box > :first-child { margin-top: 0; }
.content-box > :last-child { margin-bottom: 0; }
.content-box--note {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 38%, #fff);
}
.content-box--warn {
  border-color: color-mix(in srgb, #b45309 28%, var(--line));
  background: color-mix(in srgb, #b45309 5%, #fff);
}
.content-box--info {
  border-color: color-mix(in srgb, #2563eb 22%, var(--line));
  background: color-mix(in srgb, #2563eb 4%, #fff);
}

/* [x:] */
.x-embed {
  margin: 1.25rem 0;
  max-width: 34rem;
}
.x-embed .twitter-tweet {
  margin: 0 auto !important;
}

.post-body a.int-link--retired:not(.link-card__a) {
  background: none;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-style: dotted;
}
.post-body a.int-link--retired:not(.link-card__a)::before {
  content: none;
}
.link-removed {
  margin-left: 0.15em;
  color: var(--muted);
  font-size: 0.92em;
}
.toc {
  margin: 0 0 1.75rem;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 42%, #fff);
}
.toc__title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* TOC lives inside .post-body; beat body list styles for hierarchy */
.post-body .toc__list > .toc__item,
.toc__item {
  margin: 0.28rem 0;
  padding-left: 1.05rem;
  position: relative;
  line-height: 1.55;
}
.post-body .toc__list > .toc__item::before,
.toc__item::before {
  content: "" !important;
  position: absolute;
  left: 0.1rem;
  top: 0.72em;
  width: 0.35rem;
  height: 0.35rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: transparent;
  font-size: inherit;
  font-weight: 400;
  line-height: normal;
  text-align: left;
  transform: translateY(-50%);
}
.post-body .toc__list > .toc__item--h3,
.toc__item--h3 {
  margin-left: 1.35rem;
}
.post-body .toc__list > .toc__item--h3::before,
.toc__item--h3::before {
  width: 0.28rem;
  height: 0.28rem;
  background: color-mix(in srgb, var(--accent) 55%, #fff);
}
.toc__item a {
  display: inline;
  text-decoration: none;
}
.toc__item a:hover { text-decoration: underline; }
.ad-slot {
  margin: 1rem 0 1.25rem;
  padding: 0.5rem 0 0.65rem;
  border: 0;
  background: transparent;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
}
.ad-slot ins.adsbygoogle {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
}
.product-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.product-card--search {
  align-items: flex-start;
}
.product-card--search .product-card__body {
  width: 100%;
}
.product-card--search .product-card__title {
  margin-top: 0;
}
/* Yahoo / Rakuten URL-only cards: compact like a shop chip row */
.product-card--direct {
  gap: 0.75rem;
  align-items: center;
  margin: 0.85rem 0;
  padding: 0.65rem 0.8rem;
  max-width: 40rem;
}
.product-card--direct .product-card__img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}
.product-card--direct .product-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card--direct .product-card__links {
  gap: 0.35rem;
}
.product-card--direct .product-card__links a {
  padding: 0.15rem 0.5rem;
  font-size: 0.78rem;
}
@media (max-width: 560px) {
  .product-card--direct {
    flex-direction: row;
    align-items: center;
  }
}
.product-card__img-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}
.product-card__img-link:hover { opacity: 0.92; }
.product-card__img { width: 96px; height: 96px; object-fit: contain; background: #fff; }
.product-card__brand {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}
.product-card__brand:hover { text-decoration: underline; }
.product-card__title {
  display: block;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  margin: 0.15rem 0 0.4rem;
  line-height: 1.45;
}
.product-card__price {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-deep);
  text-decoration: none;
  margin: 0 0 0.1rem;
  line-height: 1.2;
}
.product-card__price:hover { text-decoration: underline; }
.product-card__price-date {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  margin: 0 0 0.5rem;
}
.product-card__price-date:hover { text-decoration: underline; }
.product-card__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.55rem; font-size: 0.9rem; }
.product-card__links a {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}
.product-card__links a:hover { border-color: var(--accent); background: var(--accent-soft); }
.product-card__sale-badge {
  position: relative;
  display: inline-block;
  overflow: hidden;
  margin: 0 0.35rem 0 -0.15rem;
  padding: 0.14rem 0.5rem;
  border-radius: 4px;
  background: linear-gradient(135deg, #c23528 0%, #ef6a2f 48%, #d4431f 100%);
  color: #fff8f4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.3;
  vertical-align: middle;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(140, 32, 18, 0.28);
  text-shadow: 0 1px 0 rgba(90, 20, 10, 0.2);
}
.product-card__sale-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 32%,
    rgba(255, 255, 255, 0.15) 44%,
    rgba(255, 240, 190, 0.72) 50%,
    rgba(255, 255, 255, 0.18) 56%,
    transparent 68%
  );
  transform: translateX(-130%);
  animation: sale-shine 5.2s ease-in-out infinite;
}
@keyframes sale-shine {
  0%, 72% { transform: translateX(-130%); }
  88% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
  .site-sale::after,
  .product-card__sale-badge::after {
    animation: none;
  }
}
.product-card__links a.ext-link,
.product-card a.product-card__shop {
  /* shop pills only — title/brand/price/date stay plain text links */
  margin: 0;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
}
.product-card a.ext-link::before { content: none; }
.product-card__title.ext-link,
.product-card a.product-card__title,
.product-card__brand.ext-link,
.product-card a.product-card__brand,
.product-card__price.ext-link,
.product-card a.product-card__price,
.product-card__price-date.ext-link,
.product-card a.product-card__price-date {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.product-card a.product-card__title,
.product-card__title.ext-link {
  display: block;
  margin: 0.15rem 0 0.4rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.product-card a.product-card__brand,
.product-card__brand.ext-link {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
}
.product-card a.product-card__price,
.product-card__price.ext-link {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-deep);
  margin: 0 0 0.1rem;
  text-decoration: none;
}
.product-card a.product-card__price-date,
.product-card__price-date.ext-link {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 0.5rem;
  text-decoration: none;
}
.product-card__title.ext-link::before,
.product-card__brand.ext-link::before,
.product-card__price.ext-link::before,
.product-card__price-date.ext-link::before { content: none; }

/* App Store / Google Play widget (Appreach + applink) */
.applink,
.appreach {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.65rem;
  align-items: center;
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-sizing: border-box;
  max-width: 100%;
}
.post-body .applink img.applink__icon,
.post-body .appreach img.appreach__icon,
.applink__icon,
.appreach__icon {
  width: 120px !important;
  height: 120px !important;
  border-radius: 22px;
  object-fit: cover;
  flex-shrink: 0;
  margin: 0 !important;
  border: 0 !important;
}
.applink__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  min-height: 120px;
}
.applink__text,
.appreach__detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
}
.applink__name,
.appreach__name {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.3;
}
.applink__developper,
.applink__price,
.appreach__info {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}
.appreach__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.65rem;
}
.appreach__developper,
.appreach__price,
.appreach__posted {
  margin: 0;
}
.appreach__posted a {
  margin-left: 0.2em;
}
.applink__links,
.appreach__links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}
.appreach__links {
  grid-column: 1 / -1;
}
.applink__links a,
.appreach__links a,
.applink a.ext-link,
.appreach a.ext-link {
  display: inline-block;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  max-width: none;
  line-height: 0;
}
.applink__links a::before,
.appreach__links a::before,
.applink a.ext-link::before,
.appreach a.ext-link::before {
  content: none;
}
.post-body .applink__links img,
.post-body .appreach__links img,
.applink__links img,
.appreach__links img {
  width: auto !important;
  height: 40px !important;
  max-height: 40px !important;
  max-width: min(180px, 100%) !important;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0;
}
@media (max-width: 480px) {
  .applink,
  .appreach {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .post-body .applink img.applink__icon,
  .post-body .appreach img.appreach__icon,
  .applink__icon,
  .appreach__icon {
    width: 96px !important;
    height: 96px !important;
    border-radius: 18px;
  }
  .applink__right {
    display: contents;
  }
  .applink__text,
  .appreach__detail {
    grid-column: 2;
  }
  .applink__links,
  .appreach__links {
    grid-column: 1 / -1;
  }
}

/* Legacy Appreach widget (#appreach-box) — ~8 older posts */
.post-body #appreach-box {
  display: block;
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-sizing: border-box;
  max-width: 100%;
}
.post-body #appreach-box .appreach-info {
  margin: 0 !important;
}
.post-body #appreach-appname {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}
.post-body #appreach-box #appreach-developer,
.post-body #appreach-box #appreach-price,
.post-body #appreach-box .appreach-powered {
  display: inline !important;
  margin: 0 0.65rem 0.35rem 0 !important;
  font-size: 0.85rem !important;
  color: var(--muted);
  line-height: 1.35;
  vertical-align: baseline;
}
.post-body #appreach-box .appreach-links {
  float: none !important;
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
}
.post-body #appreach-box .appreach-footer {
  display: none;
}
.post-body #appreach-box a.ext-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: inherit;
  line-height: inherit;
  box-decoration-break: unset;
  -webkit-box-decoration-break: unset;
}
.post-body #appreach-box a.ext-link::before {
  content: none;
}
.post-body #appreach-box #appreach-developerurl {
  margin-left: 0.2em;
}
.post-body #appreach-box .appreach-powered a {
  margin-left: 0.2em;
}
.post-body #appreach-box img {
  width: auto !important;
  height: 40px !important;
  max-height: 40px !important;
  max-width: min(180px, 100%) !important;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0;
}

/* Legacy WP CTA buttons in article body */
.post-body a.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  width: auto !important;
  max-width: 100%;
  min-height: 2.5rem;
  height: auto !important;
  margin: 1rem 0;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
  box-sizing: border-box;
  vertical-align: middle;
}
.post-body a.btn.ext-link::before {
  content: none;
}
.post-body a.btn:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff !important;
}
.post-body a.btn-green {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.tags__label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  margin-right: 0.15rem;
}
.back { margin-top: 2rem; }
.site-footer {
  margin-top: 3rem;
  padding: 1.75rem 0 2.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--card));
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.95rem;
  margin: 0 0 0.85rem;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.footer-nav a:hover { color: var(--accent); }
.footer-sns { margin: 0 0 0.75rem; }
.footer-sns a { color: var(--accent); text-decoration: none; }
.footer-copy { margin: 0.85rem 0 0; color: var(--muted); }
.footer-stage-note {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--muted) 80%, var(--accent));
}
.footer-top { margin: 0.85rem 0 0; }
.footer-top a { color: var(--muted); }

/* 記事パネル：タイトル直下〜著者箱までを白い読書面に（枠・影なし）
   PC: 白面だけ左右にはみ出し、本文は wrap 幅のまま
   スマホ: フルブリード＋文字用の左右余白 */
.post-panel {
  background: #fff;
  border: 0;
  border-radius: 12px;
  padding: 1.15rem 1.25rem 1.4rem;
  margin: 0.15rem 0 1.35rem;
  box-shadow: none;
}
@media (min-width: 721px) {
  .post-panel {
    width: calc(100% + 2.5rem);
    max-width: none;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
  }
}
.post-panel .share-bar { margin-top: 0; }
.post-panel .author-box {
  background: color-mix(in srgb, var(--surface) 35%, #fff);
}
@media (max-width: 720px) {
  .post-panel {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
}
.share-bar--bottom { margin: 1.5rem 0 0; }
.share-bar__label {
  margin-right: 0.15rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-btn--x:hover { border-color: #111; color: #111; }
.share-btn--threads:hover { border-color: #111; color: #111; }
.share-btn--line:hover { border-color: #06c755; color: #06c755; }

.author-box {
  margin: 1.75rem 0 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--card);
}
.author-box__label {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.author-box__inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.author-box__avatar {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--line);
}
.author-box__text { min-width: 0; flex: 1; }
.author-box__name {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.author-box__bio {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}
.author-box__sns {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
}
.author-box__sns a { text-decoration: none; font-weight: 600; }
.author-box__more { margin: 0; font-size: 0.9rem; }
@media (max-width: 560px) {
  .author-box__inner { gap: 0.85rem; }
  .author-box__avatar { width: 72px; height: 72px; }
}

.back-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--card) 88%, var(--accent-soft));
  color: var(--accent-deep);
  cursor: pointer;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent-deep) 16%, transparent);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.back-top svg { display: block; }
.back-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.back-top[hidden] { display: none !important; }
@media (max-width: 560px) {
  .back-top {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 2.85rem;
    height: 2.85rem;
  }
}

/* Magazine home */
.home-hero {
  padding: 2.25rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.home-hero__brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.home-hero__lead {
  margin: 0 0 1.35rem;
  max-width: 30em;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}
.home-hero__cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  max-width: 22rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.home-hero__cta .btn {
  width: 100%;
  box-sizing: border-box;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn--ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

@media (min-width: 560px) {
  .home-hero__cta {
    display: flex;
    flex-wrap: wrap;
    max-width: none;
    gap: 0.65rem;
  }
  .home-hero__cta .btn {
    width: auto;
    min-width: 6.5rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.95rem;
  }
}

.home-section { margin: 0 0 2.5rem; }
.home-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.home-section__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.home-section__more {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.home-section__more:hover { text-decoration: underline; }

.mag-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.25rem 1.35rem;
}
.mag-grid--equal {
  grid-template-columns: repeat(3, 1fr);
}
.mag-item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}
.mag-item--lead { grid-row: span 2; }
.mag-item__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--line);
  border: 1px solid var(--line);
}
.mag-item--lead .mag-item__media { aspect-ratio: 16 / 9; min-height: 280px; }
.mag-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.mag-item__media:hover img { transform: scale(1.03); }
.mag-item__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}
.mag-item__meta .term-link {
  font-size: 0.88rem;
  font-weight: 500;
}
.mag-item__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}
.mag-item--lead .mag-item__title { font-size: 1.5rem; }
.mag-item__title a {
  color: inherit;
  text-decoration: none;
}
.mag-item__title a:hover { color: var(--accent); }

.home-linklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-linklist li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.home-linklist__main {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.25rem;
}
.home-linklist a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.home-linklist a:hover { color: var(--accent); }
.home-linklist__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-size: 0.88rem;
}
.home-linklist time { color: var(--muted); font-size: 0.95rem; flex-shrink: 0; }

.post-list .meta .term-link {
  font-size: 0.88rem;
}

.home-explore__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  margin: 0 0 1.25rem;
  font-weight: 500;
}
.home-explore__nav a { text-decoration: none; }
.home-explore__nav a:hover { text-decoration: underline; }
.home-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.home-cats a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}
.home-cats a:hover { border-color: var(--accent); color: var(--accent); }
.home-cats span { color: var(--muted); font-size: 0.8rem; }

.list-hero { padding: 1.25rem 0 0.5rem; }
.list-hero h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2rem);
}

/* カテゴリ / タグ一覧：チップ雲で一覧性を確保 */
.tax-index__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.tax-index__head h1 { margin: 0; font-size: clamp(1.45rem, 4vw, 1.85rem); }
.tax-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.45rem;
}
.tax-cloud__link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.55rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
}
.tax-cloud__link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tax-cloud__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tax-cloud__count {
  flex: 0 0 auto;
  min-width: 1.4rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}
.tax-cloud__item--md .tax-cloud__link {
  font-size: 0.92rem;
  font-weight: 600;
}
.tax-cloud__item--lg .tax-cloud__link {
  font-size: 0.98rem;
  font-weight: 700;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, #fff);
}
@media (max-width: 560px) {
  .tax-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }
  .tax-cloud__link {
    min-height: 2.7rem;
    padding: 0.45rem 0.5rem;
    font-size: 0.84rem;
  }
  .tax-cloud__name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.75rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.pager__pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pager__pages a,
.pager__pages span {
  display: inline-block;
  min-width: 2rem;
  padding: 0.25rem 0.45rem;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
}
.pager__pages a:hover { border-color: var(--line); }
.pager__pages span[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.pager__prev,
.pager__next {
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 720px) {
  .mag-grid,
  .mag-grid--equal { grid-template-columns: 1fr; }
  .mag-item--lead { grid-row: auto; }
  .mag-item--lead .mag-item__media { min-height: 0; aspect-ratio: 16 / 9; }
  .site-nav--desktop { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .product-card { flex-direction: column; align-items: flex-start; }
  .home-hero { padding: 1.75rem 0 1.4rem; }
  .home-hero__lead { font-size: 0.98rem; margin-bottom: 1.1rem; }
  .share-bar:not(.share-bar--bottom) {
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .share-bar:not(.share-bar--bottom) .share-btn {
    flex-shrink: 0;
  }
  .share-bar--bottom .share-bar__label {
    width: 100%;
    margin: 0 0 0.15rem;
  }

  /* 通常コンテンツは左右にしっかり余白（一覧・本文など） */
  .wrap,
  body.page-home .wrap,
  body.page-home main.wrap,
  body.page-tax-index main.wrap {
    width: calc(100% - 2.5rem); /* 左右 1.25rem */
  }

  /* フルブリードはタイトルのみ（本文より左右を詰める：0.75rem） */
  .post-header h1 {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 0.75rem;
    box-sizing: border-box;
    font-size: clamp(1.28rem, 5.2vw, 1.55rem);
  }

  .post-body {
    font-size: 1.05rem;
    padding-left: 0;
    padding-right: 0;
  }

  /* H2/H3 も画面端まで（本文より広く） */
  .post-body h2,
  .post-body h3 {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    box-sizing: border-box;
  }
  .post-body h2 {
    font-size: 1.28rem;
  }

  /* 表は本文幅のまま（横スクロールは維持） */
  .post-body .table-wrap {
    margin-left: 0;
    margin-right: 0;
  }
  .post-body .table-scroll {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}

.mail-form__note {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: var(--text-sm);
}
.mail-form {
  display: grid;
  gap: 0.95rem;
  margin: 0.4rem 0 0.5rem;
}
.mail-form__req {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  vertical-align: 0.12em;
}
.mail-form label.mail-form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 1rem;
  cursor: pointer;
}
.mail-form__check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.28rem 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.mail-form__check .mail-form__hint {
  display: block;
  margin-top: 0.15rem;
}
.mail-form label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
}
.mail-form__label { line-height: 1.4; }
.mail-form__hint {
  font-weight: 400;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.mail-form input[type="text"],
.mail-form input[type="email"],
.mail-form input[type="tel"],
.mail-form input[type="url"],
.mail-form select,
.mail-form textarea {
  width: 100%;
  margin: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  line-height: 1.6;
}
.mail-form textarea {
  min-height: 9rem;
  resize: vertical;
}
.mail-form input:focus,
.mail-form select:focus,
.mail-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.mail-form button.btn {
  justify-self: start;
  width: auto;
  margin: 0.15rem 0 0;
  cursor: pointer;
}
.mail-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.mail-form__back {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.mail-form__back .btn { width: auto; }
.mail-confirm {
  margin: 0.25rem 0 0;
}
.mail-confirm__lead {
  margin: 0 0 0.4rem;
  color: var(--muted);
}
.mail-confirm__row {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.mail-confirm__label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.mail-confirm__value {
  margin: 0;
  font-weight: 400;
  white-space: pre-wrap;
  line-height: 1.7;
}
.mail-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}
.mail-confirm__actions .btn {
  width: auto;
  cursor: pointer;
}
