/* ============================================================
   tenkara-theme-kit — Header
   ============================================================ */
.tk-skip-link {
    position: absolute; left: -9999px; top: -9999px;
}
.tk-skip-link:focus { left: 12px; top: 12px; padding: 8px 14px; background: #0a0a0a; color: #F7F2E7; z-index: 9999; }

.tk-header {
    background: #F7F2E7;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    z-index: 100;
    transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
    position: relative;
}
.tk-header.is-sticky {
    position: sticky; top: 0;
}
.tk-header.is-scrolled {
    background: rgba(247, 242, 231, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.tk-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    gap: 32px;
    transition: padding 0.25s ease;
}
.tk-header.is-scrolled .tk-header-inner { padding-top: 12px; padding-bottom: 12px; }

@media (max-width: 768px) {
    .tk-header-inner { padding: 14px 18px; gap: 12px; }
}

/* Logo */
.tk-header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: var(--tk-sumi, #0a0a0a) !important;
    flex-shrink: 0;
}
.tk-header-logo-mark {
    width: 32px;
    height: 32px;
    background: var(--tk-shu, #B9301A);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transform: rotate(-2deg);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tk-header-logo:hover .tk-header-logo-mark { transform: rotate(2deg) scale(1.06); }
.tk-header-logo-jp {
    font-family: 'Noto Serif JP', serif;
    color: var(--tk-washi, #F7F2E7);
    font-size: 9px;
    letter-spacing: 1px;
    line-height: 1;
    text-align: center;
}
.tk-header-logo-text {
    font-family: 'Noto Serif Display', Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--tk-sumi, #0a0a0a);
    letter-spacing: -0.2px;
}

/* Nav */
.tk-header-nav { flex: 1; min-width: 0; }
.tk-header-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.tk-header-menu li { position: relative; }
.tk-header-menu a,
.tk-header-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    color: var(--tk-ink, #3a3a3a) !important;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-decoration: none !important;
    position: relative;
    transition: color 0.2s ease;
}
.tk-header-menu a::after,
.tk-header-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1px;
    background: var(--tk-shu, #B9301A);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tk-header-menu a:hover,
.tk-header-menu .current-menu-item > a,
.tk-header-link:hover { color: var(--tk-sumi, #0a0a0a) !important; }
.tk-header-menu a:hover::after,
.tk-header-menu .current-menu-item > a::after,
.tk-header-link:hover::after { transform: scaleX(1); }

@media (max-width: 1024px) {
    .tk-header-menu { display: none; }
}

/* Tools */
.tk-header-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.tk-header-lang {
    display: flex; align-items: center; gap: 4px;
    font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 1px;
}
.tk-lang-link {
    color: var(--tk-stone, #888780) !important;
    text-decoration: none !important;
    padding: 4px 6px;
    transition: color 0.2s;
    font-weight: 500;
}
.tk-lang-link:hover { color: var(--tk-sumi, #0a0a0a) !important; }
.tk-lang-link.is-active { color: var(--tk-shu, #B9301A) !important; }
.tk-lang-sep { color: var(--tk-mist, #c8c5bd); font-size: 12px; }

.tk-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: var(--tk-sumi, #0a0a0a);
    color: var(--tk-washi, #F7F2E7) !important;
    text-decoration: none !important;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.tk-header-cta:hover {
    background: var(--tk-shu, #B9301A);
    transform: translateY(-1px);
}
.tk-header-cta-icon { display: inline-flex; line-height: 0; }

@media (max-width: 600px) {
    .tk-header-cta-label { display: none; }
    .tk-header-cta { padding: 8px 10px; }
}

/* Burger (mobile) */
.tk-header-burger {
    display: none;
    width: 32px; height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}
.tk-header-burger span {
    width: 18px; height: 1px; background: var(--tk-sumi, #0a0a0a);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.tk-header-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tk-header-burger.is-open span:nth-child(2) { opacity: 0; }
.tk-header-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) { .tk-header-burger { display: flex; } }

.tk-header-spacer { display: none; }
.tk-main-anchor { display: block; height: 0; }

/* Mobile overlay */
.tk-mobile-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--tk-washi, #F7F2E7);
    z-index: 99;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tk-mobile-overlay.is-open { transform: translateY(0); }
.tk-mobile-overlay[hidden] { display: block !important; }

.tk-mobile-inner {
    padding: 80px 32px 40px;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.tk-mobile-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 40px; height: 40px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--tk-sumi, #0a0a0a);
    cursor: pointer;
    line-height: 1;
}

.tk-mobile-kana {
    font-family: 'Noto Serif JP', serif;
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--tk-shu, #B9301A);
    margin-bottom: 32px;
}

.tk-mobile-menu {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
}
.tk-mobile-menu li {
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
}
.tk-mobile-menu a {
    display: block;
    padding: 16px 0;
    font-family: 'Noto Serif Display', Georgia, serif;
    font-size: 22px;
    color: var(--tk-sumi, #0a0a0a) !important;
    text-decoration: none !important;
    transition: color 0.2s, padding-left 0.2s;
}
.tk-mobile-menu a:hover { color: var(--tk-shu, #B9301A) !important; padding-left: 8px; }

.tk-mobile-cta {
    display: inline-block;
    padding: 12px 22px;
    background: var(--tk-sumi, #0a0a0a);
    color: var(--tk-washi, #F7F2E7) !important;
    text-decoration: none !important;
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    margin-bottom: 24px;
}

.tk-mobile-lang {
    display: flex;
    gap: 12px;
    color: var(--tk-stone, #888780);
    font-size: 12px;
    letter-spacing: 2px;
}

body.tk-mobile-locked { overflow: hidden; }
