/*
Theme Name: キャリアきつね (Career Kitsune)
Theme URI: https://www.career-kitsune.com/
Author: キャリアきつね編集部
Author URI: https://www.career-kitsune.com/
Description: 転職・キャリア・職務経歴書・面接・年収アップなど「働く」の悩みに、きつね先生が信頼感をもって寄り添う転職・キャリアメディア向けWordPressテーマ。上品なネイビー×ゴールドの落ち着いたデザイン、賢いきつね先生のマスコット、クリーンなゴシックフォント。SEO（OGP・JSON-LD構造化データ）標準対応。
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: keiei-tanuki
Tags: blog, business, career, two-columns, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   キャリアきつね Design System
   上品ネイビー × ゴールド / 信頼感のあるクリーンなゴシック・賢いきつねモチーフ
   ========================================================= */
:root {
  --kt-background: #f6f8fc;
  --kt-surface: #ffffff;
  --kt-surface-2: #eef2f8;
  --kt-border: #e2e8f2;
  --kt-foreground: #1c2740;     /* 深いネイビーインク */
  --kt-muted: #5a6985;
  --kt-muted-2: #97a3ba;
  --kt-accent: #1f3c66;         /* ネイビー（メイン） */
  --kt-accent-2: #2f5489;       /* 明るいネイビー */
  --kt-gold: #c4a052;           /* 上品なゴールド（アクセント） */
  --kt-gold-soft: #e7d9b4;      /* 淡いゴールド */
  --kt-glow: rgba(31, 60, 102, 0.18);
  --kt-maxw: 1120px;
  --kt-radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body.career-kitsune {
  margin: 0;
  background: var(--kt-background);
  color: var(--kt-foreground);
  font-family: var(--kt-font-sans, "Noto Sans JP"), system-ui, -apple-system,
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
body.career-kitsune::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55rem 38rem at 8% -10%, rgba(31, 60, 102, 0.07), transparent 60%),
    radial-gradient(48rem 34rem at 98% 0%, rgba(196, 160, 82, 0.08), transparent 55%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--kt-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

.kt-display {
  font-family: var(--kt-font-display, "Zen Kaku Gothic New"), "Noto Sans JP",
    sans-serif;
}

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

.kt-gradient-text {
  background: linear-gradient(110deg, #1f3c66 0%, #2f5489 45%, #c4a052 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.kt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.kt-btn--primary {
  color: #fff;
  background: linear-gradient(90deg, var(--kt-accent), var(--kt-accent-2));
  box-shadow: 0 10px 30px -10px var(--kt-glow);
}
.kt-btn--primary:hover {
  transform: scale(1.03);
}
.kt-btn--ghost {
  color: var(--kt-foreground);
  background: var(--kt-surface);
  border-color: var(--kt-border);
}
.kt-btn--ghost:hover {
  border-color: rgba(196, 160, 82, 0.6);
}

/* ---------- Header ---------- */
.kt-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--kt-border);
  background: rgba(246, 248, 252, 0.85);
  backdrop-filter: blur(14px);
}
.kt-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.kt-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kt-logo__badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--kt-surface);
  border: 1px solid var(--kt-border);
  box-shadow: 0 2px 8px -2px var(--kt-glow);
  transition: transform 0.25s ease;
}
.kt-logo:hover .kt-logo__badge {
  transform: rotate(-6deg);
}
.kt-logo__name {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  color: var(--kt-foreground);
  line-height: 1.1;
}
.kt-logo__tag {
  font-size: 10px;
  color: var(--kt-muted-2);
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.kt-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.kt-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--kt-muted);
  transition: color 0.2s ease;
}
.kt-nav a:hover {
  color: var(--kt-foreground);
}
.kt-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--kt-border);
  background: var(--kt-surface);
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--kt-foreground);
}
.kt-mobile-menu {
  display: none;
  border-top: 1px solid var(--kt-border);
  background: var(--kt-background);
  padding: 12px 20px 18px;
}
.kt-mobile-menu.is-open {
  display: block;
}
.kt-mobile-menu a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--kt-muted);
  font-weight: 500;
}
.kt-mobile-menu a:hover {
  background: var(--kt-surface-2);
  color: var(--kt-foreground);
}

/* ---------- Affiliate disclosure ---------- */
.kt-affiliate-disclosure {
  border-bottom: 1px solid rgba(227, 221, 204, 0.82);
  background: rgba(255, 253, 248, 0.76);
}
.kt-affiliate-disclosure__inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.kt-affiliate-disclosure__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--kt-foreground);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.kt-affiliate-disclosure p {
  margin: 0;
  color: var(--kt-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

/* ---------- Hero ---------- */
.kt-hero {
  border-bottom: 1px solid var(--kt-border);
}
.kt-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: center;
  gap: 44px;
  padding: 76px 0;
}
.kt-hero__copy {
  min-width: 0;
}
.kt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--kt-border);
  background: var(--kt-surface);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--kt-muted);
  letter-spacing: 0.02em;
}
.kt-hero h1 {
  margin: 22px 0 0;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.01em;
  max-width: 18em;
}
.kt-hero__copy > p {
  margin: 22px 0 0;
  max-width: 38em;
  color: var(--kt-muted);
  font-size: 1.05rem;
}
.kt-hero__cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.kt-hero-ad-slider {
  position: relative;
  align-self: stretch;
  min-height: 376px;
  overflow: hidden;
  border: 1px solid rgba(227, 221, 204, 0.92);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(236, 241, 226, 0.78)),
    var(--kt-surface);
  box-shadow: 0 26px 60px -38px rgba(46, 33, 23, 0.42);
}
.kt-hero-ad-slider::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  pointer-events: none;
}
.kt-hero-ad-slider__label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--kt-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.kt-hero-ad__viewport {
  position: relative;
  min-height: 376px;
}
.kt-hero-ad__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.kt-hero-ad__slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.kt-hero-ad-slider--fade .kt-hero-ad__slide {
  transform: none;
}
.kt-hero-ad__visual {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--kt-accent), var(--kt-gold));
}
.kt-hero-ad__visual img {
  width: 100%;
  height: 100%;
  min-height: 154px;
  object-fit: cover;
}
.kt-hero-ad__placeholder {
  display: grid;
  place-items: center;
  min-height: 154px;
  padding: 28px;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.35), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(135deg, var(--kt-accent), var(--kt-gold));
}
.kt-hero-ad__placeholder span {
  font-family: var(--kt-font-display, "M PLUS Rounded 1c"), sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(46, 33, 23, 0.2);
}
.kt-hero-ad__code {
  position: relative;
  display: grid;
  min-height: 154px;
  padding: 18px;
  place-items: center;
  background: rgba(255, 255, 255, 0.68);
}
.kt-hero-ad__code a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}
.kt-hero-ad__code img {
  width: auto;
  max-width: 100%;
  max-height: 132px;
  object-fit: contain;
}
.kt-hero-ad__code img[width="1"],
.kt-hero-ad__code img[height="1"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.kt-hero-ad-slider:has(.kt-hero-ad__slide--banner.is-active) .kt-hero-ad-slider__label,
.kt-hero-ad-slider.is-banner-active .kt-hero-ad-slider__label {
  display: none;
}
.kt-hero-ad__slide--banner .kt-hero-ad__visual {
  display: grid;
  flex: 1;
  min-height: 100%;
  background: #fff;
}
.kt-hero-ad__slide--banner .kt-hero-ad__code {
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 18px;
  background: #fff;
}
.kt-hero-ad__slide--banner .kt-hero-ad__code a {
  width: 100%;
  height: 100%;
}
.kt-hero-ad__slide--banner .kt-hero-ad__code img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.kt-hero-ad__slide--banner .kt-hero-ad__code img[width="1"],
.kt-hero-ad__slide--banner .kt-hero-ad__code img[height="1"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.kt-hero-ad__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px 76px;
}
.kt-hero-ad__kicker {
  color: var(--kt-accent);
  font-size: 0.76rem;
  font-weight: 800;
}
.kt-hero-ad__title {
  display: block;
  margin-top: 8px;
  color: var(--kt-foreground);
  font-family: var(--kt-font-display, "M PLUS Rounded 1c"), sans-serif;
  font-size: 1.32rem;
  line-height: 1.45;
}
.kt-hero-ad__copy {
  margin: 10px 0 0;
  max-width: none;
  color: var(--kt-muted);
  font-size: 0.88rem;
  line-height: 1.75;
}
.kt-hero-ad__link {
  align-self: flex-start;
  margin-top: auto;
  padding: 11px 18px;
  font-size: 0.84rem;
}
.kt-hero-ad__controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.kt-hero-ad__nav {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--kt-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--kt-foreground);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.kt-hero-ad__nav:hover {
  transform: translateY(-1px);
  border-color: rgba(154, 91, 46, 0.45);
}
.kt-hero-ad__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.kt-hero-ad__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(107, 102, 90, 0.32);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.kt-hero-ad__dot.is-active {
  width: 22px;
  background: var(--kt-accent);
}

/* ---------- Sections ---------- */
.kt-section {
  padding: 56px 0;
}
.kt-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
}
.kt-section__head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 16px;
}
.kt-section__head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--kt-accent), var(--kt-gold));
}
.kt-section__more {
  font-size: 0.88rem;
  color: var(--kt-muted);
  font-weight: 600;
}
.kt-section__more:hover {
  color: var(--kt-foreground);
}

/* ---------- Cover (gradient or image) ---------- */
.kt-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--kt-accent), var(--kt-accent-2));
}
.kt-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kt-cover__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 55, 0.18);
}
.kt-cover__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: soft-light;
}
.kt-cover__label {
  position: absolute;
  left: 18px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.97);
  font-family: var(--kt-font-display, "Zen Kaku Gothic New"), sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-shadow: 0 2px 12px rgba(15, 25, 50, 0.4);
}
/* キャリアきつねカテゴリ：ネイビー基調に上品なバリエーション */
.kt-grad-tenshoku { background: linear-gradient(135deg, #1f3c66, #34689e); }   /* 転職ノウハウ */
.kt-grad-career { background: linear-gradient(135deg, #14506b, #2b8ca6); }     /* キャリアプラン */
.kt-grad-resume { background: linear-gradient(135deg, #3a4a66, #5a6f96); }     /* 書類・経歴書 */
.kt-grad-interview { background: linear-gradient(135deg, #2c3a72, #4b5ba0); }  /* 面接対策 */
.kt-grad-income { background: linear-gradient(135deg, #8a6d2f, #c4a052); }     /* 年収・給与 */
.kt-grad-skill { background: linear-gradient(135deg, #1f5a4f, #2f8a73); }      /* スキル・資格 */
.kt-grad-1 { background: linear-gradient(135deg, #1f3c66, #34689e); }
.kt-grad-2 { background: linear-gradient(135deg, #2c3a72, #4b5ba0); }
.kt-grad-3 { background: linear-gradient(135deg, #14506b, #2b8ca6); }
.kt-grad-4 { background: linear-gradient(135deg, #1f5a4f, #2f8a73); }
.kt-grad-5 { background: linear-gradient(135deg, #8a6d2f, #c4a052); }
.kt-grad-0 { background: linear-gradient(135deg, #1f3c66, #c4a052); }

/* ---------- Cards ---------- */
.kt-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.kt-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius);
  background: var(--kt-surface);
  box-shadow: 0 1px 2px rgba(20, 30, 55, 0.04);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease, box-shadow 0.3s ease;
}
.kt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 160, 82, 0.5);
  box-shadow: 0 22px 44px -22px var(--kt-glow);
}
.kt-card__cover {
  aspect-ratio: 16 / 9;
  width: 100%;
}
.kt-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}
.kt-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--kt-muted-2);
}
.kt-card__cat {
  font-weight: 700;
  color: var(--kt-accent);
}
.kt-card__title {
  margin: 12px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
}
.kt-card__title a {
  color: var(--kt-foreground);
  transition: color 0.2s ease;
}
.kt-card:hover .kt-card__title a {
  color: var(--kt-accent);
}
.kt-card__excerpt {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--kt-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kt-card__foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--kt-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--kt-muted-2);
}
.kt-avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--kt-surface-2);
  color: var(--kt-accent);
  font-size: 10px;
  font-weight: 700;
}

/* ---------- Featured ---------- */
.kt-featured {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
.kt-featured__lead .kt-cover {
  aspect-ratio: 16 / 10;
}
.kt-featured__lead .kt-card__title {
  font-size: 1.5rem;
}
.kt-featured__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.kt-mini {
  display: flex;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius);
  background: var(--kt-surface);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.kt-mini:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 160, 82, 0.45);
  box-shadow: 0 18px 36px -22px var(--kt-glow);
}
.kt-mini .kt-cover {
  width: 140px;
  min-height: 110px;
  border-radius: 12px;
  flex-shrink: 0;
}
.kt-mini__body {
  display: flex;
  flex-direction: column;
}
.kt-mini__title {
  margin: 6px 0 0;
  font-weight: 700;
  line-height: 1.45;
}
.kt-mini__title a {
  color: var(--kt-foreground);
}
.kt-mini:hover .kt-mini__title a {
  color: var(--kt-accent);
}

/* ---------- Categories ---------- */
.kt-cats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.kt-cat {
  display: block;
  padding: 24px;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius);
  background: var(--kt-surface);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.kt-cat:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 160, 82, 0.5);
  box-shadow: 0 22px 44px -22px var(--kt-glow);
}
.kt-cat__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 14px;
  color: #fff;
}
.kt-cat__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.kt-cat:hover .kt-cat__name {
  color: var(--kt-accent);
}
.kt-cat__desc {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--kt-muted);
}
.kt-cat__count {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--kt-gold);
  font-weight: 700;
}

/* ---------- CTA ---------- */
.kt-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(31, 60, 102, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(31, 60, 102, 0.06), var(--kt-surface) 55%);
  padding: 48px;
}
.kt-cta__tanuki {
  position: absolute;
  right: 12px;
  top: 12px;
  opacity: 0.55;
}
.kt-cta h2 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
}
.kt-cta p {
  margin: 12px 0 0;
  color: var(--kt-muted);
  max-width: 34em;
}
.kt-cta__form {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.kt-cta__form input {
  flex: 1;
  min-width: 220px;
  border-radius: 999px;
  border: 1px solid var(--kt-border);
  background: var(--kt-background);
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--kt-foreground);
}
.kt-cta__form input:focus {
  outline: none;
  border-color: rgba(196, 160, 82, 0.6);
}

/* ---------- Single article ---------- */
.kt-article__header {
  border-bottom: 1px solid var(--kt-border);
}
.kt-article__header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 40px;
}
.kt-breadcrumb {
  font-size: 0.84rem;
  color: var(--kt-muted-2);
  margin-bottom: 22px;
}
.kt-breadcrumb a {
  color: var(--kt-muted);
}
.kt-breadcrumb a:hover {
  color: var(--kt-foreground);
}
.kt-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--kt-accent), var(--kt-gold));
}
.kt-article__title {
  margin: 18px 0 0;
  font-size: clamp(1.8rem, 4.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.42;
}
.kt-article__excerpt {
  margin: 16px 0 0;
  font-size: 1.1rem;
  color: var(--kt-muted);
}
.kt-byline {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--kt-muted-2);
}
.kt-byline__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kt-byline__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--kt-accent), var(--kt-gold));
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}
.kt-article__cover {
  max-width: 980px;
  margin: 32px auto 0;
  padding: 0 20px;
}
.kt-article__cover .kt-cover {
  aspect-ratio: 2 / 1;
  border-radius: 24px;
}
.kt-article__layout {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 240px;
  max-width: var(--kt-maxw);
  margin: 0 auto;
  padding: 48px 20px;
}
.kt-article__main {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

/* Prose */
.kt-prose {
  font-size: 1.06rem;
  line-height: 2.05;
  color: #2a3550;
}
.kt-prose > * + * {
  margin-top: 1.4em;
}
.kt-prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.5;
  margin-top: 2.2em;
  padding: 6px 0 6px 16px;
  border-left: 5px solid var(--kt-gold);
  color: #16213a;
  scroll-margin-top: 90px;
}
.kt-prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.7em;
  padding-bottom: 6px;
  border-bottom: 2px dotted var(--kt-border);
  color: #213152;
}
.kt-prose p {
  color: #2a3550;
}
.kt-prose a {
  color: var(--kt-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kt-prose strong {
  color: #14264a;
  font-weight: 700;
  background: linear-gradient(transparent 65%, rgba(196, 160, 82, 0.35) 65%);
}
.kt-prose img {
  border-radius: 16px;
  margin: 1.6em 0;
}
.kt-prose ul {
  list-style: none;
  padding-left: 0;
}
.kt-prose ul li {
  position: relative;
  padding-left: 1.6em;
  margin-top: 0.7em;
}
.kt-prose ul li::before {
  content: "";
  position: absolute;
  left: 0.1em;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--kt-gold);
}
.kt-prose ol {
  counter-reset: item;
  list-style: none;
  padding-left: 0;
}
.kt-prose ol li {
  position: relative;
  padding-left: 2.2em;
  margin-top: 0.7em;
  counter-increment: item;
}
.kt-prose ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.6em;
  height: 1.6em;
  display: grid;
  place-items: center;
  font-size: 0.8em;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--kt-accent), var(--kt-accent-2));
  border-radius: 8px;
}
.kt-prose blockquote {
  margin: 1.8em 0;
  border-left: 3px solid var(--kt-gold);
  background: var(--kt-surface-2);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  font-size: 1.05rem;
  color: var(--kt-foreground);
}
.kt-prose blockquote p {
  margin: 0;
  color: var(--kt-foreground);
}

/* TOC */
.kt-toc {
  position: sticky;
  top: 88px;
  align-self: start;
}
.kt-toc__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--kt-muted-2);
  text-transform: uppercase;
}
.kt-toc__list {
  margin-top: 14px;
  border-left: 1px solid var(--kt-border);
}
.kt-toc__list a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--kt-muted);
}
.kt-toc__list a:hover {
  border-left-color: var(--kt-gold);
  color: var(--kt-foreground);
}

.kt-tags {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--kt-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kt-tag {
  border: 1px solid var(--kt-border);
  background: var(--kt-surface);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.76rem;
  color: var(--kt-muted);
}
.kt-author-box {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--kt-border);
  border-radius: var(--kt-radius);
  background: var(--kt-surface-2);
  padding: 22px;
}

/* Callout */
.kt-callout {
  margin: 1.8em 0;
  border: 1px solid rgba(31, 60, 102, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(31, 60, 102, 0.06), transparent);
  padding: 22px;
}
.kt-callout__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--kt-accent);
  margin: 0 0 8px;
}

/* ---------- Category / Archive hero ---------- */
.kt-archive-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--kt-border);
  border-radius: 24px;
  padding: 48px;
  color: #fff;
}
.kt-archive-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 52, 0.42);
}
.kt-archive-hero__inner {
  position: relative;
}
.kt-archive-hero h1 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}
.kt-archive-hero p {
  margin: 10px 0 0;
  max-width: 40em;
  color: rgba(255, 255, 255, 0.9);
}

/* Filters */
.kt-filters {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kt-chip {
  border: 1px solid var(--kt-border);
  background: var(--kt-surface);
  color: var(--kt-muted);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.86rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.kt-chip:hover,
.kt-chip.is-active {
  border-color: rgba(196, 160, 82, 0.5);
  color: var(--kt-foreground);
}
.kt-chip.is-active {
  background: rgba(31, 60, 102, 0.06);
  font-weight: 600;
}

/* Pagination */
.kt-pagination {
  margin-top: 40px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.kt-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--kt-border);
  background: var(--kt-surface);
  color: var(--kt-muted);
  font-size: 0.9rem;
}
.kt-pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--kt-accent), var(--kt-accent-2));
  color: #fff;
  border-color: transparent;
}

/* ---------- Footer ---------- */
.kt-footer {
  margin-top: 80px;
  border-top: 1px solid var(--kt-border);
  background: rgba(31, 60, 102, 0.035);
}
.kt-footer__inner {
  padding: 52px 0;
  display: grid;
  gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.kt-footer h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--kt-muted-2);
  margin: 0 0 16px;
}
.kt-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kt-footer li + li {
  margin-top: 10px;
}
.kt-footer li a {
  color: var(--kt-muted);
  font-size: 0.9rem;
}
.kt-footer li a:hover {
  color: var(--kt-foreground);
}
.kt-footer__brand p {
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--kt-muted);
  max-width: 24em;
}
.kt-footer__bottom {
  border-top: 1px solid var(--kt-border);
  padding: 22px 0;
  font-size: 0.78rem;
  color: var(--kt-muted-2);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ---------- 404 / search empty ---------- */
.kt-empty {
  text-align: center;
  padding: 100px 20px;
}
.kt-empty__code {
  font-family: var(--kt-font-display, "Zen Kaku Gothic New"), sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
}

/* ---------- Animations ---------- */
@keyframes kt-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.kt-fade {
  animation: kt-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

::selection {
  background: rgba(31, 60, 102, 0.22);
  color: #14213a;
}

/* WP core helpers */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.aligncenter { margin-left: auto; margin-right: auto; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--kt-muted-2); text-align: center; }
.sticky, .gallery-caption, .bypostauthor { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .kt-hero__inner {
    grid-template-columns: 1fr;
  }
  .kt-hero-ad-slider {
    width: min(100%, 620px);
  }
  .kt-grid { grid-template-columns: repeat(2, 1fr); }
  .kt-cats { grid-template-columns: repeat(2, 1fr); }
  .kt-featured { grid-template-columns: 1fr; }
  .kt-article__layout { grid-template-columns: 1fr; }
  .kt-toc { display: none; }
  .kt-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .kt-nav { display: none; }
  .kt-menu-toggle { display: grid; place-items: center; }
  .kt-grid { grid-template-columns: 1fr; }
  .kt-cats { grid-template-columns: 1fr; }
  .kt-footer__inner { grid-template-columns: 1fr; }
  .kt-affiliate-disclosure__inner {
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .kt-affiliate-disclosure p {
    font-size: 0.72rem;
    line-height: 1.65;
  }
  .kt-hero__inner {
    gap: 28px;
    padding: 52px 0;
  }
  .kt-hero-ad-slider,
  .kt-hero-ad__viewport {
    min-height: 344px;
  }
  .kt-hero-ad__visual,
  .kt-hero-ad__visual img,
  .kt-hero-ad__placeholder,
  .kt-hero-ad__code {
    min-height: 132px;
  }
  .kt-hero-ad__code img {
    max-height: 112px;
  }
  .kt-hero-ad__body {
    padding: 20px 20px 72px;
  }
  .kt-hero-ad__title {
    font-size: 1.12rem;
  }
  .kt-hero-ad__copy {
    font-size: 0.82rem;
  }
  .kt-mini .kt-cover { width: 110px; }
  .kt-cta { padding: 32px 22px; }
  .kt-archive-hero { padding: 32px 22px; }
}
