/* ============================================
   共通スタイル
============================================ */
body {
  font-family: sans-serif;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
}

main .lp-header {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
  background: white;
  margin-bottom: 20px;
}

main img {
  max-width: 100%;
  height: auto;
}

main a {
  color: #0066cc;
  text-decoration: none;
}

.cta {
  text-align: center;
  margin-top: 20px;
}

.cta a {
  display: inline-block;
  padding: 12px 24px;
  background: #004080;
  color: white;
}

/* ============================================
   PRODUCTS（統合）
============================================ */
.products,
.products-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.products img,
.product-item img {
  width: 100%;
  height: auto;
  display: block;
}

.products h3 {
  margin-top: 10px;
  font-size: 1.2em;
  color: #004080;
}

.products p {
  font-size: 1em;
}

.products a {
  display: inline-block;
  margin-top: 10px;
  color: #0066cc;
  text-decoration: none;
}

/* ============================================
   PRODUCT ITEM
============================================ */
.product-item {
  border: 1px solid #ccc;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-item h3 {
  margin-top: 6px;
  padding: 0 !important;
  font-size: 1.2em;
  line-height: 1.2;
  color: #004080;
}

/* tight-wrapper */
.tight-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.tight-wrapper img {
  margin: 0;
  padding: 0;
}

.tight-wrapper .product-description-box {
  line-height: 1.6;
  padding: 16px;
}

/* 説明文ボックス（ベース） */
.product-description-box {
  padding: 16px;
  font-size: 0.95em;
  line-height: 1.7;
  margin: 0;
  border-top: 3px solid #325A8C;
  box-sizing: border-box;
}

.product-description-box p {
  margin: 0;
}

/* 画像 wrapper */
.product-img-wrapper {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.product-img-wrapper img {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* ボタン */
.product-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  border: 2px solid #e60033;
  color: #e60033;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.product-link:hover {
  background-color: #e60033;
  color: #fff;
}

/* ============================================
   H2 上書き除去
============================================ */
.panel-section-heading {
  background: none !important;
  color: #004080 !important;
  font-size: 1.5em;
  padding: 0;
  margin-bottom: 16px;
  border: none;
}

/* ============================================
   見出し（独自）
============================================ */
.section-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #004080;
  margin: 24px 0 12px 0;
  padding: 0;
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 340px;
  background: url("https://www.kk-step.jp/img/pos_bnr.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
  color: #fff;
  box-sizing: border-box;
  margin-top: 60px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
}

.hero-title {
  color: #ffffff !important;
  font-size: 2.6rem !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  margin-bottom: 20px !important;
}

.hero-subtitle {
  color: #ffffff !important;
  font-size: 1.5rem !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  margin-bottom: 24px !important;
}

.hero-button {
  display: inline-block;
  background: #0074d9;
  color: #fff;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.hero-button:hover {
  background: #005bb5;
}

/* ============================================
   INTRO SECTION（白背景カード）
============================================ */
.intro-section {
  background: #ffffff;
  padding: 28px 32px;
  margin: 10px auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 1200px;
  box-sizing: border-box;
}

.intro-section p {
  margin: 0;
  font-size: 1em;
  line-height: 1.8;
}

/* ============================
   見出しデザイン（独自）
============================ */
.my-heading {
  font-size: 1.6em;
  font-weight: bold;
  color: #004080;
  border-left: 4px solid #3b82f6;
  padding: 0.25rem 0 0.25rem 0.5rem;
  margin: 24px 0 12px 0;
}

@media (min-width: 769px) {
  .my-heading {
    border-left-width: 8px;
    padding: 0.5rem 0 0.5rem 1rem;
    font-size: 1.7em;
  }
}

.point-title {
  position: relative;
  padding: 20px 10px;
  font-size: 20px;
  border: 1px solid #325A8C;
  background: #ffffff;
}

.point-title::after {
  content: "POINT";
  position: absolute;
  top: -8px;
  left: 10px;
  background: #fff;
  font-size: 12px;
  color: #325A8C;
  padding: 0 10px;
}

/* ============================================
   fancy-title（※2重定義を統合：表示維持）
============================================ */
/* B：白カード＋左アクセント */
.fancy-title{
  margin: 32px 0 20px;
  padding: 14px 16px;
  font-size: 26px;
  font-weight: 900;
  font-family: "Source Han Sans JP", "Noto Sans JP", "BIZ UDPGothic", sans-serif;
  color: #fff;
  background: #325A8C;
  border: 1px solid #e6edf5;
  border-left: 8px solid #191970;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  letter-spacing: 0.4px;
}

@media (max-width: 600px){
  .fancy-title{
    font-size: 21px;
    padding: 12px 14px;
    border-left-width: 6px;
  }
}

@media (max-width: 600px){
  .fancy-title{
    font-size: 21px;
    padding: 10px 12px;
  }
  .fancy-title::before{
    left: 14px;
  }
}



/* 下の 1 ブロックを横幅いっぱいの独立した箱にする */
.products-bottom-block {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 30px 20px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  box-sizing: border-box;
}

.products-card.single-center {
  grid-template-columns: 1fr;
  justify-items: center;
}

.products-card.single-center .product-item {
  width: 350px;
}

.product-item-wide {
  grid-column: 1 / -1;
  max-width: 100%;
}

.product-item-wide .product-image {
  max-width: 500px;
  margin: 0 auto;
  display: block;
}

.product-item-wide .product-description-box {
  max-width: 600px;
  margin: 0 auto;
}

/* ====== hero-header 最小 ====== */
.hero-header {
  min-height: 460px !important;
  height: auto !important;
}

/* ============================================
   スマホ（600px以下）まとめ
============================================ */
@media (max-width: 600px) {
  .section-title {
    font-size: 1.4em;
    margin: 20px 0 10px 0;
  }

  .intro-section {
    padding: 20px 18px;
    margin: 20px auto;
    border-radius: 6px;
  }

  /* hero：スマホではmargin-top打ち消し */
  .hero {
    margin-top: 0 !important;
    padding-top: 100px !important;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 30px;
    min-height: 260px;
  }

  .hero-title {
    font-size: 2rem !important;
  }

  .hero-subtitle {
    font-size: 1.2rem !important;
  }

  .hero-button {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  /* fancy-title：スマホ最適化 */
  .fancy-title {
    font-size: 22px;
    padding: 12px 16px;
    margin-top: 24px;
    letter-spacing: 0.5px;
  }

  .fancy-title::before {
    top: -16px;
    border-width: 8px;
  }

  /* 説明文ボックス：スマホの角丸とpaddingは維持 */
  .product-description-box,
  .product-description-box.not-overlay {
    border-radius: 4px;
    padding: 14px;
  }
}

/* ============================================
   最終的に効かせたい配色（現状の表示を維持）
============================================ */
.product-description-box,
.product-description-box.not-overlay {
  background-color: #002b55 !important;
  color: #ffffff !important;
}

.product-description-box.not-overlay {
  background-color: #ffffff !important;
  color: #333 !important;
  border: 1px solid #ddd;
}

/* 見出しと次ブロックの“空きすぎ”を詰める（上書き） */
.fancy-title{
  margin-top: 20px !important;
  margin-bottom: 10px !important;  /* ←ここが効く */
  padding: 10px 16px !important;   /* ←縦paddingを軽く */
}

/* 見出し直後の要素（画像・カード等）の上余白を強制的に減らす */
.fancy-title + *{
  margin-top: 10px !important;
}

/* もし見出し直後が画像なら、画像の余白も潰す */
.fancy-title + img,
.fancy-title + figure,
.fancy-title + .simple-main-visual,
.fancy-title + .intro-section{
  margin-top: 10px !important;
}

/* 念のため：画像に勝手な余白が乗らないように */
.simple-main-visual img,
main img{
  display: block;
}

/* スマホはさらに少し詰める */
@media (max-width: 600px){
  .fancy-title{
    margin-top: 16px !important;
    margin-bottom: 8px !important;
    padding: 10px 12px !important;
  }
  .fancy-title + *{
    margin-top: 8px !important;
  }
}
/* ============================================
   展示事例セクション
============================================ */
.case-study-section {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 24px 24px 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  box-sizing: border-box;
}

.case-study-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.case-study-item {
  text-align: center;
}

.case-study-item img {
  width: 100%;
  max-width: 280px;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
}

.case-study-link {
  display: inline-block;
  color: #4b2e83;
  text-decoration: underline;
  font-size: 1em;
  line-height: 1.6;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .case-study-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-study-section {
    padding: 20px 16px 24px;
  }

  .case-study-title {
    font-size: 1.3em;
    margin-bottom: 16px;
  }

  .case-study-item img {
    max-width: 100%;
    height: auto;
  }
}
/* ============================================
   展示事例セクション
============================================ */
.case-study-section {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 28px 24px 32px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  box-sizing: border-box;
}

.case-study-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #333;
  margin-bottom: 24px;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
  align-items: start;
}

.case-study-item {
  text-align: center;
}

.case-study-image-link {
  display: block;
  margin-bottom: 12px;
}

.case-study-item img {
  width: 100%;
  max-width: 220px;
  height: 150px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.case-study-image-link:hover img {
  transform: translateY(-2px);
  opacity: 0.92;
}

.case-study-link {
  display: inline-block;
  font-size: 1em;
  line-height: 1.6;
  color: #5a3d8a;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.case-study-link:hover {
  color: #325A8C;
}

/* タブレット */
@media (max-width: 1024px) {
  .case-study-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-study-item img {
    max-width: 260px;
    height: 170px;
  }
}

/* スマホ */
@media (max-width: 600px) {
  .case-study-section {
    padding: 20px 16px 24px;
    margin-top: 30px;
  }

  .case-study-title {
    font-size: 1.25em;
    margin-bottom: 18px;
  }

  .case-study-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-study-item img {
    max-width: 100%;
    height: auto;
  }

  .case-study-link {
    font-size: 0.98em;
  }
}

/* =========================
  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;
}
/* ============================================
   ポスターセッション：展示事例 大きいカード版
============================================ */

.case-study-section{
  max-width:1200px !important;
  margin:40px auto 0 !important;
  padding:28px 24px 32px !important;
  background:#fff !important;
  border:1px solid #ddd !important;
  border-radius:0 !important;
  box-shadow:0 8px 22px rgba(0,0,0,0.08) !important;
  box-sizing:border-box;
}

.case-study-title{
  margin:0 0 22px !important;
  padding-left:14px;
  border-left:6px solid #325A8C;
  color:#1f2a44 !important;
  font-size:1.6em !important;
  font-weight:900 !important;
  line-height:1.4;
}

.case-study-grid{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:24px !important;
}

.case-study-item{
  text-align:left !important;
  background:#fff;
  border:1px solid #ddd;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease;
}

.case-study-item:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(0,0,0,0.12);
}

.case-study-image-link{
  display:block !important;
  margin:0 !important;
  border-bottom:1px solid #ddd;
  overflow:hidden;
}

.case-study-item img{
  width:100% !important;
  max-width:none !important;
  height:auto !important;
  aspect-ratio:4 / 3;
  object-fit:cover;
  display:block;
  margin:0 !important;
  transition:transform .25s ease;
}

.case-study-item:hover img{
  transform:scale(1.04);
}

.case-study-link{
  display:block !important;
  padding:15px 16px 18px;
  color:#1f2a44 !important;
  text-decoration:none !important;
  font-size:1.05em !important;
  line-height:1.65;
  font-weight:900;
}

.case-study-link::after{
  content:"詳しく見る →";
  display:block;
  margin-top:10px;
  color:#325A8C;
  font-size:13px;
  font-weight:900;
}

@media (max-width:768px){
  .case-study-section{
    margin-top:30px !important;
    padding:20px 16px 24px !important;
  }

  .case-study-title{
    font-size:1.25em !important;
    margin-bottom:18px !important;
    border-left-width:4px;
  }

  .case-study-grid{
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  .case-study-link{
    font-size:1em !important;
    padding:14px 15px 16px;
  }
}