/**
 * LoM Net - Editorial AI System Engineering Design System
 * Strictly based on /Users/seieimare/Desktop/LoM/toppage & https://lom-inc.jp
 * High-End Minimalist Editorial & Cinematic Aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  /* LoM Top Page Official Palette */
  --paper: #f4f0e8;
  --cream: #e9e0d2;
  --ink: #1d292b;
  --ink-soft: rgba(29, 41, 43, 0.78);
  --ink-muted: rgba(29, 41, 43, 0.52);
  --teal: #233a3d;
  --wine: #8f473f;
  --sage: #83908b;
  --beige: #c9bb9d;
  --line: rgba(29, 41, 43, 0.14);
  --line-strong: rgba(29, 41, 43, 0.28);
  --card-bg: rgba(255, 255, 255, 0.88);

  /* Industry Specific Accent Tokens */
  --accent-construction: #8d4a23; /* クラフト・建設・テラコッタ */
  --accent-construction-soft: #f5ebe1;
  --accent-nursing: #2d5a43; /* 医療・安心・フォレスト */
  --accent-nursing-soft: #eaf2ed;
  --accent-restaurant: #8c261e; /* 飲食・芳醇・ワイン */
  --accent-restaurant-soft: #f9edea;

  /* Typography */
  --serif: 'Cormorant Garamond', 'Didot', 'Yu Mincho', 'Hiragino Mincho ProN', Georgia, serif;
  --sans: 'DM Sans', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(.2, .72, .18, 1);
  --ease-cinematic: cubic-bezier(.16, 1, .3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--paper);
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

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

.page-shell {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
}

.page-shell--narrow {
  width: min(100% - 48px, 920px);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 84px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 240, 232, 0.94);
  backdrop-filter: blur(14px);
  border-top: 3px solid var(--teal);
  border-bottom: 1px solid var(--line);
  transition: all .35s var(--ease);
}

.brand-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: .1em;
  font-weight: 500;
  line-height: 1;
}

.brand span {
  color: var(--wine);
}

.brand-badge {
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-left: 1px solid var(--line-strong);
  padding-left: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width .3s var(--ease);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.btn-contact-header {
  padding: 10px 20px;
  border: 1px solid var(--ink);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all .3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-contact-header:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* Breadcrumbs */
.breadcrumb-nav {
  padding: 16px 0;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}

.breadcrumb-nav a {
  color: var(--ink-soft);
}

.breadcrumb-nav a:hover {
  color: var(--wine);
}

.breadcrumb-nav span {
  margin: 0 8px;
  color: var(--line-strong);
}

/* Hero Section */
.hero {
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.hero-meta .chapter-tag {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
}

.hero-meta .industry-pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .15em;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5.2vw, 66px);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 400;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--wine);
}

.hero-lead {
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 800px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-editorial-primary {
  background: var(--teal);
  color: #fff;
  padding: 14px 34px;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .3s var(--ease);
}

.btn-editorial-primary:hover {
  background: var(--wine);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(29, 41, 43, 0.15);
}

.btn-editorial-secondary {
  padding: 13px 28px;
  border: 1px solid var(--line-strong);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  transition: all .3s var(--ease);
}

.btn-editorial-secondary:hover {
  border-color: var(--ink);
  background: rgba(29, 41, 43, 0.04);
}

/* Strategic Pillars Grid (3 Industries) */
.pillars-section {
  padding: clamp(60px, 7vw, 90px) 0;
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-kicker::after {
  content: '';
  height: 1px;
  width: 48px;
  background: var(--line-strong);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 400;
}

.section-title em {
  font-style: italic;
  color: var(--wine);
}

.section-lead {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 40px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.pillar-card {
  background: #ffffff;
  padding: 38px 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all .35s var(--ease);
}

.pillar-card:hover {
  border-color: var(--teal);
  box-shadow: 0 16px 36px rgba(35, 58, 61, 0.08);
  transform: translateY(-4px);
}

.pillar-card .pillar-header {
  margin-bottom: 18px;
}

.pillar-card .pillar-num {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--wine);
  font-style: italic;
  display: block;
  margin-bottom: 8px;
}

.pillar-card h2,
.pillar-card h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 20px;
}

.pillar-points {
  list-style: none;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-top: auto;
}

.pillar-points li {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
  line-height: 1.6;
}

.pillar-points li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--wine);
  font-size: 10px;
  top: 1px;
}

.pillar-btn-wrap {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pillar-link {
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pillar-link:hover {
  color: var(--wine);
}

/* Development Steps (PoC to Production) */
.steps-section {
  padding: clamp(60px, 7vw, 90px) 0;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 232, 0.45);
}

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

.step-card {
  background: #ffffff;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.step-num {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--wine);
  font-style: italic;
  margin-bottom: 10px;
}

.step-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* CTA Box */
.editorial-cta-box {
  background: var(--teal);
  color: #fff;
  border-radius: 4px;
  padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 60px);
  text-align: center;
  margin: 70px 0;
  position: relative;
  overflow: hidden;
}

.editorial-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 71, 63, 0.35) 0%, rgba(35, 58, 61, 0) 70%);
  pointer-events: none;
}

.editorial-cta-box h2,
.editorial-cta-box h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.3;
}

.editorial-cta-box p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.btn-cta-gold {
  background: var(--paper);
  color: var(--ink);
  padding: 14px 34px;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  border-radius: 2px;
  transition: all .3s var(--ease);
}

.btn-cta-gold:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Footer */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: clamp(50px, 6vw, 80px) 0 36px;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 50px);
  margin-bottom: 50px;
}

.footer-brand .brand {
  margin-bottom: 14px;
  display: inline-block;
}

.footer-brand p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-muted);
  max-width: 320px;
}

.footer-col h5 {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--ink-soft);
}

.footer-col a:hover {
  color: var(--wine);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: .1em;
}

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

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-nav {
    display: none;
  }
}

/* ==========================================================================
   Sticky Floating CTA Bar (Always Visible at Bottom)
   ========================================================================== */
.sticky-floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(29, 41, 43, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(244, 240, 232, 0.2);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  padding: 12px clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: slideUpFloating .4s var(--ease-cinematic);
}

@keyframes slideUpFloating {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sticky-cta-text {
  color: #f4f0e8;
  font-size: 13px;
  line-height: 1.5;
}

.sticky-cta-text strong {
  color: #c9bb9d;
  font-weight: 700;
  display: block;
  font-size: 14px;
}

.sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c9bb9d 0%, #b39b76 100%);
  color: #1d292b;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 3px;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform .2s, box-shadow .2s;
}

.sticky-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 187, 157, 0.4);
}

@media (max-width: 640px) {
  .sticky-floating-cta {
    flex-direction: column;
    padding: 10px 16px 14px;
    gap: 8px;
    text-align: center;
  }
  .sticky-cta-text strong {
    font-size: 12px;
  }
  .sticky-cta-text span {
    display: none;
  }
  .sticky-cta-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Figure & Figcaption (Meaning & Context for Images)
   ========================================================================== */
.article-figure {
  margin: 36px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.article-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.article-figcaption {
  padding: 12px 18px;
  background: rgba(29, 41, 43, 0.04);
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.article-figcaption strong {
  color: var(--ink);
  font-weight: 700;
  display: inline-block;
  margin-right: 6px;
}

