/* =========================================================
   株式会社NK - Corporate Site Styles
   Theme: 信頼の青 + 生産性の緑、カジュアル寄りのモダン
   全カラーは :root の CSS 変数で一元管理
   ========================================================= */

:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #DBEAFE;
  --color-accent: #10B981;
  --color-accent-dark: #059669;
  --color-text: #0F172A;
  --color-text-muted: #475569;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-cta: #0F172A;
  --color-border: #E2E8F0;

  --font-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", sans-serif;

  --container-max: 1120px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(37, 99, 235, 0.12);
}

/* ========== Reset & Base ========== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--color-primary); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }

h1, h2, h3, h4 { line-height: 1.4; margin: 0; }

ul { list-style: none; padding: 0; margin: 0; }

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

.pc-only { display: inline; }
@media (max-width: 768px) {
  .pc-only { display: none; }
}

/* ========== Header ========== */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-weight: 700;
}

.logo-mark { width: 32px; height: 32px; }
.logo-text { font-size: 18px; letter-spacing: 0.02em; }

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

.nav-links a {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--color-primary); opacity: 1; }

.cta-link {
  background: var(--color-primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.2s;
}
.cta-link:hover { background: var(--color-primary-dark); opacity: 1; }

@media (max-width: 768px) {
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child) { display: none; }
}

/* ========== Hero ========== */

.hero {
  position: relative;
  padding: 96px 0 120px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(16, 185, 129, 0.08), transparent 50%),
    var(--color-bg);
  overflow: hidden;
}

.hero-inner {
  text-align: center;
}

.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

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

.hero-lead {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--color-text-muted);
  margin: 0 auto 40px;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== Buttons ========== */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  opacity: 1;
}

.btn-large {
  padding: 18px 48px;
  font-size: 17px;
}

/* ========== Sections ========== */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin: 0 0 12px;
}

.section-title {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  margin-bottom: 16px;
}

.section-lead {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 auto 56px;
  max-width: 720px;
  font-size: 15px;
}

/* ========== Cards ========== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.card p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.card-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 13px;
  color: var(--color-text-muted);
}

.card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.link-arrow {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 14px;
}

.link-arrow::after {
  content: " →";
  transition: margin-left 0.2s;
}

.link-arrow:hover::after {
  margin-left: 4px;
}

/* ========== Strengths ========== */

.strengths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.strength-item {
  text-align: center;
}

.strength-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.strength-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.strength-item p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0;
  text-align: left;
}

/* ========== Company Info ========== */

.company-info {
  max-width: 720px;
  margin: 48px auto 0;
  border-top: 1px solid var(--color-border);
}

.company-info > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}

.company-info dt {
  font-weight: 700;
  color: var(--color-text);
}

.company-info dd {
  margin: 0;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .company-info > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ========== CTA Section ========== */

.section-cta {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  color: #fff;
  text-align: center;
}

.section-cta .section-title { color: #fff; }
.section-cta .section-lead { color: rgba(255, 255, 255, 0.8); }

.contact-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ========== Footer ========== */

.site-footer {
  background: #0F172A;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
  font-size: 14px;
}

.footer-inner {
  display: grid;
  gap: 24px;
  text-align: center;
}

.footer-brand .logo-text {
  color: #fff;
  font-size: 20px;
  display: block;
  margin-bottom: 4px;
}

.footer-tagline {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.footer-links a:hover { color: #fff; opacity: 1; }

.copyright {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ========== Service detail pages ========== */

.page-hero {
  padding: 80px 0;
  background: var(--color-bg-alt);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--color-text-muted); }

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.feature-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.feature-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.placeholder-screen {
  background: linear-gradient(135deg, #F1F5F9, #E2E8F0);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 64px 32px;
  text-align: center;
  color: var(--color-text-muted);
  margin: 32px 0;
}

.placeholder-screen p {
  margin: 0;
  font-size: 14px;
}

/* ========== Badges & Industry Tags ========== */

.badge {
  display: inline-block;
  vertical-align: middle;
  padding: 3px 10px;
  margin-left: 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-prep {
  background: rgba(245, 158, 11, 0.12);
  color: #B45309;
}

.badge-demo {
  background: rgba(16, 185, 129, 0.14);
  color: var(--color-accent-dark);
}

.badge-live {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.3);
  position: relative;
  padding-left: 18px;
}

.badge-live::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.6; transform: translateY(-50%) scale(1.3); }
}

.industry-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.section-cta-link {
  text-align: center;
  margin-top: 32px;
  font-size: 15px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
}

.link-arrow-sub {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 13px;
}

.link-arrow-sub:hover {
  color: var(--color-primary);
  opacity: 1;
}

/* Demo CTA block (replaces "デモ準備中" placeholder on case study pages) */
.demo-live {
  margin: 32px 0;
  padding: 40px 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.demo-live .demo-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.demo-live h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #fff;
}

.demo-live p {
  margin: 0 0 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.demo-live .demo-btn {
  display: inline-block;
  padding: 14px 36px;
  background: #fff;
  color: var(--color-primary-dark);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.demo-live .demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 1;
}

.cases-cta {
  margin-top: 56px;
  padding: 32px;
  text-align: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}

.cases-cta p {
  margin: 0 0 20px;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.7;
}

/* ========== Disclaimer Box (for legal disclaimers like 建蔽率) ========== */

.disclaimer {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 4px solid #F59E0B;
  background: rgba(245, 158, 11, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.disclaimer h4 {
  margin: 0 0 8px;
  color: #B45309;
  font-size: 14px;
  font-weight: 700;
}

.disclaimer p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.7;
}

/* ========== Coming Soon Demo Block ========== */

.demo-coming-soon {
  margin: 32px 0;
  padding: 48px 32px;
  text-align: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(16, 185, 129, 0.04));
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

.demo-coming-soon .demo-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.demo-coming-soon h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--color-text);
}

.demo-coming-soon p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}
