/**
 * 記事レイアウト — otamart.com 系ブログ（SWELL / 暖色イエローアクセント）を参考
 * :root は参考元のトークンに近い値
 * 配置: public_html/css/article-theme.css（js/ と同階層）
 */
:root {
  --color-main: #ffbd59;
  --color-main-dark: #bf8e43;
  --color-text: #333333;
  --color-text-muted: #666666;
  --color-link: #1176d4;
  --color-bg: #fdfdfd;
  --color-bg-muted: #f7f7f7;
  --color-border: rgba(0, 0, 0, 0.12);
  --grad-1: #d8ffff;
  --grad-2: #87e7ff;
  --container: min(960px, 100%);
  --header-h: 56px;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

  /* サイトヘッダー（ダッシュボード / top と同一トークン） */
  --text: #0f172a;
  --text-muted: #475569;
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-soft: #dbeafe;
  --site-border: #e2e8f0;
  --site-shadow: 0 10px 40px rgba(30, 58, 138, 0.08);
  --site-shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --max: 1120px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  word-wrap: break-word;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  opacity: 0.92;
}

/* ダッシュボード（dashboard/index.php）と同一のグローバルヘッダー */
.site-header {
  position: static;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--site-border);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui,
    -apple-system, sans-serif;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--primary-dark);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: var(--site-shadow-sm);
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 16px;
  }
}

/* パンくず（参考: p-breadcrumb） */
.otm-breadcrumb {
  background: var(--color-bg-muted);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 16px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.otm-breadcrumb__list {
  max-width: calc(var(--container) + 32px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
}

.otm-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.otm-breadcrumb__item:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  transform: rotate(-45deg);
  opacity: 0.7;
}

.otm-breadcrumb a {
  color: var(--color-text-muted);
}

.otm-breadcrumb a:hover {
  color: var(--color-link);
}

/* メイン */
.otm-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 16px 4rem;
}

/* 記事ヘッダ（参考: c-postTitle） */
.otm-postHead {
  margin-bottom: 1.5rem;
}

.otm-postTitle {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.otm-postDate {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--color-main-dark);
}

.otm-postDate__y {
  font-size: 1rem;
}

.otm-postDate__md {
  font-size: 1.35rem;
}

.otm-postMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 1.25rem;
}

.otm-cat {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-main-dark);
  background: rgba(255, 189, 89, 0.18);
  border: 1px solid rgba(255, 189, 89, 0.55);
  border-radius: 999px;
  text-decoration: none;
}

.otm-cat:hover {
  background: rgba(255, 189, 89, 0.28);
  text-decoration: none;
}

.otm-posted {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* アイキャッチ */
.otm-thumb {
  margin: 0 0 1.75rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.otm-thumb img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 要約ボックス（参考: swell cap_box） */
.otm-capbox {
  margin: 0 0 2rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.otm-capbox__ttl {
  margin: 0;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  background: linear-gradient(90deg, rgba(255, 189, 89, 0.35) 0%, rgba(255, 189, 89, 0.12) 100%);
  border-bottom: 1px solid rgba(255, 189, 89, 0.4);
}

.otm-capbox__body {
  padding: 16px 18px;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.otm-capbox__body ul {
  margin: 0;
  padding-left: 1.25rem;
}

.otm-capbox__body li {
  margin-bottom: 0.4rem;
}

/* 本文 */
.otm-content h2 {
  margin: 2.25rem 0 0.75rem;
  padding: 0.5rem 0 0.5rem 14px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  border-left: 4px solid var(--color-main);
  line-height: 1.4;
  background: linear-gradient(90deg, rgba(255, 189, 89, 0.12) 0%, transparent 100%);
}

/* 本文の先頭が h2 のときだけ上マージンを詰める */
.otm-content #article-dynamic-main > h2:first-child {
  margin-top: 0;
}

.otm-content p {
  margin: 0 0 1rem;
  font-size: var(--article-fz, 1rem);
}

.otm-content ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.otm-content li {
  margin-bottom: 0.45rem;
}

.otm-content ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.otm-content h3 {
  margin: 1rem 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-text);
}

.otm-content h2 + h3 {
  margin-top: 0.85rem;
}

.otm-content .otm-steps > li > h3 {
  margin-top: 0;
}

/* 手順リストの 1.2.3… 番号を出さない */
.otm-content ol.otm-steps {
  list-style: none;
  padding-left: 0;
}

.otm-content ol.otm-steps > li {
  list-style: none;
  margin-bottom: 1.15rem;
}

.otm-content ol.otm-steps > li:last-child {
  margin-bottom: 0;
}

.otm-content table {
  width: 100%;
  margin: 0 0 1rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.otm-content th,
.otm-content td {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.otm-content thead th {
  background: rgba(255, 189, 89, 0.18);
  font-weight: 700;
}

.otm-imgSlot {
  margin: 1rem 0 1.25rem;
}

.otm-imgSlot img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.otm-imgSlot figcaption {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.otm-imgSlot__price {
  margin-top: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
}

/* カード画像＋価格（記事内の例示用） */
.otm-card-examples-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.15rem;
  justify-content: center;
  align-items: flex-start;
  margin: 1rem 0 1.35rem;
}

.otm-card-examples-row .otm-imgSlot--card {
  flex: 1 1 240px;
  max-width: 300px;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 520px) {
  .otm-card-examples-row .otm-imgSlot--card {
    flex: 1 1 100%;
    max-width: 320px;
  }
}

.otm-imgSlot--card {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.75rem 0.75rem 0.85rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.otm-imgSlot--card img {
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
}

.otm-imgSlot--card .otm-imgSlot__caption {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin-top: 0.65rem;
  text-align: center;
}

.otm-imgSlot--card .otm-imgSlot__example-label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #9a3412;
  background: linear-gradient(90deg, rgba(254, 215, 170, 0.55) 0%, rgba(255, 247, 237, 0.95) 100%);
  border: 1px solid rgba(234, 88, 12, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  text-align: center;
}

.otm-imgSlot--card .otm-imgSlot__card-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
}

.otm-imgSlot--card .otm-imgSlot__card-no {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
}

.otm-imgSlot--card .otm-imgSlot__card-no-label {
  font-weight: 500;
  font-size: 0.75rem;
  color: #64748b;
}

.otm-imgSlot--card .otm-imgSlot__price {
  margin-top: 0.45rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: #0f172a;
}

.otm-imgSlot--card .otm-imgSlot__price-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.45;
  color: #64748b;
}

/* 記事002：カード例（画像＋テキストを縦に並べて枠内中央に配置） */
html[data-article-id="002"] .otm-card-examples-row {
  gap: 0.35rem 0.45rem;
  margin: 0.4rem 0 0.5rem;
}

html[data-article-id="002"] .otm-card-examples-row .otm-imgSlot--card {
  flex: 1 1 140px;
  max-width: min(100%, 200px);
}

@media (max-width: 520px) {
  html[data-article-id="002"] .otm-card-examples-row .otm-imgSlot--card {
    max-width: min(100%, 200px);
  }
}

html[data-article-id="002"] .otm-imgSlot--card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
  margin: 0;
  padding: 0.25rem 0.35rem 0.3rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

html[data-article-id="002"] .otm-imgSlot--card .otm-imgSlot__example-label {
  align-self: stretch;
  margin: 0 0 0.2rem;
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.25rem;
  text-align: center;
}

html[data-article-id="002"] .otm-imgSlot__media {
  max-width: 96px;
  width: 100%;
  margin: 0 0 0.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

html[data-article-id="002"] .otm-imgSlot__media img {
  border-radius: 4px;
  display: block;
  margin: 0;
  width: 100%;
  height: auto;
}

html[data-article-id="002"] .otm-imgSlot--card .otm-imgSlot__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}

html[data-article-id="002"] .otm-imgSlot--card .otm-imgSlot__card-name {
  display: block;
  width: 100%;
  font-size: 0.6875rem;
  line-height: 1.25;
  word-break: break-word;
}

html[data-article-id="002"] .otm-imgSlot--card .otm-imgSlot__card-no {
  display: block;
  width: 100%;
  font-size: 0.5625rem;
  line-height: 1.25;
}

html[data-article-id="002"] .otm-imgSlot--card .otm-imgSlot__card-no-label {
  font-size: 0.5rem;
}

html[data-article-id="002"] .otm-imgSlot--card .otm-imgSlot__price {
  display: block;
  width: 100%;
  margin: 0.05rem 0 0;
  padding: 0;
  border-top: none;
  font-size: 0.6875rem;
  line-height: 1.25;
  word-break: break-all;
}

/* 記事本文：リード・目次・強調 */
.otm-lead {
  margin: 0 0 1.25rem;
  font-size: 1.025rem;
  line-height: 1.75;
  color: var(--color-text);
}

.otm-toc {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 0.9375rem;
}

.otm-toc__title {
  margin: 0 0 0.6rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
}

.otm-toc ol {
  margin: 0;
  padding-left: 1.35rem;
}

.otm-toc li {
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.otm-toc a {
  color: var(--color-link);
  text-decoration: none;
}

.otm-toc a:hover {
  text-decoration: underline;
}

.otm-point {
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  background: linear-gradient(90deg, rgba(255, 189, 89, 0.16) 0%, transparent 100%);
  border-left: 3px solid var(--color-main);
  border-radius: 0 6px 6px 0;
}

/* 筆者の見解（アイコン＋吹き出し） */
.otm-content .otm-author-view--chat {
  margin: 0 0 1.15rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.otm-content .otm-author-view__inner {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.5rem 0.65rem;
}

.otm-content .otm-author-view__speaker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 3.25rem;
  padding-bottom: 0.15rem;
}

.otm-content .otm-author-view__avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--site-shadow-sm);
}

.otm-content .otm-author-view__micro {
  margin-top: 0.3rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #475569;
  line-height: 1.2;
  text-align: center;
}

.otm-content .otm-author-view__bubble {
  position: relative;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.65rem 0.85rem 0.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.otm-content .otm-author-view__bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transform: rotate(45deg);
  border-radius: 0 0 0 2px;
}

.otm-content .otm-author-view__bubble-head {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #64748b;
}

.otm-content .otm-author-view__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
}

@media (max-width: 400px) {
  .otm-content .otm-author-view__inner {
    flex-direction: column;
    align-items: center;
  }

  .otm-content .otm-author-view__speaker {
    width: auto;
    padding-bottom: 0;
  }

  .otm-content .otm-author-view__bubble {
    width: 100%;
    border-bottom-left-radius: 14px;
  }

  .otm-content .otm-author-view__bubble::before {
    left: 50%;
    bottom: auto;
    top: -7px;
    transform: translateX(-50%) rotate(45deg);
  }
}

/* 見出し風の左ラインではなく「ポイント」注記カード */
.otm-content .otm-point--badge {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.65rem;
  padding: 0.55rem 0.75rem 0.6rem;
  font-size: 0.875rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.95);
  border-left: none;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.otm-content .otm-point__tag {
  flex-shrink: 0;
  margin-top: 0.1em;
  padding: 0.15rem 0.45rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
  color: #fff;
  background: var(--color-main);
  border-radius: 3px;
}

.otm-content .otm-point__text {
  flex: 1;
  min-width: 12ch;
}

.otm-content .otm-point--badge .otm-point__text strong {
  font-weight: 600;
}

/* 角ラベルなしのカード型ポイント */
.otm-content .otm-point--picon {
  --otm-picon-r: 10px;
  position: relative;
  display: block;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.55;
  font-weight: 400;
  color: var(--color-text);
  background: linear-gradient(165deg, #f0fbff 0%, #fff 55%, #fffef8 100%);
  border-left: none;
  border-radius: var(--otm-picon-r);
  border: 2px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: visible;
  animation: otm-picon-pop 0.4s cubic-bezier(0.34, 1.35, 0.64, 1) 1;
}

.otm-content .otm-point--picon strong {
  font-weight: 600;
}

@keyframes otm-picon-pop {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .otm-content .otm-point--picon {
    animation: none;
  }
}

.otm-tableCaption {
  caption-side: top;
  padding: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-text-muted);
}

.otm-bannerLink {
  display: block;
  line-height: 0;
}

.otm-bannerLink img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.otm-imgGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.otm-imgGrid .otm-imgSlot {
  margin: 0;
}

.otm-imgGrid .otm-imgSlot figcaption {
  font-size: 0.75rem;
  line-height: 1.35;
}

.otm-note {
  margin-top: 1.75rem;
  padding: 1rem 1.1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  background: #f9f9f9;
  border: 1px dashed var(--color-border);
  border-radius: 8px;
}

.otm-articleNav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.otm-articleNav p {
  margin: 0 0 0.5rem;
}

/* フッター */
.otm-footer {
  margin-top: 3rem;
  padding: 2rem 16px 2.5rem;
  background: linear-gradient(180deg, #f0fbff 0%, #e8f8fc 50%, #fdfdfd 100%);
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
}

.otm-footer a {
  color: var(--color-text-muted);
}

.otm-footer a:hover {
  color: var(--color-link);
}

/* 目次ページ用 */
.otm-index-hero {
  padding: 2rem 16px 1rem;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.otm-index-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--color-text);
}

.otm-index-hero p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.otm-index-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 16px 4rem;
}

.otm-index-list ol {
  margin: 0;
  padding-left: 1.25rem;
}

.otm-index-list li {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.otm-index-list a {
  font-weight: 600;
}

/*
 * SWELL / ポケカプライス系（pokeca-price.com 記事のトーン）
 * pokemon-ranking-2026-03/001 など body.article-swell のみに適用
 */
body.article-swell {
  --color-main: #058dc6;
  --color-main-dark: #046a95;
  --color-htag: #058dc6;
  --color-link: #1176d4;
  --color-bg: #fdfdfd;
  --color-bg-muted: #f5fafd;
  --grad-1: #d8ffff;
  --grad-2: #87e7ff;
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo,
    sans-serif;
  font-weight: 500;
}

body.article-swell .otm-breadcrumb {
  background: var(--color-bg-muted);
}

body.article-swell .otm-breadcrumb__list {
  max-width: min(900px, 100%);
}

body.article-swell .otm-main {
  max-width: 900px;
  padding-bottom: 3.5rem;
}

body.article-swell .otm-postDate {
  color: var(--color-main);
}

body.article-swell .otm-cat {
  color: #fff;
  background: repeating-linear-gradient(-45deg, hsla(0, 0%, 100%, 0.12), hsla(0, 0%, 100%, 0.12) 6px, transparent 6px, transparent 12px),
    linear-gradient(135deg, var(--color-main) 0%, var(--color-main-dark) 100%);
  border-color: rgba(5, 141, 198, 0.45);
}

body.article-swell .otm-cat:hover {
  color: #fff;
  background: linear-gradient(135deg, #0693d8 0%, var(--color-main-dark) 100%);
  opacity: 0.95;
}

body.article-swell .otm-thumb {
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

body.article-swell .otm-capbox__ttl {
  color: var(--color-text);
  background: linear-gradient(90deg, rgba(5, 141, 198, 0.14) 0%, rgba(135, 231, 255, 0.2) 100%);
  border-bottom: 1px solid rgba(5, 141, 198, 0.28);
}

body.article-swell .otm-toc {
  border-color: rgba(5, 141, 198, 0.2);
  box-shadow: 0 2px 12px rgba(5, 141, 198, 0.06);
}

body.article-swell .otm-point:not(.otm-point--badge):not(.otm-point--picon) {
  background: linear-gradient(90deg, rgba(5, 141, 198, 0.1) 0%, transparent 100%);
  border-left-color: var(--color-main);
}

body.article-swell .otm-content .otm-author-view:not(.otm-author-view--chat) {
  border-left-color: var(--color-main);
  background: linear-gradient(165deg, rgba(5, 141, 198, 0.06) 0%, #f8fafc 100%);
}

body.article-swell .otm-content .otm-author-view--chat .otm-author-view__bubble {
  border-color: rgba(5, 141, 198, 0.22);
  box-shadow: 0 2px 12px rgba(5, 141, 198, 0.08);
}

body.article-swell .otm-content .otm-author-view--chat .otm-author-view__bubble::before {
  border-left-color: rgba(5, 141, 198, 0.22);
  border-bottom-color: rgba(5, 141, 198, 0.22);
}

body.article-swell .otm-content .otm-point--badge {
  background: rgba(5, 141, 198, 0.045);
  border-color: rgba(5, 141, 198, 0.22);
  box-shadow: none;
}

body.article-swell .otm-content .otm-point--badge .otm-point__tag {
  background: linear-gradient(135deg, #058dc6 0%, #046a95 100%);
}

body.article-swell .otm-content .otm-point--picon {
  background: linear-gradient(165deg, rgba(224, 250, 255, 0.5) 0%, #fff 52%, rgba(255, 251, 235, 0.65) 100%);
  border-color: rgba(5, 141, 198, 0.35);
  box-shadow: 0 2px 12px rgba(5, 106, 149, 0.08);
}

body.article-swell .otm-content thead th {
  background: rgba(5, 141, 198, 0.12);
  color: var(--color-main-dark);
}

body.article-swell .otm-footer {
  background: #fdfdfd;
  border-top: 1px solid var(--color-border);
}

/* h2：帯見出し + 上下ライン（SWELL .post_content h2 系） */
body.article-swell .otm-content h2 {
  position: relative;
  margin: 2.5rem 0 1rem;
  padding: 0.75em 1em;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  background: var(--color-htag);
  border-left: none;
  border-radius: 0;
  background-image: none;
}

body.article-swell .otm-content h2::before {
  content: "";
  position: absolute;
  display: block;
  pointer-events: none;
  top: -4px;
  left: 0;
  width: 100%;
  height: calc(100% + 4px);
  box-sizing: content-box;
  border-top: solid 2px var(--color-htag);
  border-bottom: solid 2px var(--color-htag);
}

body.article-swell .otm-content #article-dynamic-main > h2:first-child {
  margin-top: 0;
}

/* h3：下線ドット（SWELL .post_content h3 系） */
body.article-swell .otm-content h3 {
  position: relative;
  margin: 1.35rem 0 0.65rem;
  padding: 0 0.5em 0.5em;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text);
}

body.article-swell .otm-content h3::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-htag) 0%,
    var(--color-htag) 29.3%,
    rgba(150, 150, 150, 0.22) 29.3%,
    rgba(150, 150, 150, 0.22) 100%
  );
}

body.article-swell .otm-content h2 + h3 {
  margin-top: 1rem;
}

body.article-swell .otm-content .otm-steps > li > h3 {
  margin-top: 0;
}

/* h4：左アクセント（記事内で使用時） */
body.article-swell .otm-content h4 {
  margin: 1rem 0 0.5rem;
  padding: 0 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  border-left: solid 2px var(--color-htag);
  color: var(--color-text);
}

body.article-swell .site-header {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

@media (max-width: 720px) {
  body.article-swell .otm-main {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* 素体 ↔ PSA 比較（画像＋名前・価格・倍増アピール） */
.otm-content .otm-psaCompare {
  margin: 1rem auto 1.35rem;
  padding: 0;
  width: fit-content;
  max-width: min(600px, 100%);
}

.otm-content .otm-psaCompare__row {
  /* 従来比 1.5 倍の表示高さ */
  --otm-psa-img-h: clamp(195px, 33vw, 315px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 0.2rem 0.5rem;
  padding: 0;
  margin-inline: auto;
  max-width: 100%;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.otm-content .otm-psaCompare__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  width: 100%;
}

.otm-content .otm-psaCompare__badge {
  display: inline-block;
  margin-bottom: 0.25rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #4a5568;
  background: #e8edf2;
  border-radius: 999px;
}

.otm-content .otm-psaCompare__badge--psa {
  color: #fff;
  background: linear-gradient(135deg, #058dc6 0%, #046a95 100%);
  box-shadow: 0 2px 8px rgba(5, 141, 198, 0.35);
}

.otm-content .otm-psaCompare__frame {
  width: 100%;
  max-width: none;
  height: var(--otm-psa-img-h);
  margin: 0 auto 0.4rem;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.otm-content .otm-psaCompare__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border: none;
  outline: none;
}

.otm-content .otm-psaCompare__name {
  margin: 0 0 0.4rem;
  width: 100%;
  font-size: clamp(0.8125rem, 2.2vw, 0.9375rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  min-height: 1.35em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 長いカード名を 1 行に収める（列幅に応じて字をやや縮小） */
.otm-content .otm-psaCompare__name--nowrap {
  white-space: nowrap;
  max-width: 100%;
  width: 100%;
  text-align: center;
  font-size: clamp(0.62rem, 2.35vw, 0.875rem);
  letter-spacing: -0.02em;
}

.otm-content .otm-psaCompare__price {
  margin: 0;
  min-height: 2.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
}

.otm-content .otm-psaCompare__priceNum {
  font-size: clamp(1.2rem, 3.6vw, 1.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #2d3748;
  font-variant-numeric: tabular-nums;
}

/* 金額の見た目サイズは左右同一（ハイライトはグラデのみ） */
.otm-content .otm-psaCompare__price--highlight .otm-psaCompare__priceNum {
  background: linear-gradient(165deg, #fff8e7 0%, #f0d78c 22%, #d4a012 48%, #b8860b 72%, #8b6914 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.45)) drop-shadow(0 2px 6px rgba(139, 105, 20, 0.28));
}

.otm-content .otm-psaCompare__bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: max-content;
  min-width: 0;
  max-width: 2.5rem;
  margin-inline: 0;
  padding: 0.1rem 0;
  box-sizing: border-box;
  text-align: center;
  align-self: center;
}

.otm-content .otm-psaCompare__arrow {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23058dc6' d='M8 24h22l-6-7 2-2 10 11-10 11-2-2 6-7H8z'/%3E%3C/svg%3E");
  opacity: 0.95;
  animation: otm-psaCompare-nudge-x 2.2s ease-in-out infinite;
}

@keyframes otm-psaCompare-nudge-x {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

@keyframes otm-psaCompare-nudge-y {
  0%,
  100% {
    transform: rotate(90deg) translateX(0);
  }
  50% {
    transform: rotate(90deg) translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .otm-content .otm-psaCompare__arrow {
    animation: none;
  }
}

.otm-content .otm-psaCompare__caption {
  margin: 0.35rem auto 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  font-size: clamp(0.52rem, 1.85vw + 0.28rem, 0.72rem);
  line-height: 1.45;
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .otm-content .otm-psaCompare {
    width: fit-content;
    max-width: min(560px, 96vw);
  }

  /* スマホでも 2 列横並び（画像は従来比 1.5 倍） */
  .otm-content .otm-psaCompare__row {
    --otm-psa-img-h: clamp(114px, 30vw, 195px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0.12rem 0.35rem;
    padding: 0;
    align-items: start;
  }

  .otm-content .otm-psaCompare__badge {
    font-size: 0.58rem;
    padding: 0.08rem 0.3rem;
    margin-bottom: 0.2rem;
  }

  .otm-content .otm-psaCompare__frame {
    margin-bottom: 0.3rem;
  }

  .otm-content .otm-psaCompare__name {
    line-height: 1.35;
    min-height: 1.35em;
  }

  .otm-content .otm-psaCompare__name--nowrap {
    font-size: clamp(0.45rem, 2.6vw, 0.65rem);
    letter-spacing: -0.03em;
  }

  .otm-content .otm-psaCompare__price {
    min-height: 2.5rem;
  }

  .otm-content .otm-psaCompare__caption {
    padding: 0 0.15rem;
  }
}
