/* =====================================================
   LATHE-NC LAB — サイト共通スタイル(アプリ準拠ダークテーマ)
   ベース: 濃紺 #0d1117 / パネル #151b23
   アクセント: パステルイエロー #e6d38c / ブルー #60a5fa(青×グレー基調・落ち着きトーン)
   ===================================================== */
:root {
  --amber: #e6d38c;
  --amber-light: #f1e3ab;
  --amber-dim: rgba(230, 211, 140, 0.1);
  --teal: #60a5fa;
  --teal-dark: #3b82f6;
  --teal-dim: rgba(96, 165, 250, 0.1);
  --ink: #e7e9ec;
  --ink-soft: #b8bfc8;
  --ink-muted: #8b939e;
  --paper: #0d1117;
  --panel: #151b23;
  --panel-deep: #10151d;
  --line: #263041;
  --line-soft: #1c2530;
  --code-bg: #0a0e14;
  --code-ink: #fde68a;
  --radius: 10px;
  --maxw: 1080px;
  --maxw-article: 760px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  /* アプリのCADグリッド風の背景 */
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  line-height: 1.9;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

/* ---------- ヘッダー ---------- */
.site-header {
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.brand .logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand .logo .nc { color: var(--amber); }
.brand .tagline {
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}
.global-nav { display: flex; gap: 4px; }
.global-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
}
.global-nav a:hover { background: var(--teal-dim); color: var(--teal); }
.global-nav a.nav-cta {
  background: var(--amber);
  color: #0d1117;
}
.global-nav a.nav-cta:hover { background: var(--amber-light); color: #0d1117; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(96, 165, 250, 0.1), transparent 70%),
    linear-gradient(180deg, #0f1a2e 0%, #0d1117 100%);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 76px 20px 68px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.5rem, 4.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #fff;
}
.hero h1 .accent { color: var(--teal); }
.hero p.lead {
  margin-top: 18px;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: var(--ink-soft);
  line-height: 2;
}
.hero .hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-amber {
  background: var(--amber);
  color: #0d1117;
  box-shadow: 0 4px 18px rgba(230, 211, 140, 0.18);
}
.btn-amber:hover { color: #0d1117; background: var(--amber-light); }
.btn-ghost {
  background: rgba(96, 165, 250, 0.08);
  color: var(--teal);
  border: 1px solid rgba(96, 165, 250, 0.45);
}
.btn-ghost:hover { color: var(--teal); background: rgba(96, 165, 250, 0.16); }
.btn-teal {
  background: var(--teal-dark);
  color: #0d1117;
  box-shadow: 0 4px 14px rgba(96, 165, 250, 0.3);
}
.btn-teal:hover { color: #0d1117; background: var(--teal); }

/* ---------- ヒーロー2カラム(トップ: コピー+iPhoneデモ動画) ---------- */
.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.hero-copy { max-width: 620px; text-align: left; }
.hero-copy .hero-buttons { justify-content: flex-start; }
.hero-phone { text-align: center; }
.hero-phone video {
  display: block;
  width: 250px;
  border-radius: 28px;
  border: 6px solid #1f2937;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  background: var(--code-bg);
}
.hero-phone .phone-caption {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}
@media (max-width: 900px) {
  .hero-copy { text-align: center; }
  .hero-copy .hero-buttons { justify-content: center; }
}

/* ---------- セクション共通 ---------- */
.section { padding: 64px 20px; }
.section .inner { max-width: var(--maxw); margin: 0 auto; }
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.04em;
  color: #fff;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--amber);
  border-radius: 2px;
  margin: 14px auto 0;
}
.section-sub {
  text-align: center;
  color: var(--ink-muted);
  margin-top: 14px;
  font-size: 0.95rem;
}

/* ---------- 記事カード ---------- */
.article-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.article-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-3px);
  color: var(--ink);
}
.article-card .thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.thumb-1 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.thumb-2 { background: linear-gradient(135deg, #7a6a35, #cdbd7d); }
.thumb-3 { background: linear-gradient(135deg, #334155, #64748b); }
.thumb-4 { background: linear-gradient(135deg, #24364f, #6b8cae); }
.article-card .body { padding: 18px 20px 22px; flex: 1; }
.article-card .cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(96, 165, 250, 0.35);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.article-card h3 { font-size: 1.02rem; line-height: 1.6; font-weight: 700; color: #fff; }
.article-card p {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.8;
}

/* ---------- 製品バナー(トップ) ---------- */
.product-banner {
  background:
    radial-gradient(ellipse 60% 100% at 85% 50%, rgba(230, 211, 140, 0.1), transparent 70%),
    var(--panel);
  border: 1px solid rgba(230, 211, 140, 0.26);
  border-radius: 14px;
  color: var(--ink);
  padding: 44px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.product-banner h2 { font-size: 1.4rem; font-weight: 800; line-height: 1.6; color: #fff; }
.product-banner p { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }
.badge-beta {
  display: inline-block;
  background: var(--amber);
  color: #0d1117;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

/* ---------- 特長グリッド(製品LP) ---------- */
.feature-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.feature .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--teal-dim);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.feature h3 { font-size: 1.05rem; font-weight: 700; color: #fff; }
.feature p { margin-top: 8px; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.9; }
.feature strong { color: var(--amber-light); background: none; }

/* ---------- 3ステップ ---------- */
.steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  text-align: center;
}
.step .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber);
  color: #0d1117;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.1rem;
}
.step h3 { font-size: 1.02rem; font-weight: 700; color: #fff; }
.step p { margin-top: 8px; font-size: 0.85rem; color: var(--ink-muted); line-height: 1.8; }

/* ---------- 動画セクション(製品LP) ---------- */
.video-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  align-items: center;
  margin: 40px auto 0;
  max-width: var(--maxw);
}
.video-cell { margin: 0; }
.video-cell video {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  background: var(--code-bg);
}
.video-cell figcaption {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
/* 縦型ムービー(中央)は幅を抑えて高さを揃える */
.video-cell-portrait video {
  max-width: 300px;
  margin: 0 auto;
}

/* ---------- 価格 ---------- */
.price-cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.price-card {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
}
.price-card.featured { border-color: var(--amber); position: relative; }
.price-card.featured::before {
  content: "いまはココ";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #0d1117;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 16px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.price-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink-soft); }
.price-card .price { font-size: 2rem; font-weight: 800; margin-top: 10px; color: #fff; }
.price-card .price small { font-size: 0.9rem; font-weight: 600; color: var(--ink-muted); }
.price-card ul {
  list-style: none;
  margin-top: 18px;
  text-align: left;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.price-card ul li { padding: 6px 0 6px 26px; position: relative; }
.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--teal);
  font-weight: 800;
}

/* ---------- ストーリー ---------- */
.story {
  background: var(--teal-dim);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-left: 5px solid var(--teal-dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 30px 32px;
  max-width: 820px;
  margin: 40px auto 0;
}
.story p { font-size: 0.95rem; color: var(--ink-soft); }
.story p + p { margin-top: 14px; }
.story strong { color: var(--amber-light); background: none; }
.story .sign {
  margin-top: 18px;
  text-align: right;
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 700;
}

/* ---------- CTAセクション ---------- */
.cta-section {
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(96, 165, 250, 0.1), transparent 70%),
    var(--panel-deep);
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-align: center;
  padding: 64px 20px;
}
.cta-section h2 { font-size: 1.5rem; font-weight: 800; line-height: 1.6; color: #fff; }
.cta-section p { margin-top: 12px; color: var(--ink-soft); font-size: 0.95rem; }
.cta-section .hero-buttons { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 記事ページ ---------- */
.article-header {
  background: var(--panel-deep);
  border-bottom: 1px solid var(--line);
  padding: 48px 20px 40px;
}
.article-header .inner { max-width: var(--maxw-article); margin: 0 auto; }
.breadcrumb { font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.article-header h1 {
  font-size: clamp(1.35rem, 3.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.6;
  color: #fff;
}
.article-meta { margin-top: 14px; font-size: 0.82rem; color: var(--ink-muted); }
.article-meta .cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(96, 165, 250, 0.35);
  padding: 2px 10px;
  border-radius: 999px;
  margin-right: 10px;
}

.article-body {
  max-width: var(--maxw-article);
  margin: 0 auto;
  padding: 48px 20px 72px;
}
.article-body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 52px 0 20px;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-left: 5px solid var(--amber);
  border-radius: 0 6px 6px 0;
  line-height: 1.6;
  color: #fff;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  color: #fff;
}
.article-body p { margin: 16px 0; color: var(--ink); }
.article-body ul, .article-body ol { margin: 16px 0 16px 24px; }
.article-body li { margin: 6px 0; }
.article-body strong {
  color: var(--amber-light);
  background: linear-gradient(transparent 70%, rgba(230, 211, 140, 0.16) 70%);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
  background: var(--panel);
}
.article-body th, .article-body td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.article-body th { background: rgba(96, 165, 250, 0.08); color: var(--teal); font-weight: 700; white-space: nowrap; }

.article-body pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  color: var(--code-ink);
  padding: 20px 22px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 20px 0;
}
.article-body code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
}
.article-body p code, .article-body li code, .article-body td code {
  background: var(--panel-deep);
  border: 1px solid var(--line);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--amber-light);
}

.point-box {
  background: var(--amber-dim);
  border: 1px solid rgba(230, 211, 140, 0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.point-box .label {
  font-weight: 800;
  color: var(--amber);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}
.point-box p { margin: 0; font-size: 0.92rem; }

.note-box {
  background: var(--teal-dim);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.92rem;
}
.note-box .label {
  font-weight: 800;
  color: var(--teal);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}
.note-box p { margin: 0; }

/* 記事内CTA */
.article-cta {
  margin: 56px 0 0;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(96, 165, 250, 0.1), transparent 70%),
    var(--panel);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 14px;
  color: var(--ink);
  padding: 36px 32px;
  text-align: center;
}
.article-cta h2 {
  all: unset;
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.7;
  color: #fff;
}
.article-cta p { margin: 12px 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.article-cta .hero-buttons { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 関連記事 */
.related {
  max-width: var(--maxw-article);
  margin: 0 auto;
  padding: 0 20px 72px;
}
.related h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; color: #fff; }
.related ul { list-style: none; }
.related li { border-bottom: 1px solid var(--line-soft); }
.related a {
  display: block;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}
.related a:hover { color: var(--teal); }
.related a::before { content: "→ "; color: var(--amber); font-weight: 800; }

/* ---------- フッター ---------- */
.site-footer {
  background: #0a0e14;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 48px 20px 32px;
  font-size: 0.85rem;
}
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; }
.site-footer .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--amber-light); }
.site-footer .copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 640px) {
  .brand .tagline { display: none; }
  .brand .logo { font-size: 1rem; white-space: nowrap; }
  .global-nav a { padding: 8px 10px; font-size: 0.82rem; white-space: nowrap; }
  .hero { padding: 52px 20px 48px; }
  .section { padding: 48px 20px; }
  .product-banner { padding: 32px 24px; }
  .article-body h2 { font-size: 1.15rem; }
}
