/* ===== Design Tokens ===== */
:root {
  --bg-primary: #09090f;
  --bg-secondary: #0f0f1a;
  --bg-card: #141420;
  --bg-surface: #1c1c2e;

  --red-primary: #e63946;
  --red-dark: #c1121f;
  --red-glow: rgba(230, 57, 70, 0.35);
  --red-subtle: rgba(230, 57, 70, 0.08);

  --amber: #f4a261;
  --amber-bright: #ffd60a;
  --amber-glow: rgba(244, 162, 97, 0.25);

  --teal: #2ec4b6;
  --teal-glow: rgba(46, 196, 182, 0.2);

  --text-primary: #e8e8f0;
  --text-secondary: #8888aa;
  --text-bright: #ffffff;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(230, 57, 70, 0.3);

  --container-max: 1000px;
  --serif: 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.85;
  overflow-x: hidden;
}

a { color: inherit; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* ===== Typography ===== */
h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.55;
  color: var(--text-bright);
  margin-bottom: 28px;
}
h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text-bright);
  margin-bottom: 14px;
}

.highlight-red { color: var(--red-primary); }
.highlight-amber { color: var(--amber-bright); }
.highlight-teal { color: var(--teal); }

/* ===== Noise overlay ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* ===== CTA Button ===== */
.cta-btn {
  display: inline-block;
  background: var(--red-primary);
  color: var(--text-bright);
  padding: 18px 52px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--sans);
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  animation: pulse-glow 2.5s ease-in-out infinite;
}
.cta-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--red-glow);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--red-glow); }
  50% { box-shadow: 0 0 44px var(--red-glow), 0 0 80px rgba(230,57,70,0.12); }
}

/* ===== Scroll animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

.fade-in-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-scale.visible { opacity: 1; transform: scale(1); }

/* ===== Sticky Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(9, 9, 15, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow 0.3s;
}
.site-header.header-shadow { box-shadow: 0 4px 32px rgba(0,0,0,0.6); }
.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.header-tag {
  font-size: 10px;
  color: var(--red-primary);
  letter-spacing: 0.12em;
  border: 1px solid var(--red-primary);
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 12px;
}

/* ===== Header Navigation ===== */
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--text-bright); }
.header-nav a.active { color: var(--red-primary); }

.header-cta {
  display: inline-block;
  background: transparent;
  color: var(--red-primary);
  border: 1.5px solid var(--red-primary);
  padding: 8px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}
.header-cta:hover { background: var(--red-primary); color: #fff; }

/* ===== Hamburger Menu ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1002;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-bright);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Section label ===== */
.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--red-primary);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--red-primary);
}

/* ===== Section CTA ===== */
.section-cta { text-align: center; margin-top: 56px; padding-top: 32px; }
.section-cta-sub { font-size: 12px; color: var(--text-secondary); margin-top: 14px; }

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--amber), var(--teal));
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 100px 0 0;
  background: var(--bg-primary);
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.breadcrumb-inner a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s;
}
.breadcrumb-inner a:hover { color: var(--red-primary); }
.breadcrumb-sep { color: var(--text-secondary); opacity: 0.5; }

/* ===== Page Hero (sub pages) ===== */
.page-hero {
  padding: 48px 0 56px;
  background: linear-gradient(170deg, #09090f 0%, #110018 50%, #0d0a00 100%);
  position: relative;
  overflow: hidden;
}
.page-hero .hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230,57,70,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,57,70,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.45;
  color: var(--text-bright);
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ===== Service Video ===== */
.service-video {
  margin-top: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.service-video-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.service-video-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.3s ease;
}
.video-overlay:hover {
  background: rgba(0, 0, 0, 0.3);
}
.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.video-play-btn {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.video-play-btn:hover {
  transform: scale(1.1);
}
.video-play-btn svg circle:first-child {
  transition: stroke 0.3s ease;
}
.video-play-btn:hover svg circle:first-child {
  stroke: rgba(230, 57, 70, 0.8);
}
.video-overlay-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

/* ===== Blog List Layout (XIMIX-style) ===== */
.blog-layout {
  padding: 48px 0 96px;
  background: var(--bg-primary);
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.blog-main {}
.blog-sidebar { position: sticky; top: 80px; }

/* ===== Blog Card ===== */
.blog-card {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.25s;
  text-decoration: none;
}
.blog-card:first-child { border-top: 1px solid var(--border-subtle); }
.blog-card:hover { background: var(--bg-card); }

.blog-card-thumb {
  width: 120px;
  height: 90px;
  background: var(--bg-surface);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 1px solid var(--border-subtle);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.blog-card-tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--red-primary);
  background: var(--red-subtle);
  border: 1px solid var(--border-accent);
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 700;
}

.blog-card-title {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-bright);
  line-height: 1.6;
  transition: color 0.25s;
}
.blog-card:hover .blog-card-title { color: var(--red-primary); }

.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Sidebar ===== */
.sidebar-section {
  margin-bottom: 32px;
}
.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red-primary);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-accent);
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-list li {
  border-bottom: 1px solid var(--border-subtle);
}
.sidebar-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s;
}
.sidebar-list li a:hover { color: var(--text-bright); }
.sidebar-count {
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.6;
}

.sidebar-recent-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: color 0.25s;
}
.sidebar-recent-item:hover .sidebar-recent-title { color: var(--red-primary); }
.sidebar-recent-date {
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.6;
}
.sidebar-recent-title {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-top: 4px;
  transition: color 0.25s;
}

.sidebar-cta {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  padding: 24px 20px;
  text-align: center;
}
.sidebar-cta p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.sidebar-cta .cta-btn {
  padding: 12px 28px;
  font-size: 13px;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}
.pagination a {
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.pagination a:hover {
  background: var(--bg-surface);
  color: var(--text-bright);
}
.pagination span.current {
  color: var(--text-bright);
  background: var(--red-primary);
  border: 1px solid var(--red-primary);
}

/* ===== Article Detail ===== */
.article-header {
  margin-bottom: 40px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}
.article-title {
  font-family: var(--serif);
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: 1.55;
  color: var(--text-bright);
  margin-bottom: 0;
}

.article-body {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 2;
}
.article-body h2 {
  font-size: 22px;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.article-body h3 {
  font-size: 18px;
  margin-top: 36px;
  margin-bottom: 16px;
}
.article-body p {
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 8px;
  line-height: 1.85;
}
.article-body blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--bg-card);
  border-left: 3px solid var(--red-primary);
  border-radius: 0 4px 4px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.85;
}
.article-body .info-box {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--teal-glow);
  border: 1px solid rgba(46,196,182,0.3);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.85;
}
.article-body .result-box {
  margin: 24px 0;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 6px;
}
.article-body .result-box h4 {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--red-primary);
  margin-bottom: 12px;
}
.article-body .result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}
.article-body .result-item:last-child { border-bottom: none; }
.article-body .result-label { color: var(--text-secondary); }
.article-body .result-value { color: var(--teal); font-weight: 700; }

/* ===== Article Nav (prev/next) ===== */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.article-nav a {
  display: block;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.25s;
}
.article-nav a:hover { border-color: var(--red-primary); }
.article-nav-label {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.article-nav-title {
  font-size: 14px;
  color: var(--text-bright);
  line-height: 1.5;
}
.article-nav .next { text-align: right; }

/* ===== CTA Banner ===== */
.cta-banner {
  margin-top: 48px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(230,57,70,0.1) 0%, rgba(244,162,97,0.06) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  text-align: center;
}
.cta-banner h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ===== Service Page ===== */
.service-intro {
  padding: 64px 0;
  background: var(--bg-secondary);
}
.service-intro-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
  max-width: 760px;
}

.service-cards-section {
  padding: 80px 0;
  background: var(--bg-primary);
}
.service-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.service-card:nth-child(1)::before { background: var(--red-primary); }
.service-card:nth-child(2)::before { background: var(--amber); }
.service-card:nth-child(3)::before { background: var(--teal); }

.service-card-icon { font-size: 36px; margin-bottom: 20px; display: block; }
.service-card-name {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.service-card-title {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text-bright);
  line-height: 1.5;
  margin-bottom: 16px;
}
.service-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}
.service-card-includes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-card-includes span {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.service-card-includes span::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

.service-scope {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.scope-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.scope-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.scope-name {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text-bright);
  margin-bottom: 6px;
}
.scope-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Company Page ===== */
.company-section {
  padding: 80px 0;
}
.company-section:nth-child(odd) { background: var(--bg-primary); }
.company-section:nth-child(even) { background: var(--bg-secondary); }

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}
.company-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 2;
}
.company-text p + p { margin-top: 16px; }

.company-vision-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 36px;
}
.company-vision-card h3 {
  color: var(--red-primary);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.company-vision-card p {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text-bright);
  line-height: 1.7;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}
.company-table th,
.company-table td {
  padding: 16px 20px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.company-table th {
  color: var(--text-secondary);
  font-weight: 500;
  width: 160px;
  vertical-align: top;
  white-space: nowrap;
}
.company-table td {
  color: var(--text-primary);
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 36px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-info {}
.profile-role {
  font-size: 12px;
  color: var(--red-primary);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.profile-name {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text-bright);
  margin-bottom: 12px;
}
.profile-bio {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.85;
}

/* ===== Enhanced Footer ===== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .header-logo {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-brand-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-bright);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--red-primary); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== FAQ (shared) ===== */
.faq {
  padding: 96px 0;
  background: var(--bg-secondary);
}
.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 28px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border-subtle); }
.faq-q {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-bright);
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  line-height: 1.6;
  transition: color 0.25s;
}
.faq-q:hover { color: var(--amber); }
.faq-q-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--red-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--red-primary);
  flex-shrink: 0;
  margin-top: 1px;
  font-family: var(--sans);
}
.faq-q-toggle {
  margin-left: auto;
  font-size: 18px;
  color: var(--red-primary);
  transition: transform 0.35s ease;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item.open .faq-q-toggle { transform: rotate(45deg); }
.faq-a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-top: 16px;
  padding-left: 40px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, padding 0.35s ease;
  opacity: 0;
  padding-top: 0;
}
.faq-item.open .faq-a {
  max-height: 300px;
  opacity: 1;
  padding-top: 16px;
}

/* ===== Monsters / Three Problems ===== */
.monsters {
  padding: 96px 0;
  background: var(--bg-secondary);
}
.monster-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.monster-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.monster-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.monster-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.monster-card.leak::before { background: var(--red-primary); }
.monster-card.blackbox::before { background: var(--amber); }
.monster-card.cost::before { background: var(--teal); }
.monster-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.monster-card.leak .monster-num { color: var(--red-primary); }
.monster-card.blackbox .monster-num { color: var(--amber); }
.monster-card.cost .monster-num { color: var(--teal); }
.monster-icon { font-size: 36px; margin-bottom: 20px; display: block; }
.monster-title {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text-bright);
  margin-bottom: 16px;
  line-height: 1.5;
}
.monster-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.85;
}
.monster-example {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  border-left: 2px solid;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.monster-card.leak .monster-example { border-color: var(--red-primary); }
.monster-card.blackbox .monster-example { border-color: var(--amber); }
.monster-card.cost .monster-example { border-color: var(--teal); }

/* ===== Before / After ===== */
.before-after {
  padding: 96px 0;
  background: var(--bg-secondary);
}
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}
.ba-card {
  border-radius: 6px;
  padding: 40px 36px;
  position: relative;
}
.ba-card.before {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.ba-card.after {
  background: rgba(46,196,182,0.05);
  border: 1px solid rgba(46,196,182,0.25);
}
.ba-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 28px;
}
.ba-card.before .ba-label { color: var(--red-primary); }
.ba-card.after .ba-label { color: var(--teal); }
.ba-items { display: flex; flex-direction: column; gap: 16px; }
.ba-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.ba-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}
.ba-card.before .ba-bullet { background: var(--red-primary); }
.ba-card.after .ba-bullet { background: var(--teal); }
.ba-wrapper { position: relative; }

/* ===== Process ===== */
.process {
  padding: 96px 0;
  background: var(--bg-primary);
}
.process-steps {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 36px;
  bottom: 36px;
  width: 1px;
  background: linear-gradient(to bottom, var(--red-primary), var(--teal));
}
.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.process-step:last-child { border-bottom: none; }
.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--red-primary);
  background: var(--bg-primary);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-phase {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--red-primary);
  margin-bottom: 8px;
}
.step-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text-bright);
  margin-bottom: 12px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
}
.step-tags {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.step-tag {
  font-size: 11px;
  color: var(--teal);
  background: var(--teal-glow);
  border: 1px solid rgba(46,196,182,0.3);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ===== Contact Form ===== */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 48px;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.contact-form h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text-bright);
  margin-bottom: 32px;
  text-align: center;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.required {
  font-size: 10px;
  color: var(--red-primary);
  background: var(--red-subtle);
  border: 1px solid var(--border-accent);
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--red-primary);
}
.form-row select option { background: var(--bg-surface); }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-submit { text-align: center; margin-top: 28px; }
.form-submit-btn {
  background: var(--red-primary);
  color: #fff;
  border: none;
  padding: 18px 56px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background 0.25s, transform 0.2s;
  animation: pulse-glow 2.5s ease-in-out infinite;
}
.form-submit-btn:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ===== SNS Banner Links ===== */
.sns-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.sns-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 28px 28px;
  text-decoration: none;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.sns-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 8px;
}
.sns-banner--note::before {
  background: linear-gradient(135deg, rgba(65, 201, 180, 0.06) 0%, transparent 60%);
}
.sns-banner--youtube::before {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.06) 0%, transparent 60%);
}
.sns-banner:hover::before {
  opacity: 1;
}
.sns-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.sns-banner--note:hover {
  border-color: rgba(65, 201, 180, 0.4);
}
.sns-banner--youtube:hover {
  border-color: rgba(255, 0, 0, 0.4);
}
.sns-banner-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sns-banner-icon svg {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.sns-banner-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.sns-banner-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
}
.sns-banner-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.sns-banner-arrow {
  font-size: 20px;
  color: var(--text-secondary);
  transition: transform 0.25s, color 0.25s;
  flex-shrink: 0;
}
.sns-banner:hover .sns-banner-arrow {
  transform: translateX(4px);
  color: var(--text-bright);
}

/* ===== Closing CTA ===== */
.closing-cta {
  padding: 96px 0;
  background: linear-gradient(160deg, #0d0010 0%, #0a0a0a 50%, #00080d 100%);
  text-align: center;
}
.closing-cta h2 { font-size: clamp(24px, 4vw, 38px); margin-bottom: 20px; }
.closing-cta > .container > p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 56px;
}
.closing-note {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .header-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 0;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border-subtle);
    z-index: 1001;
  }
  .header-nav.open { right: 0; }
  .header-nav a {
    font-size: 15px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .header-nav .header-cta {
    margin-top: 16px;
    text-align: center;
  }

  .blog-grid { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-card-thumb { width: 84px; height: 64px; font-size: 24px; }

  .monster-cards { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-wrapper { display: flex; flex-direction: column; gap: 16px; }
  .process-steps::before { display: none; }
  .process-step { grid-template-columns: 48px 1fr; }
  .step-num { width: 48px; height: 48px; font-size: 16px; }

  .service-cards { grid-template-columns: 1fr; }
  .scope-grid { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; }
  .sns-banner-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .profile-card { flex-direction: column; align-items: center; text-align: center; }

  .article-nav { grid-template-columns: 1fr; }
  .cta-banner { padding: 28px 20px; }

  .contact-form { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
