/*
Theme Name: Japan Tours
Theme URI: https://japanes.tours
Author: Japan Tours
Author URI: https://japanes.tours
Description: 日本と世界の旅行ガイドのためのプレミアム旅行マガジンテーマ。高速・SEO最適化・レスポンシブ・アニメーション対応。A premium magazine-style travel theme hand-built for japanes.tours.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: japan-tours
Tags: blog, travel, magazine, custom-menu, featured-images, translation-ready, responsive
*/

/* =========================================================
   Japan Tours — Premium Travel Magazine Theme
   ========================================================= */

:root {
  --ink:        #14213d;
  --indigo:     #16213e;
  --indigo-2:   #24325a;
  --red:        #0d9488;
  --red-dark:   #0f766e;
  --gold:       #c9a24b;
  --bg:         #fbfaf8;
  --bg-2:       #f4f1ec;
  --card:       #ffffff;
  --muted:      #6b7280;
  --muted-2:    #9aa1ad;
  --line:       #ece8e1;
  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 4px 20px rgba(20,33,61,.07);
  --shadow-md:  0 8px 30px rgba(20,33,61,.10);
  --shadow-lg:  0 18px 50px rgba(20,33,61,.16);
  --maxw:       1200px;
  --ease:       cubic-bezier(.22,.61,.36,1);
  --serif:      'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --sans:       'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.95;
  font-size: 16px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--red-dark); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Reading progress bar */
#jt-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  z-index: 999; transition: width .1s linear;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--indigo); color: #cdd4e0;
  font-size: 12.5px; letter-spacing: .04em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.topbar a { color: #cdd4e0; }
.topbar a:hover { color: #fff; }
.topbar .tb-tag { color: var(--gold); font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.site-logo { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo .logo-main { font-family: var(--serif); font-size: 25px; font-weight: 800; color: var(--indigo); letter-spacing: .02em; }
.site-logo .logo-main .dot { color: var(--red); }
.site-logo .logo-sub { font-size: 10.5px; letter-spacing: .28em; color: var(--muted-2); text-transform: uppercase; margin-top: 3px; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.site-nav a { display: block; padding: 9px 15px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 15px; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 6px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); border-radius: 2px; }
.site-nav a:hover { color: var(--red); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav .current-menu-item > a { color: var(--red); }

.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--indigo); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; transition: background .2s; }
.icon-btn:hover { background: var(--bg-2); }
.nav-toggle { display: none; }

/* Slide-down search */
.header-search { max-height: 0; overflow: hidden; background: #fff; border-bottom: 1px solid transparent; transition: max-height .3s var(--ease); }
body.search-open .header-search { max-height: 120px; border-bottom-color: var(--line); }
.header-search .container { padding-top: 16px; padding-bottom: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; padding: 14px 34px;
  border-radius: 50px; font-weight: 700; font-size: 15.5px;
  box-shadow: 0 10px 24px rgba(22,33,62,.32);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { background: var(--red-dark); color: #fff; transform: translateY(-3px); box-shadow: 0 16px 30px rgba(22,33,62,.4); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); box-shadow: none; }
.btn-ghost:hover { background: #fff; color: var(--indigo); border-color: #fff; }
.btn-dark { background: var(--indigo); box-shadow: 0 10px 24px rgba(20,33,61,.25); }
.btn-dark:hover { background: var(--indigo-2); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); animation: heroZoom 18s var(--ease) infinite alternate; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,24,44,.30) 0%, rgba(16,24,44,.55) 60%, rgba(16,24,44,.78) 100%); }
.hero-inner { position: relative; z-index: 3; padding: 90px 24px; max-width: 860px; }
.hero-kicker { display: inline-block; font-size: 12.5px; letter-spacing: .38em; font-weight: 600; color: #fff; margin-bottom: 22px; text-transform: uppercase; padding: 7px 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 50px; backdrop-filter: blur(4px); }
.hero h1 { font-family: var(--serif); font-size: clamp(32px, 5.4vw, 60px); font-weight: 800; line-height: 1.4; margin-bottom: 22px; letter-spacing: .02em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero p { font-size: clamp(15px, 2vw, 19px); color: #eef0f4; margin-bottom: 36px; font-weight: 300; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; color: #fff; font-size: 22px; animation: bounce 2s infinite; opacity: .8; }
@keyframes bounce { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,10px)} }

/* ---------- Section framing ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 52px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.section-title { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; color: var(--indigo); line-height: 1.4; }
.section-sub { color: var(--muted); margin-top: 12px; font-size: 15.5px; }

/* ---------- Featured strip ---------- */
.featured-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; }
.feat-main, .feat-side { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--indigo); min-height: 300px; display: flex; }
.feat-main { min-height: 420px; }
.feat-side-wrap { display: grid; grid-template-rows: 1fr 1fr; gap: 26px; }
.feat-card-link { position: relative; display: block; width: 100%; color: #fff; }
.feat-card-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feat-card-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(15,22,40,.85) 100%); }
.feat-card-link:hover img { transform: scale(1.06); }
.feat-body { position: relative; z-index: 2; margin-top: auto; padding: 28px; }
.feat-badge { display: inline-block; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 14px; border-radius: 50px; margin-bottom: 12px; letter-spacing: .04em; }
.feat-body h3 { font-family: var(--serif); font-size: 23px; font-weight: 700; line-height: 1.5; color: #fff; }
.feat-side .feat-body h3 { font-size: 17px; }
.feat-date { font-size: 12.5px; color: rgba(255,255,255,.75); margin-top: 10px; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; }
.cat-card { position: relative; background: var(--card); border-radius: var(--radius); padding: 40px 30px; text-align: center; box-shadow: var(--shadow); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); color: var(--ink); }
.cat-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: var(--ink); }
.cat-card:hover::before { transform: scaleX(1); }
.cat-card .emoji { font-size: 46px; margin-bottom: 16px; display: block; }
.cat-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; margin-bottom: 10px; color: var(--indigo); }
.cat-card p { font-size: 14px; color: var(--muted); }
.cat-card .cat-link { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--red); letter-spacing: .03em; }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.post-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.post-card-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.post-card:hover .post-card-thumb img { transform: scale(1.07); }
.post-card-badge { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--indigo); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 50px; backdrop-filter: blur(4px); }
.post-card-body { padding: 24px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.post-card-body h3 { font-family: var(--serif); font-size: 18.5px; font-weight: 700; line-height: 1.6; margin-bottom: 12px; }
.post-card-body h3 a { color: var(--indigo); }
.post-card-body h3 a:hover { color: var(--red); }
.post-card-excerpt { font-size: 13.5px; color: var(--muted); flex: 1; }
.post-card-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted-2); margin-top: 18px; }
.post-card-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: linear-gradient(135deg, var(--indigo) 0%, #2a2c58 100%); color: #fff; text-align: center; padding: 72px 24px; border-radius: var(--radius); overflow: hidden; }
.cta-band::before { content: "✈"; position: absolute; font-size: 220px; opacity: .05; top: -40px; right: -20px; transform: rotate(-15deg); }
.cta-band h2 { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; margin-bottom: 14px; position: relative; }
.cta-band p { color: #c7cdda; margin-bottom: 30px; position: relative; }

/* ---------- Page / archive header ---------- */
.page-hero { background: linear-gradient(135deg, var(--indigo) 0%, #263056 100%); color: #fff; text-align: center; padding: 74px 24px 66px; position: relative; }
.page-hero .breadcrumbs { color: rgba(255,255,255,.7); }
.page-hero .breadcrumbs a { color: rgba(255,255,255,.9); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; margin-top: 10px; }
.page-hero .desc { color: #c7cdda; margin-top: 12px; max-width: 620px; margin-left: auto; margin-right: auto; }

.breadcrumbs { font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { margin: 0 8px; opacity: .5; }

/* ---------- Layout with sidebar ---------- */
.content-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 48px; max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 90px; }
.content-wrap.no-sidebar { grid-template-columns: 1fr; max-width: 820px; }

/* ---------- Single post ---------- */
.single-article { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.single-hero-img { aspect-ratio: 21/9; overflow: hidden; background: var(--bg-2); }
.single-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.single-body { padding: 44px clamp(24px, 5vw, 60px) 56px; }
.single-meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13.5px; margin-bottom: 18px; flex-wrap: wrap; }
.single-meta .badge { background: var(--red); color: #fff; padding: 4px 15px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.single-meta .reading-time::before { content: "🕐 "; }
.single-title { font-family: var(--serif); font-size: clamp(27px, 4vw, 40px); font-weight: 800; line-height: 1.5; color: var(--indigo); margin-bottom: 22px; }
.single-share { display: flex; gap: 10px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 34px; font-size: 13px; color: var(--muted); }
.single-share a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--indigo); font-weight: 700; transition: transform .2s, background .2s, color .2s; }
.single-share a:hover { transform: translateY(-3px); background: var(--red); color: #fff; }

.entry-content { font-size: 16.5px; line-height: 2.05; color: #2a3145; }
.entry-content > * + * { margin-top: 1.6em; }
.entry-content h2 { font-family: var(--serif); font-size: 26px; font-weight: 800; color: var(--indigo); border-left: 5px solid var(--red); padding: 8px 0 8px 18px; margin-top: 2.4em; line-height: 1.5; }
.entry-content h3 { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--indigo); border-bottom: 2px solid var(--line); padding-bottom: 10px; margin-top: 2em; }
.entry-content h4 { font-size: 18px; font-weight: 700; color: var(--indigo); margin-top: 1.8em; }
.entry-content p { margin-top: 1.4em; }
.entry-content a { border-bottom: 1px solid rgba(22,33,62,.35); }
.entry-content a:hover { border-bottom-color: var(--red); }
.entry-content img { border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { text-align: center; font-size: 13px; color: var(--muted-2); margin-top: 10px; }
.entry-content blockquote { border-left: 4px solid var(--red); padding: 18px 24px; background: var(--bg-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #444b5e; font-style: italic; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li { margin-top: .5em; }
.entry-content ul li::marker { color: var(--red); }
.entry-content table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); font-size: 14.5px; }
.entry-content th { background: var(--indigo); color: #fff; padding: 14px 18px; text-align: left; font-weight: 600; }
.entry-content td { padding: 13px 18px; border-bottom: 1px solid var(--line); }
.entry-content tr:last-child td { border-bottom: none; }
.entry-content tr:nth-child(even) td { background: var(--bg); }
.entry-content .wp-block-pullquote, .entry-content .has-background { border-radius: var(--radius-sm); }

/* Callout tip box (use with <div class="tip"> in content) */
.entry-content .tip { background: #f2f4f8; border: 1px solid #d9deea; border-left: 4px solid var(--red); border-radius: var(--radius-sm); padding: 18px 22px; }

/* Tags */
.single-tags { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.single-tags a { background: var(--bg-2); color: var(--muted); font-size: 12.5px; padding: 6px 15px; border-radius: 50px; }
.single-tags a:hover { background: var(--red); color: #fff; }

/* Author box */
.author-box { display: flex; gap: 20px; align-items: flex-start; background: var(--bg-2); border-radius: var(--radius); padding: 28px; margin-top: 44px; }
.author-box .avatar { width: 66px; height: 66px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--indigo); display: grid; place-items: center; color: #fff; font-size: 26px; }
.author-box h4 { font-size: 16px; color: var(--indigo); margin-bottom: 6px; }
.author-box p { font-size: 13.5px; color: var(--muted); }

/* Post navigation */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 48px; }
.post-nav a { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; transition: border-color .2s, transform .2s; }
.post-nav a:hover { border-color: var(--red); transform: translateY(-2px); }
.post-nav .label { font-size: 12px; color: var(--muted-2); font-weight: 700; letter-spacing: .05em; }
.post-nav .title { font-size: 14.5px; color: var(--indigo); font-weight: 600; margin-top: 6px; display: block; }
.post-nav .next { text-align: right; }

/* Related posts */
.related { margin-top: 20px; }
.related .section-title { font-size: 26px; text-align: left; }

/* ---------- Sidebar ---------- */
.sidebar .widget { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin-bottom: 26px; }
.sidebar .widget-title { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--indigo); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--line); position: relative; }
.sidebar .widget-title::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 44px; height: 2px; background: var(--red); }
.sidebar ul { list-style: none; }
.sidebar li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sidebar li:last-child { border-bottom: none; }
.sidebar a { color: var(--ink); font-size: 14px; }
.sidebar a:hover { color: var(--red); }
.widget-sticky { background: linear-gradient(135deg, var(--indigo), #2a2c58); color: #fff; text-align: center; }
.widget-sticky .widget-title { color: #fff; border-color: rgba(255,255,255,.2); }
.widget-sticky p { font-size: 14px; color: #c7cdda; margin-bottom: 18px; }

/* Popular posts widget */
.pop-item { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.pop-item:last-child { border-bottom: none; }
.pop-thumb { width: 68px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pop-item h5 { font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.pop-item h5 a { color: var(--indigo); }
.pop-item h5 a:hover { color: var(--red); }

/* ---------- Pagination ---------- */
.pagination { text-align: center; margin: 56px 0 0; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; margin: 0 4px; background: #fff; border-radius: 12px; color: var(--indigo); font-weight: 600; box-shadow: var(--shadow); transition: transform .2s, background .2s, color .2s; }
.page-numbers.current, .page-numbers:hover { background: var(--red); color: #fff; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo); color: #b8c0d0; margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; padding: 66px 0 44px; }
.footer-col h4 { font-family: var(--serif); color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.footer-brand .logo-main { font-family: var(--serif); font-size: 24px; font-weight: 800; color: #fff; }
.footer-brand .logo-main .dot { color: var(--red); }
.footer-about { font-size: 13.5px; line-height: 1.9; margin-top: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b8c0d0; font-size: 14px; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; font-weight: 700; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--red); transform: translateY(-3px); }
.footer-newsletter input { width: 100%; padding: 12px 16px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); border-radius: 10px; color: #fff; font-family: inherit; font-size: 14px; margin-bottom: 10px; }
.footer-newsletter input::placeholder { color: #8891a5; }
.footer-newsletter button { width: 100%; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; font-size: 13px; color: #8891a5; }

/* Back to top */
#jt-top { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--red); color: #fff; border: none; cursor: pointer; font-size: 20px; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); z-index: 300; }
#jt-top.show { opacity: 1; visibility: visible; transform: none; }
#jt-top:hover { background: var(--red-dark); transform: translateY(-3px); }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form input[type="search"] { flex: 1; padding: 13px 20px; border: 1px solid var(--line); border-radius: 50px; font-size: 15px; font-family: inherit; background: #fff; }
.search-form input[type="search"]:focus { outline: none; border-color: var(--red); }
.search-form button { background: var(--red); color: #fff; border: none; padding: 13px 28px; border-radius: 50px; font-weight: 700; cursor: pointer; font-family: inherit; }
.search-form button:hover { background: var(--red-dark); }

/* ---------- 404 ---------- */
.error-wrap { text-align: center; padding: 110px 24px; }
.error-wrap .code { font-family: var(--serif); font-size: 120px; font-weight: 800; background: linear-gradient(135deg, var(--red), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }

/* Comments */
.comments-area { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; margin-top: 30px; }
.comments-area h3 { font-family: var(--serif); color: var(--indigo); margin-bottom: 20px; }
.comment-list { list-style: none; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .content-wrap { grid-template-columns: 1fr; max-width: 780px; }
  .sidebar { margin-top: 20px; }
  .featured-grid { grid-template-columns: 1fr; }
  .feat-side-wrap { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .topbar { display: none; }
  .nav-toggle { display: grid; }
  .site-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); background: #fff; flex-direction: column; padding: 84px 24px 24px; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .35s var(--ease); z-index: 250; }
  body.nav-open .site-nav { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(10,15,28,.5); z-index: 240; }
  .site-nav ul { flex-direction: column; align-items: stretch; width: 100%; gap: 2px; }
  .site-nav a { padding: 13px 16px; font-size: 16px; }
  .site-nav a::after { display: none; }
  .hero { min-height: 72vh; }
  .section { padding: 60px 0; }
  .feat-side-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .post-nav { grid-template-columns: 1fr; }
  .single-body { padding: 30px 22px 40px; }
}
