@charset "UTF-8";
/*
 Theme Name: SANGO Child
 Theme URI: https://saruwakakun.design
 Author: SARUWAKA
 Author URI: https://saruwakakun.com
 Template: sango-theme
 Version: 4.0
*/

/* ─────────────────────────────── VARIABLES ─── */
:root {
  --black:        #1c1c1e;
  --gray-dk:      #3a3a3c;
  --gray-md:      #8a8a8e;
  --gray-lt:      #c7c7cc;
  --gray-bg:      #f2f2f2;
  --white:        #fafaf8;
  --orange:       #f5844a;
  --orange-lt:    #fff0e8;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    22px;
  --shadow:       0 2px 16px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,.14);
}

/* ─── サイト全体フォント ─── */
body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #1c1c1e;
  -webkit-font-smoothing: antialiased;
}

/* ─── フロントページ全体 ─── */
.home {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
.home *, .home *::before, .home *::after { box-sizing: border-box; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-bg); }
::-webkit-scrollbar-thumb { background: var(--gray-lt); border-radius: 3px; }

/* ─────────────────────────────── MARQUEE ─── */
.tl-marquee-wrap {
  background: var(--black);
  color: rgba(255,255,255,.5);
  padding: 10px 0;
  overflow: hidden;
  font-size: 0.72rem;
  letter-spacing: .1em;
  font-weight: 500;
}
.tl-marquee-inner {
  display: flex;
  animation: tl-marquee 30s linear infinite;
  white-space: nowrap;
}
.tl-marquee-item { padding: 0 32px; }
.tl-marquee-item span { color: var(--orange); margin-right: 8px; }
@keyframes tl-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────────────────────────── HEADER ─── */
.home .site-header,
.home #header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: rgba(250,250,248,.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1.5px solid #e8e8e8 !important;
  box-shadow: none !important;
}
/* カスタムテンプレートのヘッダー追従 */
header:has(.tl-header-inner) {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,250,248,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid rgba(0,0,0,.07);
  transition: box-shadow .2s;
}
header:has(.tl-header-inner).scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.tl-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tl-logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tl-logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 900; font-size: 1rem;
  letter-spacing: -.03em; font-family: 'Inter', sans-serif;
  overflow: hidden; flex-shrink: 0;
}
.tl-logo-mark--icon { background: none; padding: 0; }
.tl-logo-mark--icon img { width: 36px; height: 36px; object-fit: cover; border-radius: 10px; display: block; }
.tl-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
/* サイトアイコン使用時はサブタイトルのみ非表示、サイト名は表示 */
.tl-logo-wrap:has(.tl-logo-mark--icon) .tl-logo-sub { display: none; }
.tl-logo-name { font-weight: 800; font-size: 1.05rem; color: var(--black); letter-spacing: -.01em; }
.tl-logo-sub  { font-size: 0.62rem; color: var(--gray-md); font-weight: 400; }
.tl-header-nav { display: flex; gap: 2px; }
.tl-header-nav a {
  text-decoration: none; color: var(--gray-dk);
  font-size: 0.82rem; font-weight: 500;
  padding: 7px 11px; border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  display: flex; align-items: center; gap: 4px;
}
.tl-header-nav a:hover { background: var(--gray-bg); color: var(--black); }
/* カテゴリー別ホバーカラー */
.tl-header-nav a.tl-nav-cat-game:hover    { background: #f0f0f0; color: #1c1c1e; }
.tl-header-nav a.tl-nav-cat-dtm:hover     { background: #f3eefa; color: #7b5ea7; }
.tl-header-nav a.tl-nav-cat-howto:hover   { background: #fff4ee; color: #f5844a; }
.tl-header-nav a.tl-nav-cat-gadget:hover  { background: #e8f5f4; color: #2a9d8f; }
.tl-header-nav a.tl-nav-cat-program:hover { background: #fdeaea; color: #e63946; }
.tl-header-right { display: flex; align-items: center; gap: 8px; }
.tl-search-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid #e0e0e0; background: transparent;
  cursor: pointer; color: var(--gray-md);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.tl-search-btn:hover { background: var(--gray-bg); color: var(--black); }

/* ─────────────────────────────── HERO ─── */
.tl-hero {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 24px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tl-hero--single { grid-template-columns: 1fr; }
.tl-hero--single .tl-hero-main { min-height: 380px; max-width: 720px; }
.tl-hero-main {
  background: var(--black);
  border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.tl-hero-main:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tl-hero-overlay { position: absolute; inset: 0; background: rgba(10,10,20,.62); z-index: 0; }
.tl-hero-deco { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.tl-hero-deco::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,132,74,.35) 0%, transparent 65%);
}
.tl-hero-cat {
  position: absolute; top: 30px; right: 28px; z-index: 2;
  font-size: 0.7rem; font-weight: 700; letter-spacing: .1em;
  background: rgba(255,255,255,.15); color: #fff;
  padding: 5px 12px; border-radius: 20px; backdrop-filter: blur(4px);
}
.tl-hero-body { position: relative; z-index: 1; padding: 28px 30px; }
.tl-hero-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: .1em;
  background: var(--orange); color: #fff;
  padding: 4px 10px; border-radius: 20px; margin-bottom: 12px;
}
.tl-hero-title { font-size: 1.18rem; font-weight: 800; color: #fff; line-height: 1.5; margin-bottom: 10px; }
.tl-hero-date  { font-size: 0.72rem; color: rgba(255,255,255,.5); }

/* Hero sub cards */
.tl-hero-sub { display: flex; flex-direction: column; gap: 12px; }
.tl-sub-card {
  background: #fff; border-radius: var(--radius-md);
  border: 1.5px solid #ebebeb; padding: 16px;
  display: flex; gap: 14px; align-items: flex-start;
  text-decoration: none; color: var(--black);
  transition: box-shadow .15s, transform .15s;
}
.tl-sub-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tl-sub-thumb {
  width: 80px; height: 80px; border-radius: 10px;
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.tl-sub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tl-sub-body { flex: 1; min-width: 0; }
.tl-sub-cat  { font-size: 0.64rem; font-weight: 700; letter-spacing: .08em; color: var(--orange); margin-bottom: 5px; }
.tl-sub-title {
  font-size: 0.84rem; font-weight: 700; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tl-sub-date { font-size: 0.68rem; color: var(--gray-md); margin-top: 5px; }

/* ─────────────────────────────── ITEM CARD (商品カード) ─── */
.tl-item-card {
  border: 1.5px solid #e8e8e8;
  border-radius: var(--radius-lg);
  padding: 22px 24px 20px;
  margin: 28px 0;
  background: #fff;
}
.tl-item-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.72rem; color: var(--gray-md); font-weight: 500;
  margin-bottom: 18px;
}
.tl-item-label::before,
.tl-item-label::after { content: ''; flex: 1; height: 1px; background: #e0e0e0; }
.tl-item-inner {
  display: flex; gap: 18px; align-items: flex-start;
}
.tl-item-img {
  width: 100px; height: 100px; flex-shrink: 0;
  background: #f5f5f5; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
}
.tl-item-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.tl-item-body { flex: 1; min-width: 0; }
.tl-item-title {
  font-size: 0.97rem; font-weight: 800; line-height: 1.5;
  color: var(--black); margin-bottom: 8px;
}
.tl-item-desc {
  font-size: 0.82rem; color: var(--gray-dk); line-height: 1.7;
  margin-bottom: 14px;
}
.tl-item-links { display: flex; gap: 10px; flex-wrap: wrap; }
.tl-shop-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 700;
  text-decoration: none; color: #fff;
  transition: filter .15s, transform .1s;
}
.tl-shop-btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.tl-shop-btn--a   { background: #FF9900; }
.tl-shop-btn--r   { background: #BF0000; }
.tl-shop-btn--y   { background: #FF0033; }
.tl-shop-btn--m   { background: #FF0211; }
.tl-shop-btn--ali { background: #FF6000; }
@media (max-width: 600px) {
  .tl-item-inner { flex-direction: column; }
  .tl-item-img { width: 100px; height: 100px; align-self: center; flex-shrink: unset; }
}

/* ─────────────────────────────── CATEGORIES ─── */
.tl-cats-section { max-width: 1100px; margin: 0 auto; padding: 10px 24px 24px; }
.tl-cats-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: .12em;
  color: var(--gray-md); text-transform: uppercase;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.tl-cats-label::after { content: ''; flex: 1; height: 1px; background: #e8e8e8; }
.tl-cats-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.tl-cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid; transition: all .15s;
}
.tl-cat-pill:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.tl-cat-pill.game   { color: #1c1c1e; border-color: #1c1c1e; background: #fff; }
.tl-cat-pill.game:hover   { background: #1c1c1e; color: #fff; }
.tl-cat-pill.dtm    { color: #7b5ea7; border-color: #c8b4e4; background: #f8f4ff; }
.tl-cat-pill.dtm:hover    { background: #7b5ea7; color: #fff; border-color: #7b5ea7; }
.tl-cat-pill.howto  { color: var(--orange); border-color: #fac9a4; background: var(--orange-lt); }
.tl-cat-pill.howto:hover  { background: var(--orange); color: #fff; border-color: var(--orange); }
.tl-cat-pill.gadget { color: #2a9d8f; border-color: #a8dad4; background: #edf7f6; }
.tl-cat-pill.gadget:hover { background: #2a9d8f; color: #fff; border-color: #2a9d8f; }
.tl-cat-pill.prog   { color: #e63946; border-color: #f5b8bb; background: #fff5f5; }
.tl-cat-pill.prog:hover   { background: #e63946; color: #fff; border-color: #e63946; }

/* ─────────────────────────────── MAIN LAYOUT ─── */
.tl-main-wrap {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px 60px;
  display: grid; grid-template-columns: 1fr 300px; gap: 32px;
}
.tl-section-title {
  font-size: 0.72rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--black);
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.tl-section-title::before { content: ''; width: 16px; height: 3px; border-radius: 2px; background: var(--orange); }

/* ─── ARTICLE GRID ─── */
.tl-article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tl-article-card {
  background: #fff; border-radius: var(--radius-md);
  border: 1.5px solid #ebebeb; overflow: hidden;
  text-decoration: none; color: var(--black);
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.tl-article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.tl-card-thumb {
  aspect-ratio: 16/9; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 2.6rem;
}
.tl-card-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.tl-thumb-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.18); z-index: 1; }
.tl-thumb-label {
  position: absolute; bottom: 8px; left: 10px; z-index: 2;
  font-size: 0.63rem; font-weight: 700; letter-spacing: .08em;
  padding: 3px 9px; border-radius: 20px; color: #fff;
}
.tl-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.tl-card-title {
  font-size: 0.88rem; font-weight: 700; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.tl-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.tl-card-date { font-size: 0.68rem; color: var(--gray-md); }
.tl-card-arrow {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gray-bg); display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: var(--gray-md); transition: background .15s, color .15s;
}
.tl-article-card:hover .tl-card-arrow { background: var(--orange); color: #fff; }
.tl-th-game   { background: linear-gradient(135deg, #1c1c2e, #2d2d44); }
.tl-th-dtm    { background: linear-gradient(135deg, #f0ebff, #dfd5f7); }
.tl-th-howto  { background: linear-gradient(135deg, #fff0e8, #ffe0ca); }
.tl-th-gadget { background: linear-gradient(135deg, #e8f7f5, #c8ecea); }
.tl-th-prog   { background: linear-gradient(135deg, #fff5f5, #ffd8da); }
.tl-th-tag    { background: linear-gradient(135deg, #1a1a2e, #2c2c3e); }
.tl-archive-fa-icon { font-size: 2.6rem; color: rgba(255,255,255,.65); }
.tl-load-more-wrap { grid-column: span 2; text-align: center; margin-top: 8px; }
.tl-btn-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 100px;
  border: 2px solid var(--black); background: transparent;
  font-size: 0.85rem; font-weight: 700; color: var(--black);
  cursor: pointer; text-decoration: none; transition: all .15s;
}
.tl-btn-more:hover { background: var(--black); color: #fff; }

/* ─────────────────────────────── SIDEBAR ─── */
.tl-sidebar { display: flex; flex-direction: column; gap: 24px; }
.tl-profile-card {
  background: #fff; border-radius: var(--radius-md);
  border: 1.5px solid #ebebeb; padding: 24px 20px; text-align: center;
}
.tl-profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--black); margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  border: 3px solid #fff; box-shadow: 0 0 0 2px var(--black); overflow: hidden;
}
.tl-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tl-profile-name { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.tl-profile-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 700; letter-spacing: .08em;
  background: var(--orange-lt); color: var(--orange); padding: 3px 10px; border-radius: 20px; margin-bottom: 12px;
}
.tl-profile-bio { font-size: 0.78rem; color: var(--gray-dk); line-height: 1.7; text-align: left; }
.tl-profile-interests { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tl-interest-tag { font-size: 0.7rem; font-weight: 500; background: var(--gray-bg); color: var(--gray-dk); padding: 4px 10px; border-radius: 20px; }
.tl-widget-card { background: #fff; border-radius: var(--radius-md); border: 1.5px solid #ebebeb; padding: 20px; }
.tl-widget-title {
  font-size: 0.72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--black);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1.5px solid #f0f0f0;
}
.tl-widget-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--orange); }
.tl-recent-list { display: flex; flex-direction: column; }
.tl-recent-item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed #efefef;
  text-decoration: none; color: var(--black); transition: opacity .15s;
}
.tl-recent-item:last-child { border-bottom: none; }
.tl-recent-item:hover { opacity: .7; }
.tl-recent-num {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--gray-bg); color: var(--gray-md);
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.tl-recent-num.top { background: var(--orange); color: #fff; }
.tl-recent-text {
  font-size: 0.78rem; font-weight: 500; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tl-cat-list { display: flex; flex-direction: column; }
.tl-cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px dashed #efefef;
  text-decoration: none; color: var(--black); font-size: 0.82rem; transition: opacity .15s;
}
.tl-cat-item:last-child { border-bottom: none; }
.tl-cat-item:hover { opacity: .75; }
.tl-cat-item-left { display: flex; align-items: center; gap: 8px; }
.tl-cat-icon { font-size: 0.8rem; width: 14px; text-align: center; color: var(--gray-md); }
.tl-cat-item--game:hover    .tl-cat-icon { color: #1c1c1e; }
.tl-cat-item--dtm:hover     .tl-cat-icon { color: #7b5ea7; }
.tl-cat-item--howto:hover   .tl-cat-icon { color: #f5844a; }
.tl-cat-item--gadget:hover  .tl-cat-icon { color: #2a9d8f; }
.tl-cat-item--program:hover .tl-cat-icon { color: #e63946; }
.tl-cat-count { font-size: 0.68rem; font-weight: 700; color: var(--gray-md); background: var(--gray-bg); padding: 2px 8px; border-radius: 10px; }

/* ─────────────────────────────── FOOTER ─── */
.tl-site-footer { background: var(--black); color: rgba(255,255,255,.5); }
.tl-footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 48px 24px 32px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
}
.tl-footer-logo .tl-logo-mark { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); margin-bottom: 10px; }
.tl-footer-logo .tl-logo-name { color: rgba(255,255,255,.8); }
.tl-footer-logo .tl-logo-sub  { color: rgba(255,255,255,.3); }
.tl-footer-bio { font-size: 0.78rem; line-height: 1.8; margin-top: 12px; color: rgba(255,255,255,.4); }
.tl-footer-col-title { font-size: 0.68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 14px; }
.tl-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tl-footer-links a { color: rgba(255,255,255,.5); text-decoration: none; font-size: 0.82rem; transition: color .15s; display: flex; align-items: center; gap: 6px; }
.tl-footer-links a i { font-size: 0.72rem; width: 12px; text-align: center; flex-shrink: 0; }
.tl-footer-links a:hover { color: rgba(255,255,255,.9); }
.tl-footer-bottom {
  max-width: 1100px; margin: 0 auto; padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; color: rgba(255,255,255,.25);
}
.tl-footer-bottom-links { display: flex; gap: 16px; }
.tl-footer-bottom a { color: rgba(255,255,255,.25); text-decoration: none; }
.tl-footer-bottom a:hover { color: rgba(255,255,255,.6); }

/* ═══════════════════════════════════════════════
   記事ページ（single.php）
════════════════════════════════════════════════ */

/* ─── レイアウト ─── */
.tl-single-outer {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.tl-single-main { min-width: 0; }
.tl-sidebar--sticky { position: sticky; top: 84px; } /* 64px header + 20px gap */

/* アンカージャンプ時にヘッダーに隠れないよう余白を確保 */
.tl-post-content h2,
.tl-post-content h3,
.tl-post-content h4 {
  scroll-margin-top: 80px;
}

/* ─── 目次（開閉式） ─── */
.tl-toc-card {}
.tl-toc-details { list-style: none; }
.tl-toc-details > summary { list-style: none; }
.tl-toc-details > summary::-webkit-details-marker { display: none; }
.tl-toc-summary {
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.tl-toc-chevron {
  font-size: 0.72rem;
  color: var(--gray-md);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: auto;
}
.tl-toc-details[open] .tl-toc-chevron { transform: rotate(180deg); }
.tl-toc-details[open] .tl-toc-summary {
  padding-bottom: 10px;
  border-bottom: 1.5px solid #f0f0f0;
  margin-bottom: 4px;
}
.tl-toc { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.tl-toc-item {
  display: block;
  text-decoration: none;
  color: var(--gray-dk);
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 5px 8px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.tl-toc-item:hover { background: var(--orange-lt); color: var(--orange); border-left-color: var(--orange); }
.tl-toc-h2 { font-weight: 600; }
.tl-toc-h3 { padding-left: 20px; color: var(--gray-md); font-size: 0.78rem; }
.tl-article-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* ─── アイキャッチ ─── */
.tl-eyecatch {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.tl-eyecatch::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,132,74,.5) 0%, transparent 70%);
  top: -40px; right: -40px;
}
.tl-eyecatch-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tl-eyecatch-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,20,.6);
}
.tl-eyecatch-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}
.tl-eyecatch-emoji { font-size: 3.5rem; margin-bottom: 12px; }
.tl-eyecatch-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.5;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.tl-eyecatch-badge {
  margin-top: 14px;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: .08em;
}

/* ─── 記事メタ ─── */
.tl-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.78rem;
  color: #999;
  flex-wrap: wrap;
}
.tl-post-meta .tl-cat-badge {
  background: var(--orange);
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

/* ─── 本文エリア ─── */
.tl-post-content {
  padding: 28px 28px 40px;
  font-size: 15px;
  line-height: 1.9;
  color: #1c1c1e;
  /* Sangoブロックのテーマカラーをオレンジに統一 */
  --sgb-main-color: #f5844a;
  --sgb-pastel-color: #fff0e8;
  --sgb-accent-color: #f5844a;
  --wp--preset--color--sango-main: #f5844a;
  --wp--preset--color--sango-pastel: #fff0e8;
  --wp--preset--color--sango-accent: #f5844a;
  --wp--preset--color--sango-light-orange: #fff0e8;
}
.tl-post-content p {
  margin-bottom: 1.2em;
}
.tl-post-content strong {
  font-weight: 700;
  color: #222;
}

/* ─── 見出し h2 ─── */
.tl-post-content h2,
.sango-heading {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--black) !important;
  margin: 2em 0 1em !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #eee !important;
  background: none !important;
  border-left: none !important;
  border-top: none !important;
  border-right: none !important;
  padding-left: 0 !important;
}
.sango-heading .icon-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
/* Sangoブロック（wp:sgb/headings）の内部インラインスタイルを上書き */
.sango-heading .sgb-heading__inner {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 1rem !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}
.sango-heading .sgb-heading__inner i,
.sango-heading .sgb-heading__inner .fa {
  width: 28px !important; height: 28px !important;
  border-radius: 50% !important;
  background: var(--orange) !important;
  color: #fff !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 0.8rem !important;
  flex-shrink: 0 !important;
}
.sango-heading .sgb-heading__text {
  color: var(--black) !important;
}

/* ─── 見出し h3 ─── */
.tl-post-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin: 1.6em 0 0.8em;
  padding-left: 12px;
  border-left: 3px solid var(--orange);
}

/* ─── 吹き出し ─── */
.say-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 1.4em 0;
}
.say-avatar { flex-shrink: 0; text-align: center; }
.say-avatar img {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid #d5d5d5;
  display: block;
}
.say-bubble {
  position: relative;
  background: #fff;
  border: 1.5px solid #d5d5d5;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.75;
  flex: 1;
}
.say-bubble::before {
  content: '';
  position: absolute;
  left: -10px; top: 18px;
  border: 5px solid transparent;
  border-right-color: #d5d5d5;
}
.say-bubble::after {
  content: '';
  position: absolute;
  left: -8px; top: 19px;
  border: 4px solid transparent;
  border-right-color: #fff;
}

/* ─── テーブル ─── */
.sango-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.9rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.sango-table thead th {
  background: #f4f4f4;
  color: #333;
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid #ddd;
}
.sango-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
.sango-table tbody tr:last-child td { border-bottom: none; }
.sango-table tbody tr:nth-child(even) td { background: #fafafa; }

/* ─── リスト ─── */
.sango-list {
  list-style: none;
  padding: 0;
  margin: 1em 0 1.4em;
}
.sango-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  font-size: 0.92rem;
  line-height: 1.7;
}
.sango-list li:last-child { border-bottom: none; }
.sango-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── 関連記事カード ─── */
.related-card {
  display: flex;
  align-items: center;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--black);
  margin: 1.4em 0;
  position: relative;
  transition: box-shadow .2s;
  background: #fff;
}
.related-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.related-card .badge-top {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: .05em;
  z-index: 2;
}
.related-card img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  flex-shrink: 0;
}
.related-card .card-body {
  padding: 16px 20px;
  flex: 1;
}
.related-card .card-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
}
.related-card .card-desc { font-size: 0.75rem; color: #888; }
.related-card .badge-bottom {
  position: absolute;
  bottom: 0; right: 0;
  background: var(--orange);
  color: #fff;
  font-size: 0.8rem;
  padding: 5px 14px 5px 10px;
  border-radius: 6px 0 0 0;
}

/* ─── 商品カード（プレビュー用レガシークラスは tl-item-card に統一） ─── */
.tl-item-card {
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 1.6em 0;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.tl-item-card .tl-item-label {
  font-size: 0.7rem;
  color: #aaa;
  letter-spacing: .1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tl-item-card .tl-item-label::before { content: ''; display: block; width: 30px; height: 1px; background: #ddd; }
.tl-item-card .tl-item-label::after  { content: ''; display: block; flex: 1; height: 1px; background: #ddd; }
.tl-item-inner { display: flex; gap: 16px; align-items: flex-start; }
.tl-item-inner img {
  width: 110px; height: 110px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 6px;
  flex-shrink: 0;
  background: #fafafa;
}
.tl-item-body { flex: 1; }
.tl-item-body .tl-item-title { font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; line-height: 1.5; }
.tl-item-body .tl-item-desc { font-size: 0.78rem; color: #777; margin-bottom: 10px; line-height: 1.6; }
.tl-item-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tl-shop-btn {
  color: #fff;
  font-size: 0.8rem; font-weight: 700;
  padding: 7px 16px; border-radius: 6px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  transition: filter .15s, transform .1s;
}
.tl-shop-btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.tl-shop-btn--a   { background: #ff9900; }
.tl-shop-btn--r   { background: #bf0000; }
.tl-shop-btn--y   { background: #ff0033; }
.tl-shop-btn--m   { background: #ff0211; }
.tl-shop-btn--ali { background: #ff6000; }

/* ─── スクリーンショット / コードブロック ─── */
.screenshot {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin: 1em 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  border: 1px solid #ddd;
}
.screenshot .sc-header {
  background: #2d2d2d;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-dot { width: 10px; height: 10px; border-radius: 50%; }
.sc-title { color: #bbb; font-size: 0.72rem; margin-left: 6px; font-family: monospace; }
.screenshot .sc-body {
  background: #1e1e1e;
  padding: 14px 16px;
  font-family: monospace;
  font-size: 0.82rem;
  color: #ccc;
  line-height: 2;
}
.sc-row { display: flex; justify-content: space-between; padding: 2px 0; }
.sc-label { color: #85c1e9; }
.sc-val.hot  { color: #e74c3c; font-weight: 700; }
.sc-val.warm { color: #f39c12; font-weight: 700; }
.sc-val.ok   { color: #2ecc71; font-weight: 700; }
.sc-section  { color: #a29bfe; font-size: 0.75rem; margin-top: 4px; border-top: 1px solid #333; padding-top: 4px; margin-bottom: 2px; }

/* ─── まとめボックス ─── */
.summary-box {
  background: linear-gradient(135deg, #fff8f3, #fff);
  border: 2px solid var(--orange);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 2em 0 1em;
}
.summary-box .summary-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════════════════════════
   アーカイブページ（archive.php）
════════════════════════════════════════════════ */

.tl-archive-hero {
  padding: 48px 24px;
  display: flex;
  justify-content: center;
  position: relative;
}
.tl-archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0.55);
  z-index: 0;
}
.tl-archive-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1100px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.tl-archive-emoji { font-size: 3.5rem; flex-shrink: 0; }
.tl-archive-meta  { display: flex; flex-direction: column; gap: 6px; }
.tl-archive-type  {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
}
.tl-archive-name  {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}
.tl-archive-desc  { font-size: 0.82rem; color: rgba(255,255,255,.7); }
.tl-archive-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.1);
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  width: fit-content;
}

.tl-archive-wrap {
  max-width: 1100px;
  margin: 32px auto 60px;
  padding: 0 24px;
}

/* ページネーション */
.tl-pagination { margin-top: 32px; display: flex; justify-content: center; }
.tl-pagination .page-numbers {
  display: flex;
  list-style: none;
  gap: 8px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.tl-pagination .page-numbers li a,
.tl-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #ebebeb;
  color: var(--black);
  background: #fff;
  transition: all .15s;
}
.tl-pagination .page-numbers li a:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.tl-pagination .page-numbers li span.current { background: var(--black); color: #fff; border-color: var(--black); }
.tl-pagination .page-numbers li a.prev,
.tl-pagination .page-numbers li a.next { width: auto; padding: 0 16px; gap: 6px; }

/* ═══════════════════════════════════════════════
   404ページ
════════════════════════════════════════════════ */

.tl-404-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 48px;
  text-align: center;
}
.tl-404-number {
  font-size: 7rem;
  font-weight: 900;
  color: #d0d0d0;
  line-height: 1;
  font-family: 'Inter', sans-serif;
  letter-spacing: -.04em;
  margin-bottom: -16px;
}
.tl-404-emoji  { font-size: 2.4rem; margin-bottom: 16px; }
.tl-404-title  { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }
.tl-404-desc   { font-size: 0.85rem; color: var(--gray-md); margin-bottom: 24px; line-height: 1.8; }

.tl-404-wrap {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

/* ─────────────────────────────── FIXED PAGE ─── */
.tl-page-wrap {
  max-width: 860px;
  margin: 48px auto 80px;
  padding: 0 24px;
}
.tl-page-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--black);
  margin: 0 0 36px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-bg);
}
.tl-page-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--gray-dk);
}
.tl-page-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin: 40px 0 12px;
  padding: 10px 16px;
  background: var(--gray-bg);
  border-radius: var(--radius-sm);
}
.tl-page-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin: 28px 0 8px;
  padding-left: 12px;
  border-left: 3px solid var(--orange);
}
.tl-page-content p { margin: 0 0 16px; }
.tl-page-content a { color: var(--orange); text-decoration: underline; }
.tl-page-content ul,
.tl-page-content ol { margin: 0 0 16px; padding-left: 24px; }
.tl-page-content li { margin-bottom: 6px; }

/* ─── 前後記事ナビ ─── */
.tl-post-nav {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}
.tl-post-nav-card {
  flex: 1;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--black);
  background: #fff;
  border: 1.5px solid #ebebeb;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s;
  min-width: 0;
}
.tl-post-nav-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.tl-post-nav-card--next { flex-direction: row-reverse; }
.tl-post-nav-thumb {
  width: 80px; height: 80px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  overflow: hidden;
}
.tl-post-nav-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tl-post-nav-body {
  flex: 1;
  padding: 10px 14px;
  min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.tl-post-nav-card--next .tl-post-nav-body { text-align: right; }
.tl-post-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .05em;
}
.tl-post-nav-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─────────────────────────────── BACK TO TOP ─── */
.tl-back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--black); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s;
}
.tl-back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.tl-back-top:hover { background: var(--orange); }

/* ─────────────────────────────── RESPONSIVE ─── */
@media (max-width: 600px) {
  .tl-item-inner { flex-direction: column; }
  .tl-item-inner img { width: 100px; height: 100px; align-self: center; flex-shrink: unset; }
}

@media (max-width: 820px) {
  .tl-hero { grid-template-columns: 1fr; }
  .tl-hero-main { min-height: 220px; }
  .tl-hero-sub { flex-direction: column; }
  .tl-sub-card { min-width: unset; }
  .tl-sub-thumb { width: 72px; height: 72px; }
  .tl-main-wrap { grid-template-columns: 1fr; }
  .tl-single-outer { grid-template-columns: 1fr; }
  .tl-toc-card { display: none; }
  .tl-article-grid { grid-template-columns: 1fr; }
  .tl-load-more-wrap { grid-column: span 1; }
  .tl-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .tl-post-nav { flex-direction: column; }
  .tl-post-nav-thumb { width: 72px; height: 72px; }

  /* SP: アイコンのみ1段表示、ホームボタン非表示 */
  .tl-header-right { display: none; }
  .tl-header-nav { display: flex; gap: 0; }
  .tl-header-nav a { font-size: 0; padding: 6px 8px; }
  .tl-header-nav a i { font-size: 1.05rem; }
}
