/* IsshoHub — shared styles */
:root {
  --navy: #0d2444;
  --navy-2: #142f55;
  --navy-ink: #0a1a31;
  --accent: #378ADD;
  --accent-2: #6FB0EC;
  --accent-ink: #1f6bb8;
  --paper: #FBFAF7;
  --paper-2: #F3EFE6;
  --line: #E4DFD3;
  --ink: #1a1f2b;
  --ink-2: #4a5366;
  --ink-3: #7d8598;
  --warm: #E8C56B;
  --rose: #D97766;
  --green: #5A8F6B;

  --serif-jp: "Shippori Mincho", "Noto Serif JP", serif;
  --sans-jp: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --sans-tc: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --sans-en: "Inter", ui-sans-serif, system-ui, sans-serif;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --container: 1240px;
  --dens: 1;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans-tc), var(--sans-jp), var(--sans-en);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 1;
  line-height: 1.55;
}
body[data-lang="en"] {
  font-family: var(--sans-en), var(--sans-jp), var(--sans-tc);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 900px) { .container { padding: 0 32px; } }

/* ============ TOP BAR ============ */
.topbar {
  background: var(--navy);
  color: #DCE5F2;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.topbar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  gap: 16px;
}
.topbar .ticker {
  display: flex;
  gap: 20px;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0.85;
  flex: 1;
  min-width: 0;
}
.topbar .ticker span { display: inline-flex; gap: 8px; align-items: center; }
.topbar .ticker i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-2); display: inline-block;
}
.topbar .meta {
  display: flex; gap: 14px; align-items: center;
  white-space: nowrap;
}
.topbar .meta b { color: #fff; font-weight: 500; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .row {
  display: flex; align-items: center; gap: 18px;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif-jp);
  font-size: 20px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 6px;
  background: var(--accent);
}
.brand-name {
  font-family: var(--sans-en);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--navy-ink);
  line-height: 1;
}
.brand-tag {
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
  line-height: 1;
}

.nav-links {
  display: none;
  flex: 1;
  gap: 2px;
  justify-content: center;
  font-size: 13px;
}
@media (min-width: 1100px) { .nav-links { display: flex; } }
.nav-links a,
.nav-links .nav-item > a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
  transition: all .15s;
}
.nav-links a:hover,
.nav-links .nav-item > a:hover { background: var(--paper-2); color: var(--navy-ink); }
.nav-links .nav-item > a.active { color: var(--navy-ink); font-weight: 600; }

/* Dropdown submenus */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-caret { opacity: 0.55; transition: transform .2s; }
.nav-item:hover .nav-caret { transform: rotate(180deg); opacity: 1; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 280px;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(13,36,68,0.28);
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 60;
  margin-top: 8px;
}
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -12px; height: 12px;
}
.nav-item.has-sub:hover .nav-dropdown,
.nav-item.has-sub:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.nav-dropdown-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.nav-dropdown-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-ink);
  letter-spacing: 0.02em;
}
.nav-dropdown-all {
  font-family: var(--sans-en);
  font-size: 11px;
  color: var(--accent-ink);
  font-weight: 600;
}
.nav-dropdown-list {
  display: flex; flex-direction: column;
}
.nav-dropdown-list a {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all .12s;
  line-height: 1.3;
}
.nav-dropdown-list a:hover {
  background: var(--paper-2);
  color: var(--navy-ink);
}

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--navy-ink);
  border: 1px solid var(--line);
  transition: all .15s;
}
.search-btn:hover { background: var(--paper-2); }

.lang-toggle {
  display: flex; padding: 3px; background: var(--paper-2);
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--sans-en);
  font-size: 12px;
  font-weight: 600;
}
.lang-toggle button {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-3);
  transition: all .18s;
}
.lang-toggle button.on {
  background: var(--navy);
  color: #fff;
}

.btn-login {
  padding: 8px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all .18s;
  white-space: nowrap;
  display: none;
}
@media (min-width: 640px) { .btn-login { display: inline-flex; align-items: center; gap: 6px; } }
.btn-login:hover { background: var(--accent); }
.btn-login svg { flex-shrink: 0; }

.menu-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  color: var(--navy-ink);
  border: 1px solid var(--line);
}
@media (min-width: 1100px) { .menu-btn { display: none; } }

/* ============ MOBILE MENU DRAWER ============ */
.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 100;
}
.mobile-menu.open { display: block; }
.mobile-menu-overlay {
  position: absolute; inset: 0;
  background: rgba(10,26,49,0.55);
  backdrop-filter: blur(2px);
}
.mobile-menu-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  overflow-y: auto;
  padding: 24px 20px 40px;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.32,.72,0,1);
}
.mobile-menu.open .mobile-menu-drawer { transform: translateX(0); }
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-close {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.mobile-close:hover { background: var(--paper-2); }
.mobile-nav-list { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav-item { }
.mobile-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-ink);
  transition: all .12s;
}
.mobile-nav-link:hover { background: var(--paper-2); }
.mobile-nav-link .cat-en {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 400;
  font-family: var(--sans-en);
}
.mobile-subnav {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0 0 8px 14px;
}
.mobile-nav-item.open .mobile-subnav { display: flex; }
.mobile-subnav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.mobile-subnav a:hover { background: var(--paper-2); color: var(--navy-ink); }
.mobile-menu-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-login-btn {
  display: block;
  padding: 13px 20px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}
.mobile-login-btn:hover { background: var(--accent); }

/* ============ CATEGORY STRIP (mobile) ============ */
.catstrip {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 10px 20px 14px;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.catstrip::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) { .catstrip { display: none; } }
.catstrip a {
  flex-shrink: 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.catstrip a.active { background: var(--navy); color: #fff; }

/* ============ HERO ============ */
.hero {
  padding: calc(28px * var(--dens)) 0 calc(40px * var(--dens));
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.65fr 1fr; gap: 28px; }
}
.hero-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 16 / 11;
  min-height: 380px;
  color: #fff;
}
@media (min-width: 900px) { .hero-main { aspect-ratio: 16/10; min-height: 460px; } }
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(1.05);
}
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,36,68,0.05) 0%, rgba(13,36,68,0.15) 40%, rgba(13,36,68,0.92) 100%);
}
.hero-body {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}
@media (min-width: 900px) { .hero-body { padding: 36px; } }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.hero-chip i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(111,176,236,0.25);
}
.hero-issue {
  font-family: var(--sans-en);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero-kicker {
  font-family: var(--sans-en);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--sans-tc);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-wrap: balance;
  max-width: 22ch;
}
body[data-lang="en"] .hero-title {
  font-family: var(--sans-en);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero-sub {
  font-size: 14.5px;
  color: rgba(255,255,255,0.82);
  max-width: 48ch;
  margin-bottom: 18px;
  text-wrap: pretty;
}
.hero-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.hero-meta .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  font-family: var(--sans-en);
}
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.4); }

/* hero side */
.hero-side {
  display: flex; flex-direction: column; gap: 14px;
}
.side-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  transition: all .18s;
}
.side-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -12px rgba(13,36,68,0.18); }
.side-thumb {
  width: 96px; height: 96px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--paper-2);
  background-size: cover; background-position: center;
  position: relative;
  overflow: hidden;
}
.side-thumb-num {
  position: absolute;
  left: 6px; top: 4px;
  font-family: var(--serif-jp);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.side-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.side-tag {
  font-family: var(--sans-en);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
}
.side-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-ink);
  line-height: 1.35;
  text-wrap: balance;
  margin: 0;
}
.side-meta {
  margin-top: auto;
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--sans-en);
}

/* ============ HOT SEARCH ============ */
.hotsearch {
  padding-bottom: calc(40px * var(--dens));
}
.hotsearch-inner {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 2px 0 rgba(13,36,68,0.02);
}
.hotsearch-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--navy-ink);
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--sans-en);
  white-space: nowrap;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
.hotsearch-label svg { color: var(--rose); }
.hot-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  transition: all .15s;
  cursor: pointer;
}
.pill:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-1px);
}
.pill .rank {
  font-family: var(--sans-en);
  font-size: 10.5px;
  color: var(--accent);
  font-weight: 700;
}
.pill.fire .rank { color: var(--rose); }

/* ============ SECTION HEADINGS ============ */
.section { padding: calc(48px * var(--dens)) 0; }
.section.tight { padding: calc(32px * var(--dens)) 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-family: var(--sans-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--navy-ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-family: var(--sans-tc);
}
body[data-lang="en"] .section-title { font-family: var(--sans-en); letter-spacing: -0.02em; }
.section-sub {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 8px;
  max-width: 54ch;
}
.section-actions { display: flex; gap: 10px; align-items: center; }
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--accent-ink);
  font-weight: 600;
}
.link-more:hover { gap: 10px; }

/* ============ CATEGORY GRID ============ */
.cat-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 640px) { .cats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(8, 1fr); } }
.cat {
  background: #fff;
  padding: 22px 14px;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  text-align: center;
  transition: all .2s;
  position: relative;
  cursor: pointer;
}
.cat-link {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  width: 100%;
}
.cat:hover { background: var(--paper); }
.cat:hover .cat-icon { transform: translateY(-3px); }

/* Category popover */
.cat-popover {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 260px;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(13,36,68,0.28);
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 40;
  text-align: left;
  margin-top: 10px;
}
.cat-popover::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -14px; height: 14px;
}
.cat.has-sub:hover .cat-popover,
.cat.has-sub:focus-within .cat-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.cat-pop-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.cat-pop-title { font-size: 12px; font-weight: 700; color: var(--navy-ink); }
.cat-pop-all { font-family: var(--sans-en); font-size: 11px; color: var(--accent-ink); font-weight: 600; }
.cat-pop-list { display: flex; flex-direction: column; }
.cat-pop-list a {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.3;
  transition: all .12s;
}
.cat-pop-list a:hover { background: var(--paper-2); color: var(--navy-ink); }
.cat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--paper-2);
  display: grid; place-items: center;
  transition: transform .25s;
  color: var(--navy);
}
.cat:hover .cat-icon { background: var(--accent); color: #fff; }
.cat-labels { display: flex; flex-direction: column; gap: 2px; }
.cat-label-tc {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-ink);
  line-height: 1.2;
}
.cat-label-en {
  font-family: var(--sans-en);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-weight: 500;
}
.cat-count {
  position: absolute; top: 10px; right: 12px;
  font-family: var(--sans-en);
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 600;
}

/* ============ ARTICLE CARDS ============ */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -20px rgba(13,36,68,0.22);
  border-color: rgba(55,138,221,0.35);
}
.card-media {
  aspect-ratio: 16/10;
  background: var(--paper-2);
  background-size: cover; background-position: center;
  position: relative;
  display: block;
}
.card-tag {
  position: absolute; left: 12px; top: 12px;
  background: rgba(13,36,68,0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.card-tag.cat-visa { background: #0d2444; }
.card-tag.cat-biz { background: #1a4b7a; }
.card-tag.cat-house { background: #5A8F6B; }
.card-tag.cat-tax { background: #8a6e2f; }
.card-tag.cat-life { background: #D97766; }
.card-tag.cat-places { background: #7a4b82; }
.card-tag.cat-pets { background: #b06a3f; }
.card-tag.cat-story { background: #378ADD; }
.card-body {
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-ink);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
.card-excerpt {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--sans-en);
  font-size: 11.5px;
  color: var(--ink-3);
}
.card-meta .author { color: var(--ink-2); font-weight: 500; }
.card-meta .dot { width: 2px; height: 2px; border-radius: 50%; background: var(--ink-3); }
.card-meta .reading {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
}

/* Featured large card variant */
.card.featured { grid-column: span 1; }
@media (min-width: 720px) { .card.featured { grid-column: span 2; flex-direction: row; } }
.card.featured .card-media { aspect-ratio: 4/3; min-height: 100%; flex: 1.2; }
.card.featured .card-body { flex: 1; justify-content: center; padding: 28px; }
.card.featured .card-title { font-size: 22px; }
.card.featured .card-excerpt { -webkit-line-clamp: 3; font-size: 14px; }

/* ============ CHECKLIST MODULE ============ */
.checklist {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) { .checklist { padding: 56px 48px; } }
.checklist::before {
  content: "一緒";
  position: absolute;
  right: -20px; bottom: -60px;
  font-family: var(--serif-jp);
  font-size: 260px;
  font-weight: 600;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
}
.checklist-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  position: relative;
}
@media (min-width: 900px) { .checklist-grid { grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; } }
.checklist h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.checklist p {
  font-size: 14.5px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 24px;
  max-width: 42ch;
}
.checklist-items { display: flex; flex-direction: column; gap: 10px; }
.checklist-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  transition: all .18s;
}
.checklist-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(111,176,236,0.4);
}
.check-num {
  font-family: var(--sans-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  min-width: 24px;
  padding-top: 2px;
}
.check-body { flex: 1; }
.check-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 3px;
}
.check-desc { font-size: 12.5px; color: rgba(255,255,255,0.6); }
.check-status {
  margin-left: auto;
  font-family: var(--sans-en);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  padding-top: 3px;
}
.check-status.done { color: var(--accent-2); }

/* ============ STORIES ============ */
.stories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 760px) { .stories { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .stories { grid-template-columns: repeat(3, 1fr); } }
.story {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy);
  display: flex;
  align-items: flex-end;
  color: #fff;
  cursor: pointer;
  isolation: isolate;
}
.story .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s ease;
  z-index: -1;
}
.story:hover .bg { transform: scale(1.05); }
.story::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,36,68,0) 40%, rgba(13,36,68,0.92) 100%);
  z-index: -1;
}
.story-inner { padding: 24px; width: 100%; }
.story-quote {
  font-family: var(--serif-jp);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 14px;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
body[data-lang="en"] .story-quote {
  font-family: "Shippori Mincho", Georgia, serif;
  font-style: italic;
}
.story-quote::before {
  content: "「";
  font-family: var(--serif-jp);
  opacity: 0.55;
  margin-right: -2px;
}
.story-quote::after {
  content: "」";
  font-family: var(--serif-jp);
  opacity: 0.55;
}
body[data-lang="en"] .story-quote::before { content: "\201C"; font-family: Georgia, serif; }
body[data-lang="en"] .story-quote::after { content: "\201D"; font-family: Georgia, serif; }
.story-person {
  display: flex; align-items: center; gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.story-person .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  display: grid; place-items: center;
  font-family: var(--sans-en);
  font-weight: 700;
  font-size: 13px;
}
.story-name { font-size: 13px; font-weight: 600; }
.story-role {
  font-family: var(--sans-en);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* ============ NEWSLETTER ============ */
.newsletter {
  background: var(--paper-2);
  border-radius: var(--r-xl);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 760px) { .newsletter { padding: 52px; } }
.newsletter h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--navy-ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.newsletter p {
  font-size: 14px;
  color: var(--ink-2);
  max-width: 48ch;
  margin: 0 auto 24px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
  flex-direction: column;
}
@media (min-width: 520px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border-color .18s;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  padding: 14px 24px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all .18s;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--accent); }

/* ============ FOOTER ============ */
.footer {
  background: var(--navy-ink);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
  margin-top: 48px;
}
.footer .container > .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 760px) { .footer .container > .grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; } }
.footer-brand { max-width: 38ch; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 13px; line-height: 1.6; margin: 16px 0 20px; color: rgba(255,255,255,0.65); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  transition: background .18s;
}
.footer-socials a:hover { background: var(--accent); color: #fff; }
.footer-col h5 {
  font-family: var(--sans-en);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  padding: 5px 0;
  color: rgba(255,255,255,0.65);
  transition: color .15s;
}
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-family: var(--sans-en);
  gap: 16px; flex-wrap: wrap;
}

/* ============ FX CALCULATOR ============ */
.fx {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 80;
  font-family: var(--sans-en);
}
.fx-trigger {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 32px -10px rgba(13,36,68,0.45);
  font-weight: 600;
  font-size: 13px;
  transition: all .2s;
}
.fx-trigger:hover { background: var(--accent); transform: translateY(-2px); }
.fx-trigger .badge {
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.fx-panel {
  position: absolute;
  right: 0; bottom: 56px;
  width: 320px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -20px rgba(13,36,68,0.3), 0 0 0 1px var(--line);
  padding: 20px;
  display: none;
  animation: fxIn .2s ease;
}
@keyframes fxIn {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.fx.open .fx-panel { display: block; }
.fx.open .fx-trigger { background: var(--accent); }
.fx-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px;
}
.fx-head h4 {
  font-size: 14px; font-weight: 700;
  color: var(--navy-ink);
  margin: 0;
  font-family: var(--sans-tc);
}
body[data-lang="en"] .fx-head h4 { font-family: var(--sans-en); }
.fx-head .live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.fx-head .live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.fx-asof { font-size: 10.5px; color: var(--ink-3); margin-bottom: 14px; }
.fx-row {
  display: flex; align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  transition: border-color .15s;
}
.fx-row:focus-within { border-color: var(--accent); }
.fx-ccy {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 12px;
  background: var(--paper-2);
  font-weight: 700;
  font-size: 13px;
  color: var(--navy-ink);
  border-right: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.fx-ccy select {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
}
.fx-ccy .flag {
  width: 22px; height: 16px; border-radius: 3px;
  background: #888;
  overflow: hidden;
  flex-shrink: 0;
}
.fx-input {
  flex: 1;
  padding: 12px 14px;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-ink);
  outline: none;
  text-align: right;
  width: 100%;
  min-width: 0;
  background: #fff;
}
.fx-equals { text-align: center; font-size: 14px; color: var(--ink-3); margin: 6px 0 8px; }
.fx-row.to { background: var(--paper); border-color: var(--accent); }
.fx-row.to .fx-input { background: transparent; color: var(--accent-ink); }
.fx-rates {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.fx-rate-item .k { font-size: 10px; color: var(--ink-3); letter-spacing: 0.04em; }
.fx-rate-item .v { font-size: 13px; font-weight: 700; color: var(--navy-ink); margin-top: 2px; }
.fx-rate-item .d { font-size: 10px; margin-top: 2px; }
.fx-rate-item .d.up { color: var(--green); }
.fx-rate-item .d.down { color: var(--rose); }
.fx-close {
  position: absolute;
  right: 12px; top: 12px;
  width: 24px; height: 24px;
  border-radius: 6px;
  color: var(--ink-3);
  display: grid; place-items: center;
}
.fx-close:hover { background: var(--paper-2); color: var(--navy-ink); }

/* Flag styles */
.flag-hk { background: linear-gradient(#de2910 50%, #de2910); position: relative; }
.flag-hk::after { content: "✺"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 10px; }
.flag-tw { background: linear-gradient(#fe0000 50%, #fe0000); position: relative; }
.flag-tw::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 8px; background: #000095; }
.flag-us { background: repeating-linear-gradient(#b22234 0 2px, #fff 2px 4px); position: relative; }
.flag-us::before { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 8px; background: #3c3b6e; }
.flag-eu { background: #003399; position: relative; }
.flag-eu::after { content: "★"; position: absolute; inset: 0; display: grid; place-items: center; color: #fc0; font-size: 8px; }
.flag-jp { background: #fff; position: relative; }
.flag-jp::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 8px; height: 8px; border-radius: 50%; background: #bc002d; }

/* ============ LOGIN MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,26,49,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 40px 36px;
  width: min(480px, 100%);
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform .28s cubic-bezier(.32,.72,0,1);
  box-shadow: 0 40px 100px -20px rgba(13,36,68,0.45);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  right: 16px; top: 16px;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-3);
  transition: all .15s;
}
.modal-close:hover { background: var(--paper-2); color: var(--navy-ink); }
.modal-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.modal-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  font-family: var(--sans-tc);
  line-height: 1.2;
}
body[data-lang="en"] .modal-title { font-family: var(--sans-en); }
.modal-sub {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 28px;
}
.login-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.form-group input {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 14.5px;
  color: var(--navy-ink);
  background: var(--paper);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(55,138,221,0.14);
  background: #fff;
}
.btn-submit {
  padding: 15px 24px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  margin-top: 4px;
  transition: all .18s;
}
.btn-submit:hover { background: var(--accent); }
.modal-footer {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-3);
}
.modal-footer a {
  color: var(--accent-ink);
  font-weight: 500;
}
.modal-footer a:hover { text-decoration: underline; }
.modal-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  color: var(--ink-3);
  font-size: 12px;
}
.modal-divider::before,
.modal-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.social-login {
  display: flex; flex-direction: column; gap: 10px;
}
.btn-social {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  transition: all .15s;
}
.btn-social:hover { background: var(--paper-2); border-color: var(--ink-3); }

/* ============ BREADCRUMB ============ */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-family: var(--sans-en);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb .current { color: var(--ink-2); font-weight: 500; }

/* ============ CATEGORY HERO ============ */
.cat-hero {
  background: var(--navy);
  color: #fff;
  padding: calc(52px * var(--dens)) 0 calc(44px * var(--dens));
  position: relative;
  overflow: hidden;
}
.cat-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 100% at 80% 50%, rgba(55,138,221,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cat-hero-watermark {
  position: absolute;
  right: -20px; bottom: -40px;
  font-family: var(--serif-jp);
  font-size: 200px;
  font-weight: 600;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.cat-hero-inner {
  display: flex; align-items: flex-start; gap: 28px;
  position: relative;
}
@media (min-width: 900px) {
  .cat-hero-inner { align-items: center; gap: 36px; }
}
.cat-hero-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: #fff;
}
@media (min-width: 900px) {
  .cat-hero-icon-wrap { width: 88px; height: 88px; border-radius: 24px; }
}
.cat-hero-body { flex: 1; }
.cat-hero-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-family: var(--sans-en);
  margin-bottom: 12px;
}
.cat-hero-breadcrumb a { color: rgba(255,255,255,0.55); }
.cat-hero-breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.cat-hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-family: var(--sans-tc);
}
body[data-lang="en"] .cat-hero-title { font-family: var(--sans-en); }
.cat-hero-en {
  font-family: var(--sans-en);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cat-hero-desc {
  font-size: 14.5px;
  color: rgba(255,255,255,0.75);
  max-width: 58ch;
  line-height: 1.6;
  text-wrap: pretty;
}
.cat-hero-stats {
  display: flex; gap: 32px;
  margin-top: 24px;
}
.cat-stat { display: flex; flex-direction: column; gap: 2px; }
.cat-stat-num {
  font-family: var(--sans-en);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.cat-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

/* ============ SUB-CATEGORY NAV ============ */
.subcat-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(251,250,247,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 68px;
  z-index: 40;
}
.subcat-scroll {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 10px 0 10px;
  scrollbar-width: none;
}
.subcat-scroll::-webkit-scrollbar { display: none; }
.subcat-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all .14s;
  flex-shrink: 0;
}
.subcat-tab:hover { background: var(--paper-2); color: var(--navy-ink); }
.subcat-tab.active {
  background: var(--navy);
  color: #fff;
}
.subcat-tab .count {
  font-family: var(--sans-en);
  font-size: 10.5px;
  opacity: 0.7;
}

/* ============ CATEGORY PAGE LAYOUT ============ */
.cat-featured-section { padding: calc(40px * var(--dens)) 0 0; }
.cat-articles-section { padding: calc(40px * var(--dens)) 0; }
.cat-articles-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.cat-articles-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-ink);
  letter-spacing: -0.01em;
  font-family: var(--sans-tc);
}
body[data-lang="en"] .cat-articles-title { font-family: var(--sans-en); }
