/* =========================================
  FIGURE LP (scoped) - CLEAN (dedup)
  目的：
  - 表示は変えない（現状の“最後に効いてる状態”を維持）
  - 重複CSSを整理して1本化
========================================= */

/* =========================
  Radius OFF（角丸完全なし）
========================= */
.card, .btn, .pill, .hero-badge,
.kmw-main, .kmw-thumb,
.price, .spec-table, .note, .kmw-contactCard{
  border-radius:0 !important;
}

#breadcrumbs{
  display: block !important;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 18px;
  padding: 18px 20px 0;
  box-sizing: border-box;
  font-size: 13px;
}


#breadcrumbs ol{
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#breadcrumbs li{
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: #666;
}

#breadcrumbs li:not(:last-child)::after{
  content: ">";
  color: #999;
  font-size: 11px;
}

#breadcrumbs a{
  color: #666;
  text-decoration: none;
}

#breadcrumbs a:hover{
  color: #222;
}


/* ===== Vars ===== */
:root{
  --bg:#fff;
  --card:#fff;
  --text:#000;
  --muted:#64748b;
  --line:#e5e7eb;

  /* 現状の最終上書きを採用（STEP赤） */
  --accent:#e60012;
  --accent_dark:#b8000f;

  --radius:10px;
  --shadow:0 14px 34px rgba(15,23,42,.10);
  --shadow2:0 8px 18px rgba(15,23,42,.08);

  --max:1160px;
}

/* ===== Base ===== */
html,body{ max-width:100%; overflow-x:hidden; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans JP","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  line-height:1.75;
}
a{ color:inherit; }

.figlp-root{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

/* LP内 container を統一 */
.figlp-root .container{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 16px;
  box-sizing:border-box;
}

/* 画像等 */
.figlp-root img, .figlp-root video, .figlp-root iframe{ max-width:100%; height:auto; }

/* ===== 見出し干渉（STEP側装飾の無効化） ===== */
.figlp-root :is(h1,h2,h3,h4,h5,h6){
  background:transparent !important;
  color:inherit !important;
  border:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
  letter-spacing:normal !important;
  text-transform:none !important;
}
.figlp-root :is(h1,h2,h3,h4,h5,h6)::before,
.figlp-root :is(h1,h2,h3,h4,h5,h6)::after{
  content:none !important;
  display:none !important;
}

/* ===== HERO ===== */
.hero{
  background:#fff;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.hero__wrap{ padding:18px 0 26px; }

/* 現状「角丸なし」最終状態を採用 */
.hero__banner{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  margin:0 auto !important;
  border-radius:0 !important;
  border:1px solid var(--line);
  box-shadow:var(--shadow2);
  object-fit:cover !important;
  object-position:center top !important;
  aspect-ratio:16/9 !important;
  background:#ddd;
}
@media (max-width:720px){
  .hero__banner{ aspect-ratio:16/10 !important; }
}

.hero__overlay{
  margin-top:14px;
  display:grid;
  gap:12px;
}
.hero__tag{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  color:#334155;
  max-width:100%;
  white-space:normal;
}

.hero h1{
  margin:6px 0 4px;
  font-size:clamp(24px,3vw,42px);
  line-height:1.18;
  font-weight:900;
}
.hero p{
  margin:0;
  color:#475569;
  font-size:15px;
  line-height:1.9;
  max-width:none;
  width:100%;
}

/* CTA */
.cta-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:14px;
  line-height:1;
  transition:.15s ease;
  box-shadow:0 6px 14px rgba(15,23,42,.06);
}
.btn:hover{ transform:translateY(-1px); }
.btn.-primary{
  border-color:transparent;
  background:linear-gradient(135deg,var(--accent),#ff4d4d);
  color:#fff;
  box-shadow:0 10px 24px rgba(230,0,18,.18);
}

/* ===== Section Base ===== */
section.block{ padding:34px 0; }
.block h2{
  margin:0 0 10px;
  font-size:22px;
  line-height:1.3;
  font-weight:900;
  letter-spacing:.01em;
}
.lead{
  margin:0;
  color:var(--muted);
  font-size:15px;
  max-width:none;
  width:100%;
}

/* ===== Intro Box ===== */
.intro-box{
  margin-top:16px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow2);
  padding:18px;
  position:relative;
  overflow:hidden;
}
.intro-box:before{
  content:"";
  position:absolute;
  left:-80px; top:-80px;
  width:240px; height:200px;
  background:linear-gradient(135deg,rgba(230,0,18,.10),transparent 70%);
  transform:skewY(-10deg);
  pointer-events:none;
}
.intro-box .lead{ position:relative; z-index:1; line-height:1.9; }

/* ===== Carousel（設置イメージ） ===== */
.case-carousel{
  position:relative;
  margin-top:16px;
  border:1px solid var(--line);
  background:#fff;
  overflow:hidden;
  box-shadow:var(--shadow2);
  max-width:100%;
}
.case-track{ display:flex; transition:transform .6s ease; }
.case-slide{ flex:0 0 100%; position:relative; text-decoration:none; color:inherit; }
.case-slide img{ width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.case-cap{
  position:absolute; left:0; right:0; bottom:0;
  padding:14px 16px;
  background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.55) 75%,rgba(0,0,0,.70) 100%);
  color:#fff;
}
.case-cap__title{ font-weight:900; font-size:16px; margin:0 0 4px; }
.case-cap__text{ font-size:13px; opacity:.9; line-height:1.6; }
.case-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(0,0,0,.35);
  color:#fff;
  font-size:28px;
  cursor:pointer;
}
.case-nav.prev{ left:10px; }
.case-nav.next{ right:10px; }
.case-dots{
  position:absolute; left:0; right:0; bottom:10px;
  display:flex; justify-content:center; gap:8px;
}
.case-dot{ width:8px; height:8px; border:1px solid rgba(255,255,255,.80); background:transparent; cursor:pointer; }
.case-dot.is-active{ background:#fff; }

/* ===== Products ===== */
.pgrid.-desc{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}
@media (max-width:980px){
  .pgrid.-desc{ grid-template-columns:1fr; }
}
.pcard{
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow2);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.pcard > h3.figlp-ptape{
  margin:0;
  padding:14px 14px;
  text-align:center;
  font-weight:900;
  font-size:18px;
  line-height:1.2;
  background:#111;
  color:#fff;
  border-bottom:1px solid var(--line);
}
.pcard .pimg{
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio:4/3;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.pcard .pimg img{ width:100%; height:100%; object-fit:contain; }
.pbody{ padding:14px 14px 16px; display:grid; gap:10px; }
.pmeta{ display:flex; justify-content:space-between; gap:12px; }
.ptitle{ margin:0; font-weight:900; font-size:16px; }
.pdesc{ margin:0; color:var(--muted); font-size:13px; line-height:1.85; }
.plink{
  display:inline-flex;
  width:max-content;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  box-shadow:0 6px 14px rgba(15,23,42,.06);
}
.plink:hover{ transform:translateY(-1px); }

/* ===== 展示事例（4列・確実に効かせる） ===== */
#cases-add .case-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  margin-top:16px;
}
#cases-add .case-card{ display:block; width:100%; text-decoration:none; }
#cases-add .case-thumb{ aspect-ratio:4/3; overflow:hidden; border:1px solid var(--line); }
#cases-add .case-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
#cases-add .case-title{
  margin-top:10px;
  font-size:14px;
  font-weight:800;
  line-height:1.5;
  text-decoration:underline;
}
@media (max-width:980px){
  #cases-add .case-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px){
  #cases-add .case-grid{ grid-template-columns:1fr; }
}

/* ===== 納品実績リスト ===== */
.result-list{
  margin:14px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.result-list li{
  border:1px solid var(--line);
  background:#fff;
  padding:8px 10px;
  font-size:13px;
  font-weight:800;
  color:#334155;
}

/* ===== Gallery→introの隙間（重複を1回に統一） ===== */
#gallery{ padding-bottom:10px; }
#gallery .case-carousel{ margin-bottom:0; }
#gallery + section.block{ padding-top:10px; }
#gallery + section.block .intro-box{ margin-top:10px; }

/* ===== SP：横はみ出し保険（最小だけ残す） ===== */
@media (max-width:640px){
  html,body,.figlp-root{ overflow-x:hidden !important; }
  .figlp-root .container{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding-left:16px !important;
    padding-right:16px !important;
  }
}

/* =================================================
   展示事例（#cases-add）だけ：右が空いて左に固まる問題の最終修正
   ※ case-grid / case-grid--4 などクラス名が多少違っても効くように書いてます
================================================= */

/* 親がflex等になっていて子が伸びないのを防ぐ */
#cases-add .container{
  display: block !important;
}

/* case-grid系の要素を「必ずフル幅」に */
#cases-add .container > div[class*="case-grid"]{
  width: 100% !important;
  max-width: none !important;
  margin: 16px 0 0 !important;

  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;

  justify-content: stretch !important;
  align-items: start !important;
}

/* カード（リンク）もセルいっぱいに */
#cases-add .container > div[class*="case-grid"] a{
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

/* サムネ枠と画像を揃える */
#cases-add .container > div[class*="case-grid"] .case-thumb{
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
}
#cases-add .container > div[class*="case-grid"] .case-thumb img{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block !important;
}

/* タブレット2列、スマホ1列 */
@media (max-width: 980px){
  #cases-add .container > div[class*="case-grid"]{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px){
  #cases-add .container > div[class*="case-grid"]{
    grid-template-columns: 1fr !important;
  }
}

/* =========================
  Hoverでちょいフワ（PC/マウスのみ）
========================= */
@media (hover:hover) and (pointer:fine){

  /* 展示事例（4つ横並びのaカード） */
  #cases-add .case-card{
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    will-change: transform;
  }
  #cases-add .case-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15,23,42,.14);
  }

  /* サムネもほんの少しだけズーム（やりすぎない） */
  #cases-add .case-thumb img{
    transition: transform .25s ease;
  }
  #cases-add .case-card:hover .case-thumb img{
    transform: scale(1.03);
  }

  /* 商品カード（.pcard もフワっと） */
  .pcard{
    transition: transform .18s ease, box-shadow .18s ease;
    will-change: transform;
  }
  .pcard:hover{
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15,23,42,.12);
  }
}

/* Products → フィギュアケースの展示方法 の間だけ詰める */
#products.block{
  padding-bottom: 10px !important;   /* 0〜18で好み調整 */
}

#about.block{
  padding-top: 10px !important;      /* 0〜18で好み調整 */
}

/* さらに「展示方法」見出し直下が空くなら（h2の上余白対策） */
#about h2{
  margin-top: 0 !important;
}

/* intro-box が押し下げてる場合の微調整 */
#about .intro-box{
  margin-top: 10px !important;       /* 0〜12で調整 */
}

/* フッター直前のCTAボタンに下余白 */
.cta-row{
  margin: 10px 0 28px !important; /* 下が28px：好みで 16〜40 */
}