:root {
  --bg-cream: #F5EEDC;
  --bg-tint: #F0E0D0;
  --ink-black: #161616;
  --ink-soft: #4A4A4A;
  --red-fire: #E02F1E;
  --orange-hot: #F0792A;
  --blue-storm: #243A75;
  --steel-gray: #B8BECD;
  --white: #FFFFFF;
  --line-rule: rgba(22, 22, 22, 0.1);
  --shadow-card: 0 10px 30px rgba(22, 22, 22, 0.08);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --max-width: 1280px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-heavy: "Arial Black", "Impact", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-black);
  background-color: var(--bg-cream);
  background-image:
    repeating-linear-gradient(115deg, transparent 0 18px, rgba(22, 22, 22, 0.016) 18px 19px, transparent 19px 52px),
    radial-gradient(circle at 82% 8%, rgba(224, 47, 30, 0.05), transparent 30%),
    radial-gradient(circle at 8% 45%, rgba(36, 58, 117, 0.05), transparent 26%),
    radial-gradient(circle at 60% 85%, rgba(240, 121, 42, 0.05), transparent 30%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heavy);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.35em;
}

a {
  color: var(--blue-storm);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(36, 58, 117, 0.25);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--red-fire);
  text-decoration-color: currentColor;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--red-fire);
  color: var(--white);
}

:focus-visible {
  outline: 3px solid var(--blue-storm);
  outline-offset: 2px;
  border-radius: 6px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--orange-hot);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.content-shell {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  width: 100%;
}

.main-content {
  display: block;
  flex: 1;
  min-height: 70vh;
}

.main-content:focus {
  outline: none;
}

.doc-shell {
  max-width: 72ch;
  margin-inline: auto;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red-fire);
  margin-bottom: 0.75em;
}

.section-title {
  font-family: var(--font-heavy);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
}

.side-note {
  writing-mode: vertical-rl;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.tilt {
  transform: rotate(-2deg);
}

.tilt-strong {
  transform: rotate(-6deg) skewX(-5deg);
}

.link-underline {
  position: relative;
  text-decoration: none;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 1.75em;
  border-radius: var(--radius-pill);
  font-family: var(--font-heavy);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--white);
  background: var(--red-fire);
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: #C21F12;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(224, 47, 30, 0.22);
  color: var(--white);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  border: 2px solid currentColor;
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(224, 47, 30, 0.08);
  box-shadow: none;
}

.btn--orange {
  background: var(--orange-hot);
}

.btn--orange:hover {
  background: #D95F18;
  box-shadow: 0 8px 20px rgba(240, 121, 42, 0.22);
}

.btn--dark {
  background: var(--ink-black);
}

.btn--dark:hover {
  background: #000;
  box-shadow: 0 8px 20px rgba(22, 22, 22, 0.18);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--ink-soft);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line-rule);
  margin-bottom: var(--space-6);
}

.breadcrumb a {
  color: var(--blue-storm);
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}

.breadcrumb a:hover {
  color: var(--red-fire);
}

.breadcrumb-current {
  color: var(--ink-soft);
  font-weight: 600;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-5);
  }
}

.span-3,
.span-4,
.span-6,
.span-8,
.span-12 {
  grid-column: span 6;
}

@media (min-width: 768px) {
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-6 { grid-column: span 6; }
  .span-8 { grid-column: span 8; }
  .span-12 { grid-column: spam 12; }
}

.card-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid var(--line-rule);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(22, 22, 22, 0.1);
}

.card-panel:focus-within {
  outline: 3px solid rgba(36, 58, 117, 0.3);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .card-panel {
    padding: var(--space-6);
  }
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--steel-gray);
  aspect-ratio: 16 / 9;
}

.media-frame--4-3 {
  aspect-ratio: 4 / 3;
}

.media-frame--1-1 {
  aspect-ratio: 1 / 1;
}

.media-frame--16-10 {
  aspect-ratio: 16 / 10;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.14) 42%, transparent 55%);
  z-index: 0;
}

.media-frame > img,
.media-frame > picture,
.media-frame > video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-4);
  z-index: 10001;
  padding: 0.75em 1.25em;
  background: var(--red-fire);
  color: var(--white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.25s ease;
}

.skip-link:hover {
  color: var(--white);
}

.skip-link:focus-visible {
  top: 0;
  outline: none;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--blue-storm);
}

.scroll-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 10000;
  background: rgba(22, 22, 22, 0.06);
  pointer-events: none;
}

.scroll-track-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red-fire), var(--orange-hot));
}

.site-header {
  position: relative;
}

.header-bar {
  position: sticky;
  top: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.625rem var(--space-5);
  background: var(--ink-black);
  color: var(--white);
  border-bottom: 3px solid var(--red-fire);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  color: inherit;
  background: transparent;
}

.brand-lockup:hover {
  color: inherit;
}

.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--red-fire);
  color: var(--white);
  font-family: var(--font-heavy);
  font-size: 1.45rem;
  font-weight: 900;
  border-radius: 16px 16px 16px 4px;
  transform: skew(-8deg);
  box-shadow: 4px 4px 0 rgba(240, 121, 42, 0.55);
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-heavy);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-round {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle-box {
  display: inline-block;
  width: 22px;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-line + .nav-toggle-line {
  margin-top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.rail-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  width: min(320px, 86vw);
  padding: calc(var(--space-8) + 3rem) var(--space-6) var(--space-6);
  background: var(--ink-black);
  color: var(--white);
  transform: translateX(-105%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.rail-nav[data-open="true"] {
  transform: translateX(0);
}

.rail-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rail-index;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rail-nav-list a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0 12px 12px 0;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.rail-nav-list a::before {
  counter-increment: rail-index;
  content: "0" counter(rail-index);
  font-family: var(--font-heavy);
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--red-fire);
  letter-spacing: 0.08em;
}

.rail-nav-list a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  padding-left: 1.1rem;
}

.rail-nav-list a[aria-current="page"] {
  color: var(--white);
  border-left-color: var(--red-fire);
  background: linear-gradient(95deg, rgba(224, 47, 30, 0.28) 0%, rgba(224, 47, 30, 0.06) 60%, transparent 100%);
}

.rail-note {
  margin-top: var(--space-6);
  margin-bottom: 0;
  padding-left: var(--space-4);
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.38);
  border-left: 2px solid rgba(255, 255, 255, 0.14);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--bg-tint);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  top: -4rem;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(224, 47, 30, 0.14), transparent 70%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .page-hero {
    padding: var(--space-7);
  }
}

.site-footer {
  margin-top: auto;
  background: var(--ink-black);
  color: rgba(255, 255, 255, 0.75);
}

.footer-rail {
  height: 6px;
  background: linear-gradient(100deg, var(--red-fire) 0%, var(--orange-hot) 38%, var(--blue-storm) 76%, var(--steel-gray) 100%);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding-block: var(--space-7) var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.5fr 0.8fr 1.1fr;
    gap: var(--space-7);
  }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heavy);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  margin-bottom: var(--space-2);
}

.footer-logo::before {
  content: "";
  width: 30px;
  height: 30px;
  background: var(--red-fire);
  border-radius: 10px 10px 10px 3px;
  transform: skew(-8deg);
  flex: none;
}

.footer-logo:hover {
  color: var(--white);
}

.footer-slogan {
  font-size: 0.9375rem;
  margin-bottom: var(--space-4);
  color: rgba(255, 255, 255, 0.6);
}

.footer-trust {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.4);
  max-width: 42ch;
}

.footer-heading {
  font-family: var(--font-heavy);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.5em;
  margin-bottom: var(--space-4);
}

.footer-links ul {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9375rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
  border-color: var(--red-fire);
}

.footer-contact p {
  margin-bottom: var(--space-2);
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer-bottom {
  padding-block: var(--space-5);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
}

.footer-bottom p {
  margin: 0;
}

.footer-service-note {
  font-size: 0.75rem;
}

@media (max-width: 767px) {
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }
}

@media (min-width: 1024px) {
  body {
    padding-left: 300px;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-8) var(--space-6) var(--space-7);
    background: var(--ink-black);
    color: var(--white);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  .header-bar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    background: transparent;
    padding: 0;
    border-bottom: 0;
  }

  .brand-symbol {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }

  .nav-toggle {
    display: none;
  }

  .rail-nav {
    position: static;
    flex: 1;
    width: auto;
    transform: none;
    padding: 0;
    background: transparent;
    overflow: visible;
    display: flex;
    flex-direction: column;
    margin-top: var(--space-7);
  }

  .rail-nav[data-open="true"] {
    transform: none;
  }

  .rail-note {
    margin-top: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .card-panel:hover,
  .btn:hover {
    transform: none;
  }

  .rail-nav {
    transition: none;
  }
}
