/* ================================================
   NLV-5201S AIマシンビジョン Webサイト スタイル
   ================================================ */

/* ---------- リセット・基本 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1f497d;
  --blue:    #0070c0;
  --ltblue:  #bdd7ee;
  --white:   #ffffff;
  --gray:    #f5f7fa;
  --dkgray:  #444444;
  --text:    #222222;
  --green:   #375623;
  --ltgreen: #e2f0d9;
  --orange:  #c55a11;
  --ltorng:  #fce4d6;
  --accent:  #00b0f0;
  --border:  #d0dbe8;
  --dimgray:  #696969;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #ffffff;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
section:nth-child(even) { background: var(--gray); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.section-sub {
  font-size: 1rem;
  color: #666;
  margin-bottom: 48px;
  max-width: 100%;
}

/* ---------- ヘッダー ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.header-logo span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--ltblue);
  letter-spacing: 0.1em;
}

.header-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.header-nav a {
  font-size: 0.82rem;
  color: var(--ltblue);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--white); text-decoration: none; }

.header-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 6px 18px;
  border-radius: 4px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}

.header-cta:hover { background: #0090cc !important; }

/* ---------- FVビジュアル（ヒーロー内・ボタン下） ---------- */
.fv-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 1180px;
  height: 300px;
  margin: 40px auto 0;
  border-radius: 8px;
  overflow: hidden;
}

.fv-visual-img {
  display: none; /* 画像設定後は display: block に変更 */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv-visual-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 8px;
}

.fv-placeholder-icon { font-size: 2.5rem; opacity: 0.5; }

.fv-placeholder-text {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.fv-placeholder-hint {
  font-size: 0.75rem;
  color: var(--ltblue);
  opacity: 0.7;
}

@media (max-width: 900px) {
  .fv-visual-wrap { height: 180px; margin-top: 28px; }
}

/* ---------- ② ヒーロー ---------- */
#hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a3560 60%, #1a6090 100%);
  padding: 100px 0 60px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,176,240,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-catch {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero-catch em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-product {
  font-size: 0.9rem;
  color: var(--ltblue);
  letter-spacing: 0.05em;
  margin-bottom: 36px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: #0090cc;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}

/* ヒーロー右側：デバイスイメージカード */
.hero-device {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
}

.hero-device-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 4px;
}

.hero-device-sub {
  font-size: 0.78rem;
  color: var(--ltblue);
  margin-bottom: 28px;
  letter-spacing: 0.08em;
}

.hero-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}

.hero-spec-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 14px;
}

.hero-spec-label {
  font-size: 0.68rem;
  color: var(--ltblue);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-weight: 600;
}

.hero-spec-value {
  font-size: 0.88rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- ② 課題提起 ---------- */
#problem { background: #fff; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  position: relative;
}

.problem-card::before {
  content: "Task";
  position: absolute;
  top: -10px; left: 20px;
  background: #d9534f;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 10px;
  border-radius: 10px;
}

.problem-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.problem-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.problem-text {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.7;
}

.problem-arrow {
  text-align: center;
  margin: 40px 0 0;
}

.problem-arrow p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.problem-arrow p::before,
.problem-arrow p::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--blue);
}

/* ---------- ③ ソリューション ---------- */
#solution { background: var(--gray); }

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.sol-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
}

.sol-card-head {
  padding: 20px 24px 16px;
  background: var(--navy);
  color: var(--white);
}

.sol-card-head .sol-num {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.sol-card-head h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}

.sol-card-body {
  padding: 22px 24px;
  flex: 1;
}

.sol-card-body p {
  font-size: 0.875rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: 16px;
}

.sol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sol-tag {
  background: var(--ltblue);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.sol-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  margin-top: 20px;
  border-radius: 6px;
  overflow: inherit;
  background: var(--gray);
}

.sol-img {
  display: none;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* src が設定されているとき画像を表示し、プレースホルダを隠す */
.sol-img-wrap:has(.sol-img[src]:not([src=""])) .sol-img {
  display: block;
}

.sol-img-wrap:has(.sol-img[src]:not([src=""])) .sol-img-placeholder {
  display: none;
}

.sol-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--border);
  border-radius: 6px;
  color: #999;
  font-size: 0.78rem;
}

.sol-img-icon { font-size: 1.8rem; opacity: 0.5; }

/* ---------- ④ 強み・特徴 ---------- */
#strength { background: var(--white); }

.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.str-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.str-item:hover { box-shadow: 0 4px 20px rgba(0,112,192,0.12); }

.str-num {
  width: 52px; height: 52px;
  background: var(--navy);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.str-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.str-content p {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.7;
}

/* ---------- ⑤ 業界別ユースケース ---------- */
#usecase { background: var(--gray); }

.usecase-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.uc-tab {
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.uc-tab:hover { color: var(--navy); }
.uc-tab.active { color: var(--navy); border-bottom-color: var(--blue); }

.uc-panel { display: none; }
.uc-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }

.uc-industry {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.uc-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.35;
}

.uc-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.uc-ba-box {
  border-radius: 8px;
  padding: 16px;
}

.uc-ba-box.before {
  background: var(--ltorng);
  border-left: 4px solid #d9534f;
}

.uc-ba-box.after {
  background: var(--ltgreen);
  border-left: 4px solid #5cb85c;
}

.uc-ba-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.uc-ba-box.before .uc-ba-label { color: #c0392b; }
.uc-ba-box.after  .uc-ba-label { color: #27ae60; }

.uc-ba-box ul {
  list-style: none;
  font-size: 0.82rem;
  color: #444;
  line-height: 1.7;
}

.uc-ba-box ul li::before {
  margin-right: 6px;
}

.uc-ba-box.before ul li::before { content: "✕"; color: #c0392b; }
.uc-ba-box.after  ul li::before { content: "✓"; color: #27ae60; }

.uc-effect {
  background: var(--white);
  border-radius: 8px;
  padding: 16px 20px;
  border: 1px solid var(--border);
}

.uc-effect-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.uc-effect ul {
  list-style: none;
  font-size: 0.82rem;
  color: #444;
  line-height: 1.7;
}

.uc-effect ul li::before { content: "→ "; color: var(--blue); font-weight: 700; }

.uc-image-placeholder {
  background: linear-gradient(135deg, var(--navy) 0%, #0a3560 100%);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  text-align: center;
  gap: 12px;
}

.uc-image-placeholder .icon { font-size: 3rem; opacity: 0.5; }
.uc-image-placeholder p { font-size: 0.78rem; line-height: 1.5; padding: 0 20px; }

/* ---------- ⑥ 製品スペック ---------- */
#spec { background: var(--white); }

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.spec-table caption {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
  caption-side: top;
}

.spec-table th,
.spec-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.spec-table th {
  background: var(--ltblue);
  color: var(--navy);
  font-weight: 700;
  text-align: left;
  width: 40%;
}

.spec-table td { color: #333; }

.spec-table tr:nth-child(even) td { background: var(--gray); }

.spec-note {
  margin-top: 20px;
  font-size: 0.78rem;
  color: #888;
  line-height: 1.6;
  padding: 14px 18px;
  background: var(--gray);
  border-radius: 6px;
  border-left: 3px solid var(--border);
}

/* ---------- ⑦ お問い合わせ CTA ---------- */
#contact {
  background: linear-gradient(135deg, var(--navy) 0%, #0a3560 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

#contact .section-label { color: var(--accent); border-bottom-color: var(--accent); }

#contact .section-title { color: var(--white); margin-bottom: 16px; }

#contact .section-sub { color: rgba(255,255,255,0.8); margin: 0 auto 40px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.contact-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 24px 16px;
}

.contact-item-icon { font-size: 1.8rem; margin-bottom: 10px; }

.contact-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-item-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.contact-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- フッター ---------- */
#site-footer {
  background: #111;
  color: rgba(255,255,255,0.5);
  padding: 24px;
  text-align: center;
  font-size: 0.78rem;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-device { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution-grid .sol-card { grid-column: 1; }
  .strength-grid { grid-template-columns: 1fr; }
  .uc-panel.active { grid-template-columns: 1fr; }
  .uc-before-after { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
}
