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

:root {
  --bg: #050a18;
  --bg-raised: #0a1128;
  --bg-card: #0d1530;
  --border: rgba(100, 140, 255, 0.08);
  --border-hover: rgba(100, 140, 255, 0.2);
  --text: #e8edf5;
  --text-secondary: #8a96b0;
  --text-muted: #556280;
  --accent: #4f7df7;
  --accent-hover: #7ba1ff;
  --accent-subtle: rgba(79, 125, 247, 0.08);
  --accent-glow: rgba(79, 125, 247, 0.2);
  --accent-2: #a855f7;
  --accent-3: #22d3ee;
  --surface-glow: linear-gradient(135deg, rgba(79, 125, 247, 0.05), rgba(168, 85, 247, 0.03));
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --max-width: 1080px;
  --header-height: 60px;
}

[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-raised: #ffffff;
  --bg-card: #ffffff;
  --border: rgba(30, 50, 100, 0.08);
  --border-hover: rgba(30, 50, 100, 0.16);
  --text: #0c1631;
  --text-secondary: #4a5578;
  --text-muted: #8790a8;
  --accent: #3a68e0;
  --accent-hover: #4f7df7;
  --accent-subtle: rgba(58, 104, 224, 0.06);
  --accent-glow: rgba(58, 104, 224, 0.1);
  --accent-2: #8b3fd6;
  --accent-3: #0ea5c9;
  --surface-glow: linear-gradient(135deg, rgba(58, 104, 224, 0.03), rgba(139, 63, 214, 0.02));
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  flex: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 50px) scale(0.9); }
  66% { transform: translate(40px, -20px) scale(1.05); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 60px) scale(1.15); }
}

@keyframes glitch-1 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  20% { clip-path: inset(20% 0 60% 0); transform: translate(-4px, 2px); }
  40% { clip-path: inset(40% 0 20% 0); transform: translate(4px, -2px); }
  60% { clip-path: inset(60% 0 10% 0); transform: translate(-2px, 4px); }
  80% { clip-path: inset(10% 0 80% 0); transform: translate(2px, -4px); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  20% { clip-path: inset(50% 0 20% 0); transform: translate(4px, -2px); }
  40% { clip-path: inset(10% 0 70% 0); transform: translate(-4px, 2px); }
  60% { clip-path: inset(30% 0 30% 0); transform: translate(2px, 4px); }
  80% { clip-path: inset(70% 0 5% 0); transform: translate(-2px, -4px); }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes nudge-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 10, 24, 0.7);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

[data-theme="light"] .header {
  background: rgba(244, 246, 251, 0.8);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: all 0.4s;
}

.logo:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 5px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--accent-subtle);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-subtle);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  transition: color 0.3s, border-color 0.3s, transform 0.5s;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.theme-toggle:active {
  transform: rotate(180deg);
}

#theme-icon-sun {
  display: none;
}

[data-theme="light"] #theme-icon-sun {
  display: block;
}

[data-theme="light"] #theme-icon-moon {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 10px 28px 18px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-link {
  padding: 11px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

.hero {
  position: relative;
  padding: 110px 28px 90px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  animation: spin 4s linear infinite;
}

.hero-avatar-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg);
}

.hero-avatar {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin: 3px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--accent-2) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 26px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-primary:hover {
  box-shadow: 0 0 36px var(--accent-glow), 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-raised);
  transform: translateY(-2px);
}

.hero-social {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-pill:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px) scale(1.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.social-pill[aria-label="x"]:hover {
  background: #000;
}

.social-pill[aria-label="github"]:hover {
  background: #333;
}

.social-pill[aria-label="git"]:hover {
  background: #f05032;
}

[data-theme="light"] .social-pill[aria-label="x"]:hover {
  background: #1da1f2;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.hero-orb-1 {
  width: 420px;
  height: 420px;
  background: var(--accent);
  top: -15%;
  left: 12%;
  animation: float-1 14s ease-in-out infinite;
}

.hero-orb-2 {
  width: 320px;
  height: 320px;
  background: var(--accent-2);
  top: 15%;
  right: 8%;
  animation: float-2 17s ease-in-out infinite;
}

.hero-orb-3 {
  width: 260px;
  height: 260px;
  background: var(--accent-3);
  bottom: -10%;
  left: 38%;
  animation: float-3 11s ease-in-out infinite;
}

[data-theme="light"] .hero-orb {
  opacity: 0.12;
  filter: blur(120px);
}

.section {
  padding: 70px 28px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  color: var(--accent-hover);
}

.section-link:hover .arrow {
  display: inline-block;
  animation: nudge-right 0.6s ease infinite;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.card {
  display: block;
  position: relative;
  background: var(--surface-glow), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 48px rgba(79, 125, 247, 0.12), 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

[data-theme="light"] .card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .card:hover {
  box-shadow: 0 12px 40px rgba(58, 104, 224, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-body {
  padding: 26px;
  position: relative;
}

.card-date {
  font-size: 12.5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.card-title {
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  transition: all 0.3s;
}

.card:hover .card-title {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-muted);
}

.card-tag {
  padding: 3px 9px;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 42px;
}

.stat-item {
  text-align: center;
  padding: 28px 14px;
  background: var(--surface-glow), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.stat-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.about-block {
  background: var(--surface-glow), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s;
}

.about-block:hover {
  border-color: var(--border-hover);
}

.about-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.about-block-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: var(--radius-sm);
}

.about-block-title {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.infra-block {
  grid-column: 1 / -1;
}

.server-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.server-card {
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}

.server-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-dot.active {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.status-dot.retired {
  background: var(--text-muted);
}

.server-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

.server-spec {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  line-height: 1.5;
}

.server-os {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.server-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: 999px;
}

.server-illust {
  margin-bottom: 12px;
  line-height: 0;
  overflow: hidden;
  border-radius: var(--radius-xs);
  height: 72px;
}

.server-illust svg {
  width: 100%;
  height: 100%;
}

@keyframes steam-rise {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 0.6; }
  100% { transform: translateY(-10px); opacity: 0; }
}

.steam {
  animation: steam-rise 2.5s ease-in-out infinite;
}

.steam-2 {
  animation-delay: 0.8s;
}

.steam-3 {
  animation-delay: 1.6s;
}

.steam-4 {
  animation-delay: 2.4s;
}

.ramen-noodle {
  animation: noodle-wiggle 3s ease-in-out infinite;
}

@keyframes noodle-wiggle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(1.5px); }
}

@keyframes chopstick-lift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.ramen-chopsticks {
  animation: chopstick-lift 3s ease-in-out infinite;
  transform-origin: 56px 3px;
}

.noodle-lift {
  animation: noodle-dangle 2s ease-in-out infinite;
}

@keyframes noodle-dangle {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(1px); }
}

@keyframes lantern-sway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(4deg); }
  75% { transform: rotate(-4deg); }
}

.izakaya-lantern {
  animation: lantern-sway 3.5s ease-in-out infinite;
}

.iz-l1 { transform-origin: 14px 5px; animation-duration: 3.2s; }
.iz-l2 { transform-origin: 36px 5px; animation-duration: 3.8s; animation-delay: -0.7s; }
.iz-l3 { transform-origin: 60px 5px; animation-duration: 3.5s; animation-delay: -1.4s; }
.iz-l4 { transform-origin: 84px 5px; animation-duration: 4s; animation-delay: -2.1s; }
.iz-l5 { transform-origin: 107px 5px; animation-duration: 3.3s; animation-delay: -2.8s; }

@keyframes noren-sway {
  0%, 100% { transform: skewX(0deg); }
  30% { transform: skewX(3deg); }
  70% { transform: skewX(-3deg); }
}

.noren {
  animation: noren-sway 5s ease-in-out infinite;
  transform-origin: center top;
}

.noren-2 { animation-delay: -1s; }
.noren-3 { animation-delay: -2s; }
.noren-4 { animation-delay: -3s; }
.noren-5 { animation-delay: -4s; }

@keyframes light-pulse {
  0%, 100% { opacity: 0; }
  20%, 80% { opacity: 0.7; }
  50% { opacity: 1; }
}

.b-light {
  animation: light-pulse 4s ease-in-out infinite;
}

.b-light-2 {
  animation-delay: 1.3s;
}

.b-light-3 {
  animation-delay: 2.6s;
}

@keyframes wave-drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-40px); }
}

.water-1 {
  animation: wave-drift 5s linear infinite;
}

.water-2 {
  animation: wave-drift 7s linear infinite;
}

.river-1 {
  animation: wave-drift 9s linear infinite;
}

.river-2 {
  animation: wave-drift 11s linear infinite;
}

.river-3 {
  animation: wave-drift 13s linear infinite;
}

.river-4 {
  animation: wave-drift 15s linear infinite;
}

.bridge-water {
  animation: wave-drift 8s linear infinite;
}

.bw-2 {
  animation-duration: 11s;
}

.server-card-retired {
  opacity: 0.55;
}

.server-card-retired:hover {
  opacity: 0.8;
}

.service-pills {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.service-pill {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s;
}

.service-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.cert-item:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.cert-hex {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.cert-high {
  position: relative;
}

.cert-high::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  filter: blur(18px);
  opacity: 0.4;
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cert-high:hover::before {
  opacity: 0.7;
}

[data-theme="light"] .cert-mid svg text {
  fill: #3a68e0;
}

[data-theme="light"] .cert-entry svg polygon {
  stroke: #8790a8;
}

[data-theme="light"] .cert-entry svg text {
  fill: #8790a8;
}

.cert-name {
  font-size: 14.5px;
  font-weight: 550;
  color: var(--text);
  line-height: 1.4;
}

.cert-high .cert-name {
  font-weight: 700;
}

.toeic-block {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.toeic-score {
  flex-shrink: 0;
  text-align: center;
}

.toeic-number {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.toeic-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.toeic-bar-wrap {
  flex: 1;
  min-width: 0;
}

.toeic-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.toeic-bar-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.toeic-bar-max {
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.toeic-bar {
  height: 10px;
  background: var(--bg-card);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.toeic-bar-fill {
  height: 100%;
  width: var(--fill);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-year {
  flex-shrink: 0;
  width: 62px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.timeline-events {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.timeline-event {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s;
}

.timeline-event:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.timeline-event.highlight {
  background: var(--accent-subtle);
  border-color: rgba(79, 125, 247, 0.2);
  color: var(--accent);
  font-weight: 600;
}

.page-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
}

.post-list {
  display: flex;
  flex-direction: column;
}

.post-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.25s;
  position: relative;
}

.post-list-item:first-child {
  border-top: 1px solid var(--border);
}

.post-list-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-list-item:hover::after {
  width: 100%;
}

.post-list-item:hover {
  padding-left: 14px;
}

.post-list-item:hover .post-list-title {
  color: var(--accent);
}

.post-list-content {
  flex: 1;
  min-width: 0;
}

.post-list-title {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 5px;
  transition: color 0.25s;
  letter-spacing: -0.01em;
}

.post-list-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-list-meta {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 52px;
  list-style: none;
}

.page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.page-item .page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-item.disabled .page-link {
  opacity: 0.3;
  pointer-events: none;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px;
}

.tag-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  background: var(--surface-glow), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tag-card:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.tag-card-name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tag-card-count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s;
  font-variant-numeric: tabular-nums;
}

.tag-card:hover .tag-card-count {
  background: var(--accent);
  color: #fff;
}

.article {
  padding: 52px 28px 90px;
}

.article-inner {
  max-width: 700px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: color 0.15s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  margin: 0 7px;
  color: var(--text-muted);
}

.article-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.18;
  margin-bottom: 18px;
}

.article-meta {
  display: flex;
  gap: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 52px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.article-content {
  font-size: 15.5px;
  line-height: 1.85;
}

.article-content h2 {
  font-size: 23px;
  font-weight: 750;
  margin: 52px 0 18px;
  letter-spacing: -0.03em;
}

.article-content h3 {
  font-size: 19px;
  font-weight: 650;
  margin: 40px 0 14px;
  letter-spacing: -0.02em;
}

.article-content h4 {
  font-size: 16.5px;
  font-weight: 650;
  margin: 30px 0 10px;
}

.article-content p {
  margin-bottom: 22px;
  color: var(--text-secondary);
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(79, 125, 247, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.article-content a:hover {
  text-decoration-color: var(--accent);
}

.article-content ul,
.article-content ol {
  margin-bottom: 22px;
  padding-left: 22px;
  color: var(--text-secondary);
}

.article-content li {
  margin-bottom: 7px;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 22px;
  margin: 26px 0;
  background: var(--accent-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

.article-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  overflow-x: auto;
  margin: 26px 0;
  font-size: 13.5px;
  line-height: 1.65;
}

.article-content code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.88em;
}

.article-content p code,
.article-content li code {
  background: var(--accent-subtle);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-size: 0.84em;
  color: var(--accent);
}

.article-content img {
  border-radius: var(--radius-sm);
  margin: 26px 0;
  border: 1px solid var(--border);
  transition: transform 0.3s;
}

.article-content img:hover {
  transform: scale(1.01);
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 13.5px;
}

.article-content th,
.article-content td {
  padding: 11px 15px;
  border: 1px solid var(--border);
  text-align: left;
}

.article-content th {
  background: var(--bg-card);
  font-weight: 650;
}

.article-tags {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.tag {
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.01em;
}

.tag:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.article-share {
  margin-top: 26px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.article-nav-prev,
.article-nav-next {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px;
  background: var(--surface-glow), var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.article-nav-next {
  text-align: right;
}

.article-nav-prev:hover,
.article-nav-next:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.article-nav-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-nav-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.not-found {
  text-align: center;
  padding: 90px 0;
}

.not-found-code {
  font-size: 130px;
  font-weight: 900;
  letter-spacing: -0.06em;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.not-found-code::before,
.not-found-code::after {
  content: "404";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.not-found-code::before {
  animation: glitch-1 3s infinite;
}

.not-found-code::after {
  animation: glitch-2 3s infinite reverse;
}

.not-found-text {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 28px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s;
}

.footer-social:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero {
    padding: 70px 22px 52px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-orb {
    opacity: 0.18;
  }

  .nav-link {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .server-cards {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .article-title {
    font-size: 26px;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .post-list-item {
    flex-direction: column;
    gap: 8px;
  }

  .post-list-excerpt {
    white-space: normal;
  }

  .footer-inner {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .section {
    padding: 44px 22px;
  }

  .tag-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
