/* ==========================================================
   NAIKI LAB Corporate Theme - Main Stylesheet (Light)
   ========================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f3f7fd;
  --surface: #ffffff;
  --surface-border: rgba(18, 42, 92, 0.1);
  --text: #101828;
  --text-muted: #5a6b85;
  --accent: #0098d8;
  --accent-2: #6d4dff;
  --gradient: linear-gradient(120deg, #00c6e8 0%, #3e7bff 50%, #7c5cff 100%);
  --card-shadow: 0 8px 28px rgba(18, 42, 92, 0.06);
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Space Grotesk", "Noto Sans JP", sans-serif;
  --header-h: 72px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ---------- Background decoration ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 70, 150, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 70, 150, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}
.bg-orb {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(110px); opacity: 0.5; pointer-events: none;
}
.bg-orb--1 { width: 480px; height: 480px; top: -140px; right: -120px; background: #cfeaff; }
.bg-orb--2 { width: 420px; height: 420px; bottom: -160px; left: -140px; background: #e4dcff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--surface-border);
  box-shadow: 0 4px 24px rgba(18, 42, 92, 0.05);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-en); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gradient);
  display: grid; place-items: center;
  font-size: 0.95rem; color: #fff; font-weight: 800;
  box-shadow: 0 4px 16px rgba(0, 150, 220, 0.35);
}
.brand small { display: block; font-family: var(--font-jp); font-size: 0.6rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.12em; line-height: 1.2; }
.brand-logo-img { max-height: 46px; width: auto; display: block; }
.site-footer .brand-logo-img { max-height: 40px; }

.global-nav ul { display: flex; gap: 34px; align-items: center; }
.global-nav a {
  font-family: var(--font-en); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.14em; color: var(--text-muted);
  position: relative; padding: 6px 0; transition: color 0.25s;
}
.global-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0%;
  background: var(--gradient); transition: width 0.3s ease; border-radius: 2px;
}
.global-nav a:hover { color: var(--text); }
.global-nav a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 22px !important; border-radius: 999px;
  background: var(--gradient); color: #fff !important; font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(0, 150, 220, 0.3);
  transition: transform 0.25s, box-shadow 0.25s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0, 150, 220, 0.45); }

/* Hamburger */
.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 130;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 6px auto; border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: linear-gradient(180deg, #f6faff 0%, #ffffff 100%);
}
#particle-canvas { position: absolute; inset: 0; z-index: 0; }
.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 0.78rem; letter-spacing: 0.22em;
  color: var(--accent); font-weight: 600;
  border: 1px solid rgba(0, 152, 216, 0.3); border-radius: 999px;
  padding: 8px 18px; margin-bottom: 28px;
  background: rgba(0, 152, 216, 0.06);
}
.hero-eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 800; line-height: 1.35; letter-spacing: 0.03em;
  margin-bottom: 26px;
}
.hero-title .grad {
  background: linear-gradient(120deg, #00a6dc 0%, #3e7bff 50%, #7c5cff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-lead {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--text-muted); max-width: 560px; margin-bottom: 42px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 36px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn--primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 8px 24px rgba(0, 140, 220, 0.32);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(0, 140, 220, 0.45); }
.btn--ghost {
  border: 1px solid var(--surface-border); color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-3px); border-color: rgba(0, 152, 216, 0.5); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero visual (right side) ---------- */
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-visual { position: relative; height: 540px; }

.ai-core {
  position: absolute; top: 50%; left: 50%;
  width: 280px; height: 280px; transform: translate(-50%, -50%);
}
.ai-core-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #00c6e8, #3e7bff, #7c5cff, rgba(0,198,232,0.05), #00c6e8);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: coreSpin 9s linear infinite;
}
.ai-core-ring--2 {
  inset: -34px;
  background: none;
  border: 1px dashed rgba(62, 123, 255, 0.35);
  -webkit-mask: none; mask: none;
  animation: coreSpin 26s linear infinite reverse;
}
.ai-core-center {
  position: absolute; inset: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(18, 42, 92, 0.08);
  box-shadow: 0 18px 50px rgba(0, 140, 220, 0.18);
  font-family: var(--font-en); font-size: 3rem; font-weight: 700;
  background-clip: padding-box;
  animation: corePulse 3.6s ease-in-out infinite;
}
.ai-core-center span {
  background: linear-gradient(120deg, #00a6dc 0%, #3e7bff 50%, #7c5cff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes coreSpin { to { transform: rotate(360deg); } }
@keyframes corePulse { 50% { box-shadow: 0 18px 70px rgba(0, 140, 220, 0.32); } }

.float-card {
  position: absolute; z-index: 1;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(18, 42, 92, 0.09);
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(18, 42, 92, 0.12);
  animation: floatY 6s ease-in-out infinite;
}
.float-card--chat {
  top: 6%; left: 0;
  display: flex; gap: 12px; align-items: center;
  padding: 14px 18px; max-width: 260px;
  animation-delay: 0s;
}
.float-card--stat {
  bottom: 8%; left: 4%;
  padding: 16px 20px 14px;
  animation-delay: 1.6s;
}
.float-card--badge {
  top: 24%; right: 0;
  display: flex; gap: 10px; align-items: center;
  padding: 12px 18px;
  font-size: 0.8rem; font-weight: 700;
  animation-delay: 3.2s;
}
.fc-icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.05rem;
  background: linear-gradient(135deg, rgba(0, 166, 220, 0.12), rgba(124, 92, 255, 0.12));
  border: 1px solid rgba(0, 152, 216, 0.22);
}
.fc-title { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.06em; }
.fc-sub { font-size: 0.82rem; font-weight: 700; line-height: 1.5; }
.fc-big { font-family: var(--font-en); font-size: 1.7rem; font-weight: 700; line-height: 1.2;
  background: linear-gradient(120deg, #00a6dc 0%, #3e7bff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fc-big small { font-size: 0.5em; font-family: var(--font-jp); font-weight: 700; margin-left: 2px; }
.fc-bars { display: flex; gap: 5px; align-items: flex-end; height: 30px; margin-top: 8px; }
.fc-bars i {
  width: 9px; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #3e7bff, #00c6e8);
  height: var(--h, 50%);
  transform-origin: bottom;
  animation: barGrow 2.6s ease-in-out infinite;
}
.fc-bars i:nth-child(2) { animation-delay: 0.25s; }
.fc-bars i:nth-child(3) { animation-delay: 0.5s; }
.fc-bars i:nth-child(4) { animation-delay: 0.75s; }
.fc-bars i:nth-child(5) { animation-delay: 1s; }
.fc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: pulse 1.6s infinite;
}
.typing-dots { display: inline-flex; gap: 4px; margin-left: 2px; }
.typing-dots i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  animation: typingDot 1.2s ease-in-out infinite;
}
.typing-dots i:nth-child(2) { animation-delay: 0.2s; }
.typing-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot { 30% { transform: translateY(-4px); opacity: 0.4; } }
@keyframes floatY { 50% { transform: translateY(-12px); } }
@keyframes barGrow { 50% { transform: scaleY(0.55); } }

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-core-ring, .ai-core-ring--2, .ai-core-center, .float-card, .fc-bars i, .fc-dot, .typing-dots i { animation: none; }
}

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-en); font-size: 0.68rem; letter-spacing: 0.3em;
  color: var(--text-muted); writing-mode: vertical-rl; z-index: 1;
}
.scroll-hint::after {
  content: ""; display: block; width: 1px; height: 46px; margin-top: 12px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Keyword marquee ---------- */
.marquee {
  border-block: 1px solid var(--surface-border);
  padding: 18px 0; overflow: hidden; white-space: nowrap;
  background: var(--bg-2);
}
.marquee-track { display: inline-flex; gap: 56px; animation: marquee 30s linear infinite; }
.marquee span {
  font-family: var(--font-en); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.16em; color: rgba(90, 107, 133, 0.65);
}
.marquee span i { font-style: normal; color: var(--accent); margin-right: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }

.section-head { margin-bottom: 60px; }
.section-label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.26em; color: var(--accent); margin-bottom: 16px;
}
.section-label::before { content: ""; width: 34px; height: 1px; background: var(--gradient); }
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800; line-height: 1.4; letter-spacing: 0.03em;
}
.section-desc { color: var(--text-muted); max-width: 640px; margin-top: 18px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.about-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 800; line-height: 1.6; margin-bottom: 22px; }
.about-copy p { color: var(--text-muted); margin-bottom: 18px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); padding: 30px 20px; text-align: center;
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover { border-color: rgba(0, 152, 216, 0.4); transform: translateY(-4px); }
.stat-value {
  font-family: var(--font-en); font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 700;
  background: linear-gradient(120deg, #00a6dc 0%, #3e7bff 50%, #7c5cff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-value .unit { font-size: 0.55em; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; letter-spacing: 0.06em; }

/* ---------- Services ---------- */
#service { background: var(--bg-2); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); padding: 40px 32px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 166, 220, 0.07), transparent 65%);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(0, 152, 216, 0.35); box-shadow: 0 20px 46px rgba(18, 42, 92, 0.12); }
.service-card:hover::before { opacity: 1; }
.service-num {
  font-family: var(--font-en); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.2em; color: var(--accent); margin-bottom: 22px; display: block;
}
.service-icon {
  width: 58px; height: 58px; border-radius: 15px; margin-bottom: 26px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 166, 220, 0.1), rgba(124, 92, 255, 0.1));
  border: 1px solid rgba(0, 152, 216, 0.22);
}
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.04em; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Works ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card {
  display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--surface-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.35s, border-color 0.35s;
}
.work-card:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, 0.5); }
.work-thumb { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: linear-gradient(135deg, #e3f0fd, #eae4fd); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.work-card:hover .work-thumb img { transform: scale(1.06); }
.work-thumb .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 700; letter-spacing: 0.2em;
  color: rgba(16, 24, 40, 0.28); font-size: 0.85rem;
}
.work-body { padding: 24px 26px 28px; }
.work-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--accent); border: 1px solid rgba(0, 152, 216, 0.35);
  border-radius: 999px; padding: 3px 12px; margin-bottom: 14px;
}
.work-body h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.55; margin-bottom: 10px; }
.work-body p { font-size: 0.85rem; color: var(--text-muted); }

.more-link-wrap { text-align: center; margin-top: 52px; }

/* ---------- Blog ---------- */
#blog { background: var(--bg-2); }
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.35s, border-color 0.35s;
}
.blog-card:hover { transform: translateY(-6px); border-color: rgba(0, 152, 216, 0.35); }
.blog-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #e3f0fd, #e9e4fd); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-meta { display: flex; gap: 14px; align-items: center; font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-en); letter-spacing: 0.08em; }
.blog-cat { color: var(--accent); font-weight: 700; }
.blog-body h3 { font-size: 0.98rem; font-weight: 700; line-height: 1.6; }

/* ---------- Contact CTA ---------- */
.contact-cta {
  position: relative; border-radius: 28px; overflow: hidden;
  padding: clamp(50px, 8vw, 90px) clamp(28px, 6vw, 80px);
  background:
    radial-gradient(600px circle at 15% 20%, rgba(0, 198, 232, 0.12), transparent 55%),
    radial-gradient(600px circle at 85% 80%, rgba(124, 92, 255, 0.12), transparent 55%),
    var(--bg-2);
  border: 1px solid var(--surface-border);
  text-align: center;
}
.contact-cta h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: 18px; }
.contact-cta p { color: var(--text-muted); margin-bottom: 38px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--surface-border); padding: 64px 0 34px; margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-nav { display: flex; gap: 36px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-en); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--text-muted); transition: color 0.25s; }
.footer-nav a:hover { color: var(--accent); }
.footer-legal {
  display: flex; justify-content: center; gap: 10px 30px; flex-wrap: wrap;
  border-top: 1px solid var(--surface-border);
  padding-top: 24px; margin-bottom: 18px;
}
.footer-legal a { font-size: 0.76rem; color: var(--text-muted); transition: color 0.25s; }
.footer-legal a:hover { color: var(--accent); }
.copyright { text-align: center; font-size: 0.72rem; color: rgba(90, 107, 133, 0.7); font-family: var(--font-en); letter-spacing: 0.1em; }

/* ---------- Inner pages (blog/archive/single) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 90px) 0 70px;
  border-bottom: 1px solid var(--surface-border);
  background: radial-gradient(700px circle at 80% 0%, rgba(124, 92, 255, 0.08), transparent 60%), linear-gradient(180deg, #f6faff, #ffffff);
}
.page-hero .section-title { margin-top: 8px; }

.content-area { padding: 80px 0 110px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.entry-content { max-width: 760px; margin-inline: auto; }
.entry-content h2 {
  font-size: 1.5rem; margin: 2.4em 0 0.9em; padding-left: 16px;
  border-left: 4px solid; border-image: var(--gradient) 1;
  line-height: 1.5;
}
.entry-content h3 { font-size: 1.2rem; margin: 2em 0 0.8em; }
.entry-content p { margin-bottom: 1.4em; color: #333f54; }
.entry-content ul, .entry-content ol { margin: 0 0 1.6em 1.4em; color: #333f54; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 14px; margin: 1.5em 0; }
.entry-content blockquote {
  border-left: 3px solid var(--accent-2); padding: 4px 0 4px 20px;
  color: var(--text-muted); margin: 1.6em 0;
}
.entry-content code { background: rgba(18, 42, 92, 0.07); padding: 2px 8px; border-radius: 6px; font-size: 0.9em; }
.entry-content pre { background: #101828; color: #e8ecf4; border: 1px solid var(--surface-border); border-radius: 12px; padding: 20px; overflow-x: auto; margin: 1.6em 0; }
.entry-content pre code { background: none; padding: 0; color: inherit; }

.entry-header { max-width: 760px; margin: 0 auto 46px; }
.entry-header h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.6; margin-top: 14px; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 64px; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px;
  border: 1px solid var(--surface-border); border-radius: 12px;
  font-family: var(--font-en); font-size: 0.85rem; color: var(--text-muted);
  transition: border-color 0.25s, color 0.25s;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--text); }
.pagination .page-numbers.current { background: var(--gradient); color: #fff; border: 0; font-weight: 700; }

/* ---------- Forms (Contact Form 7 compatible) ---------- */
.form-wrap { max-width: 680px; margin-inline: auto; }
.form-wrap label { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 8px; }
.form-wrap .wpcf7-form p, .form-wrap .field { margin-bottom: 26px; }
.form-wrap input[type="text"],
.form-wrap input[type="email"],
.form-wrap input[type="tel"],
.form-wrap textarea {
  width: 100%; padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--surface-border); border-radius: 12px;
  color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-wrap input:focus, .form-wrap textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 152, 216, 0.14);
}
.form-wrap textarea { min-height: 180px; resize: vertical; }
.form-wrap input[type="submit"], .form-wrap button[type="submit"] {
  display: inline-flex; justify-content: center; width: 100%;
  padding: 17px 36px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(120deg, #00c6e8 0%, #3e7bff 50%, #7c5cff 100%);
  color: #fff; font-weight: 800; font-size: 1rem; font-family: inherit;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 24px rgba(0, 140, 220, 0.32);
  transition: transform 0.25s, box-shadow 0.25s;
}
.form-wrap input[type="submit"]:hover, .form-wrap button[type="submit"]:hover {
  transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0, 140, 220, 0.45);
}
.wpcf7-not-valid-tip { color: #e0245e; font-size: 0.8rem; margin-top: 6px; }
.wpcf7-response-output { border-radius: 12px !important; padding: 14px 18px !important; margin: 24px 0 0 !important; border-color: var(--accent) !important; }

/* ---------- Recruit ---------- */
.recruit-intro { max-width: 720px; margin: 0 auto 70px; text-align: center; }
.recruit-intro h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 800; line-height: 1.6; margin-bottom: 20px; }
.recruit-intro p { color: var(--text-muted); }

.job-list { display: grid; gap: 34px; }
.job-card {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: border-color 0.3s;
}
.job-card:hover { border-color: rgba(0, 152, 216, 0.35); }
.job-card-head {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 30px 36px;
  border-bottom: 1px solid var(--surface-border);
  background: linear-gradient(120deg, rgba(0, 198, 232, 0.05), rgba(124, 92, 255, 0.05));
}
.job-icon {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 1.4rem;
  background: linear-gradient(135deg, rgba(0, 166, 220, 0.1), rgba(124, 92, 255, 0.1));
  border: 1px solid rgba(0, 152, 216, 0.22);
}
.job-num {
  font-family: var(--font-en); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.2em; color: var(--accent); display: block; margin-bottom: 4px;
}
.job-card-head h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 800; line-height: 1.5; }
.job-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.job-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent); border: 1px solid rgba(0, 152, 216, 0.35);
  border-radius: 999px; padding: 4px 14px; white-space: nowrap;
}
.job-card-body { padding: 34px 36px 38px; }
.job-lead { color: var(--text-muted); margin-bottom: 28px; }
.job-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.job-detail h4 {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.job-detail h4::before { content: ""; width: 16px; height: 2px; background: var(--gradient); border-radius: 2px; }
.job-detail ul { display: grid; gap: 8px; }
.job-detail li {
  position: relative; padding-left: 20px;
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.7;
}
.job-detail li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--gradient); transform: rotate(45deg);
}
.job-terms {
  grid-column: 1 / -1;
  display: flex; gap: 10px 26px; flex-wrap: wrap;
  border-top: 1px dashed var(--surface-border);
  padding-top: 22px; margin-top: 4px;
}
.job-terms span { font-size: 0.82rem; color: var(--text-muted); }
.job-terms strong { color: var(--text); font-weight: 700; margin-right: 6px; }

.recruit-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.flow-step {
  position: relative; text-align: center;
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); padding: 30px 18px 26px;
  box-shadow: var(--card-shadow);
}
.flow-step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-en); font-weight: 700; font-size: 1.5rem;
  background: linear-gradient(120deg, #00a6dc 0%, #3e7bff 50%, #7c5cff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.flow-step h3 { font-size: 0.95rem; font-weight: 800; margin-bottom: 8px; }
.flow-step p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; }

@media (max-width: 960px) {
  .recruit-flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .job-card-head { padding: 24px 24px; }
  .job-card-body { padding: 26px 24px 30px; }
  .job-detail { grid-template-columns: 1fr; }
  .job-badges { margin-left: 0; }
  .recruit-flow { grid-template-columns: 1fr; }
}

/* ---------- Company (事業者情報) ---------- */
.message-grid {
  display: grid; grid-template-columns: 320px 1fr; gap: 54px;
  align-items: start; max-width: 960px; margin-inline: auto;
}
.message-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; background: linear-gradient(135deg, #e3f0fd, #eae4fd);
  border: 1px solid var(--surface-border);
  box-shadow: var(--card-shadow);
}
.message-photo img { width: 100%; height: 100%; object-fit: cover; }
.message-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--radius);
  background: linear-gradient(200deg, rgba(0, 198, 232, 0.08), transparent 45%);
}
.message-photo .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 700; letter-spacing: 0.2em;
  color: rgba(16, 24, 40, 0.28); font-size: 0.85rem;
}
.message-body h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem); font-weight: 800;
  line-height: 1.6; margin-bottom: 24px;
}
.message-body h3 .grad {
  background: linear-gradient(120deg, #00a6dc 0%, #3e7bff 50%, #7c5cff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.message-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; }
.message-sign {
  display: flex; align-items: baseline; gap: 14px; margin-top: 30px;
  border-top: 1px solid var(--surface-border); padding-top: 22px;
}
.message-sign small { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.06em; }
.message-sign strong { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.1em; }

@media (max-width: 800px) {
  .message-grid { grid-template-columns: 1fr; gap: 34px; }
  .message-photo { max-width: 320px; margin-inline: auto; width: 100%; }
}

.company-table {
  width: 100%; max-width: 820px; margin-inline: auto;
  border: 1px solid var(--surface-border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
  box-shadow: var(--card-shadow);
  border-collapse: collapse;
}
.company-table th, .company-table td {
  padding: 22px 28px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--surface-border);
  font-size: 0.92rem; line-height: 1.8;
}
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: 0; }
.company-table th {
  width: 200px; background: var(--bg-2);
  font-weight: 700; letter-spacing: 0.06em; white-space: nowrap;
}
.company-table td { color: var(--text-muted); }
.company-table td strong { color: var(--text); }

.sns-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 820px; margin-inline: auto; }
.sns-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 30px 16px 26px; text-align: center;
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); box-shadow: var(--card-shadow);
  transition: transform 0.3s, border-color 0.3s;
}
.sns-card:hover { transform: translateY(-5px); border-color: rgba(0, 152, 216, 0.4); }
.sns-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(0, 166, 220, 0.1), rgba(124, 92, 255, 0.1));
  border: 1px solid rgba(0, 152, 216, 0.22);
}
.sns-icon svg { width: 24px; height: 24px; fill: var(--accent); }
.sns-card h3 { font-family: var(--font-en); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; }
.sns-card p { font-size: 0.76rem; color: var(--text-muted); line-height: 1.6; }

.company-note {
  max-width: 820px; margin: 26px auto 0;
  font-size: 0.8rem; color: var(--text-muted); text-align: center;
}

@media (max-width: 960px) {
  .sns-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .company-table th { width: auto; display: block; padding: 16px 20px 0; background: none; }
  .company-table td { display: block; padding: 6px 20px 16px; border-bottom: 1px solid var(--surface-border); }
  .company-table tr th { border-bottom: 0; }
  .company-table { display: block; }
  .company-table tbody, .company-table tr { display: block; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .service-grid, .works-grid, .blog-list, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .global-nav {
    position: fixed; inset: 0; z-index: 120;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    display: grid; place-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.35s;
  }
  .global-nav.is-open { opacity: 1; pointer-events: auto; }
  .global-nav ul { flex-direction: column; gap: 30px; text-align: center; }
  .global-nav a { font-size: 1.05rem; }
}

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .service-grid, .works-grid, .blog-list, .archive-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-card { padding: 20px 8px; }
}
