/* =========================
   Katana Page
========================= */
/* ===== KATANA PAGE OVERRIDES ===== */
html { scroll-snap-type: y proximity; }
.sec-header { margin-bottom: 48px; text-align: center; }
/* ===== FAB BUTTON ===== */
.fab-btn { position: fixed;
  bottom: 32px;
  right: 32px;
  width: 104px;
  height: 104px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(40,176,210,0.3);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--blue);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  animation: fab-pulse 4s infinite;
}
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(40,176,210,0.5); }
50% { box-shadow: 0 0 0 20px rgba(40,176,210,0); }
100% { box-shadow: 0 0 0 0 rgba(40,176,210,0); }
}
.fab-btn:hover { transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  animation: none;
}
.fab-btn img { width: 52px; height: auto; margin-bottom: 2px; }
.fab-btn span { font-size: 15px; font-weight: 900; color: var(--blue); }
/* ===== PAGE LAYOUT OVERRIDE ===== */
.container { max-width: 1080px; padding: 0 32px; }

/* ==========================================================================
   KATANA LP SECTIONS
========================================================================== */
/* 1. FV */
#k-hero{ position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden; background: var(--navy2);
}
.k-hero-bg{ position: absolute; inset: 0; }
.k-hero-bg img{ width: 100%; height: 100%; object-fit: cover; filter: brightness(.35); transform: scale(1.04); }
.k-hero-gradient{ position: absolute; inset: 0; background: linear-gradient(130deg, rgba(15,30,66,.85) 0%, rgba(12,58,110,.6) 60%, rgba(11,25,58,.3) 100%); }
.k-hero-content{ position: relative; z-index: 2; width: 100%; padding: 140px 0 80px; text-align: center; }
.k-hero-logo{ height: clamp(40px, 8vw, 60px); width: auto; filter: brightness(0) invert(1); margin: 0 auto 24px; }
.k-hero-target{ font-size: 13px; font-weight: 700; color: var(--yellow); letter-spacing: .1em; margin-bottom: 20px; border: 1px solid var(--yellow); display: inline-block; padding: 6px 18px; }
.k-hero-catch{ font-size: clamp(32px, 5vw, 60px); font-weight: 900; color: #fff; line-height: 1.35; letter-spacing: -.02em; margin-bottom: 24px; }
.catch-ai{ position: relative; display: inline-block; isolation: isolate; }
.catch-ai-bg{ position: absolute; left: 70%; top: 60%; transform: translate(-50%, -50%) rotate(-5deg); font-family: 'Petit Formal Script', cursive; font-size: 2.2em; font-weight: 400; color: rgba(255,255,255,.3); z-index: -1; pointer-events: none; text-transform: none; }
.k-hero-sub{ font-size: 15.5px; color: rgba(255,255,255,.8); line-height: 1.8; margin-bottom: 48px; }
.k-hero-btns{ display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
/* モックアップ（自動スライドショー） */
.k-hero-mockup{ max-width: 800px; margin: 0 auto; aspect-ratio: 16/9;
  background: var(--navy); border: 4px solid rgba(255,255,255,.1);
  border-bottom: none; display: flex; align-items: center; justify-content: center;
  position: relative; transform: translateY(40px);
  box-shadow: 0 30px 60px rgba(0,0,0,.6);
  overflow: hidden;
}
.k-slideshow-img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: heroSlideFade 9s infinite;
}
.k-slideshow-img:nth-child(1){ animation-delay: 0s; }
.k-slideshow-img:nth-child(2){ animation-delay: 3s; }
.k-slideshow-img:nth-child(3){ animation-delay: 6s; }
@keyframes heroSlideFade{ 0% { opacity: 0; }
10% { opacity: 1; }
33% { opacity: 1; }
43% { opacity: 0; }
100% { opacity: 0; }
}
/* 2. 見えない損失 (Before) */
#k-problem{ padding: 100px 0; background: var(--gray50); position: relative; }
.k-problem-head{ text-align: center; margin-bottom: 48px; }
.k-problem-title{ font-size: clamp(24px, 3.5vw, 36px); font-weight: 900; color: var(--navy); line-height: 1.4; letter-spacing: -.02em; }
.k-problem-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.k-problem-card{ position: relative; height: 360px; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-start;
  overflow: hidden; padding: 32px 24px; border: none; border-radius: 0;
}
.k-problem-card-bg{ position: absolute; inset: 0; z-index: 1; background-size: cover; background-position: center; filter: brightness(0.55); transition: transform .6s ease; }
.k-problem-card:hover .k-problem-card-bg{ transform: scale(1.08); }
.k-problem-card-overlay{ position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(11,25,58,0) 0%, rgba(11,25,58,0.7) 100%); }
.k-problem-card-title{ position: relative; z-index: 3; font-size: 18px; font-weight: 900; line-height: 1.5; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.k-down-arrow{ text-align: center; margin: 40px 0; position: relative; }
.k-down-arrow span{ display: inline-block; font-size: 52px; font-weight: 900; color: var(--blue); animation: arrow-bounce 2s infinite; text-shadow: 0 0 20px rgba(40,176,210,0.4); }
@keyframes arrow-bounce{ 0%, 100% { transform: translateY(0); }
50% { transform: translateY(15px); }
}
/* 3. After (解決策) */
#k-solution{ padding: 120px 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); color: #fff; text-align: center; }
.k-solution-logo{ height: 64px; width: auto; filter: brightness(0) invert(1); margin: 0 auto 24px; }
.k-solution-catch{ font-size: clamp(24px, 4vw, 36px); font-weight: 900; line-height: 1.4; margin-bottom: 24px;}
.k-solution-catch span{ color: var(--yellow);}
.k-flow-diagram{ display: flex; align-items: center; justify-content: center; gap: 20px; margin: 56px auto; flex-wrap: nowrap; }
.k-flow-box{ background: #fff; color: var(--navy); padding: 20px 32px; font-weight: 900; font-size: 20px; border-radius: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; text-align: center; min-height: 80px; flex-shrink: 0;}
.k-flow-pc-wrapper{ position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; flex-shrink: 0;}
.k-flow-pc{ width: 180px; height: 110px; background: var(--navy); border: 4px solid #fff; border-radius: 8px 8px 0 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); position: relative;}
.k-flow-pc::after{ content: ''; position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); width: 70px; height: 20px; background: #fff; border-radius: 0 0 4px 4px; }
.k-flow-pc::before{ content: ''; position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); width: 120px; height: 4px; background: #fff; border-radius: 2px; }
.k-flow-pc img{ width: 120px; filter: brightness(0) invert(1); }
.k-flow-arrow{ color: var(--yellow); font-size: 32px; flex-shrink: 0;}
.k-sol-features{ display: flex; flex-direction: column; gap: 16px; max-width: 640px; margin: 0 auto; }
.k-sol-feat{ display: flex; align-items: center; gap: 20px; text-align: left; background: rgba(255,255,255,0.06); padding: 24px; border: 1px solid rgba(255,255,255,0.1); border-radius: 0; }
.k-sol-feat-num{ font-size: 28px; font-weight: 900; color: var(--yellow); flex-shrink: 0; font-family: 'Helvetica Neue', Arial, sans-serif; }
.k-sol-feat-text strong{ display: block; font-size: 17px; font-weight: 800; margin-bottom: 4px; color: #fff; }
.k-sol-feat-text span{ font-size: 14px; color: rgba(255,255,255,0.7); }
.btn-func{ font-size: 14px; padding: 12px 32px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgba(255,255,255,0.5); background: transparent; color: #fff; cursor: pointer; transition: all 0.3s; margin-top: 40px;}
.btn-func:hover{ background: #fff; color: var(--navy); border-color: #fff; }
/* 4. KATANAで実現する未来 */
#k-future{ padding: 100px 0; background: #fff; }
.future-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; max-width: 900px; margin: 0 auto; }
.future-box{ background: #fff; border: 1.5px solid var(--gray300); padding: 48px 32px; text-align: left; box-shadow: 12px 12px 0 var(--blue); transition: transform .3s; }
.future-box:hover{ transform: translate(-4px, -4px); box-shadow: 16px 16px 0 var(--blue); }
.future-box-title{ font-size: 22px; font-weight: 900; color: var(--navy); margin-bottom: 16px; line-height: 1.4; }
.future-box-desc{ font-size: 14px; color: var(--gray700); line-height: 1.8; }
/* 5. なぜKATANAなのか（他社比較） */
#k-compare{ padding: 100px 0; background: var(--gray50); }
.compare-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto;}
.compare-box{ border: 1px solid var(--gray100); display: flex; flex-direction: column; height: 340px; box-shadow: 0 12px 30px rgba(0,0,0,.05); }
.comp-other{ flex: 1; background: #fff; padding: 24px; text-align: center; color: var(--gray500); font-weight: 700; position: relative; display:flex; flex-direction: column; justify-content: center; font-size: 15px; }
.comp-other::after{ content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 24px; height: 24px; background: #fff; border-right: 1px solid var(--gray100); border-bottom: 1px solid var(--gray100); z-index: 2; }
.comp-other span{ display: block; font-size: 12px; color: var(--gray300); margin-bottom: 8px; text-transform: uppercase; font-family: 'Helvetica Neue', sans-serif; letter-spacing: 0.1em;}
.comp-katana{ flex: 1.2; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); padding: 40px 24px 24px; text-align: center; color: #fff; font-weight: 800; display:flex; flex-direction: column; justify-content: center; font-size: 19px; line-height: 1.5; }
.comp-katana span{ display: block; font-size: 12px; color: var(--yellow); margin-bottom: 8px; text-transform: uppercase; font-family: 'Helvetica Neue', sans-serif; letter-spacing: 0.1em;}
/* 6. 導入効果 80%削減グラフ */
#k-effect{ padding: 100px 0; background: #fff; }
.effect-graph-wrap{ max-width: 800px; margin: 0 auto; background: #fff; border: 1.5px solid var(--gray100); padding: 64px; text-align: center; }
.graph-body{ display: flex; align-items: flex-end; justify-content: center; gap: 80px; margin-top: 80px; flex-direction: row;}
.graph-col{ display: flex; flex-direction: column; align-items: center; gap: 16px; justify-content: flex-end; }
.graph-bar-wrap{ height: 240px; display: flex; align-items: flex-end; }
.graph-bar{ width: 100px; transition: height 1.5s ease; }
.graph-bar.before{ height: 240px; background: var(--gray100); border: 1px solid var(--gray300); }
.graph-bar.after{ height: 48px; background: linear-gradient(to bottom, var(--blue), var(--navy)); position: relative; }
/* 80%削減ラベル強調 */
.graph-reduction-label{ position: absolute;
    top: -70px; left: 50%; transform: translateX(-50%);
    background: var(--yellow);
    color: var(--navy);
    font-size: 24px;
    font-weight: 900;
    padding: 8px 16px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.graph-reduction-label::after{ content: '';
    position: absolute;
    bottom: -10px; left: 50%; transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--yellow) transparent transparent transparent;
}
.graph-name{ font-weight: 800; color: var(--gray700); }
.graph-val{ font-family: 'Helvetica Neue', sans-serif; font-size: 14px; color: var(--gray500); }
/* 7. ROI可視化 */
#k-roi{ padding: 100px 0; background: var(--navy2); color: #fff; }
#k-roi .sec-title::after{ display: none; }
.roi-visual-wrap{ display: flex; background: #fff; color: var(--navy); border-radius: 8px; overflow: hidden; max-width: 1000px; margin: 48px auto 0; box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
/* 左側：人件費削減図解 */
.roi-labor-saving{ flex: 1; padding: 48px 40px; background: var(--gray50); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.roi-visual-content{ flex: 1.2; padding: 48px; display: flex; flex-direction: column; justify-content: center;}
.roi-list{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px;}
.roi-list li{ font-size: 17px; font-weight: 700; color: var(--gray700); padding-left: 32px; position: relative; line-height: 1.6;}
.roi-list li::before{ content: '✓'; position: absolute; left: 0; top: 3px; color: #fff; background: var(--blue); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px;}
/* 8. デモ画面切替 */
#k-demo{ padding: 100px 0; background: #fff; }
.demo-wrap{ display: flex; align-items: center; max-width: 1080px; margin: 48px auto 0; gap: 40px; }
.demo-tabs{ width: 280px; display: flex; flex-direction: column; gap: 12px; }
.demo-tab{ padding: 20px 24px; font-size: 14px; font-weight: 800; color: var(--gray500); background: var(--gray50); border: 1px solid var(--gray100); cursor: pointer; text-align: left; transition: all .3s; position: relative;}
.demo-tab.active{ background: var(--navy); color: #fff; border-color: var(--navy); }
.demo-tab.active::after{ content: '▶'; position: absolute; right: 16px; color: var(--blue); }
/* デモ画面エリアの調整 */
.demo-view{ flex: 1;
  aspect-ratio: 16/9;
  background: var(--gray100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--gray300);
  font-size: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray300);
}
.demo-screen{ position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-screen.active{ opacity: 1;
  visibility: visible;
  z-index: 1;
}
.demo-video{ width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* 9. 導入の流れ (横並び) */
#k-flow{ padding: 100px 0; background: var(--gray50); }
.flow-row{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 48px; }
.flow-step-box{ flex: 1; background: #fff; border: 1.5px solid var(--gray100); padding: 40px 20px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.02); min-height: 220px; display: flex; flex-direction: column; justify-content: center;}
.flow-num-hl{ font-family: 'Helvetica Neue', sans-serif; font-size: 32px; font-weight: 900; color: var(--blue); margin-bottom: 12px; display: block; opacity: 0.8;}
.flow-title-hl{ font-size: 16px; font-weight: 900; color: var(--navy); margin-bottom: 12px; display: block; }
.flow-desc-hl{ font-size: 13px; color: var(--gray500); line-height: 1.6; }
.flow-sep{ font-size: 20px; color: var(--gray300); font-weight: 900; flex-shrink: 0;}
/* 10. 料金プラン */
#k-price{ padding: 100px 0; background: #fff; }
.price-card{ max-width: 700px; margin: 0 auto; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); border-top: 4px solid var(--yellow); padding: 64px 40px; text-align: center; color: #fff; }
.price-card h2 .title-text{ background: none !important; -webkit-text-fill-color: #fff !important; color: #fff !important; }
.price-card .sec-title::after{ display: none; }
.price-amount{ color: var(--yellow); font-family: 'Helvetica Neue', sans-serif; font-size: 90px; font-weight: 900; line-height: 1; margin: 20px 0; display: block; }
/* 11. よくある質問 (FAQ アコーディオン) */
#k-faq{ padding: 100px 0; background: var(--gray50); }
.faq-list{ display: flex; flex-direction: column; gap: 16px; max-width: 800px; margin: 0 auto; }
.faq-item{ background: #fff; border: 1px solid var(--gray100); border-radius: 8px; overflow: hidden; }
.faq-q{ padding: 24px; font-size: 16px; font-weight: 700; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-q::-webkit-details-marker{ display: none; }
.faq-q::before{ content: 'Q.'; color: var(--blue); font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 20px; font-weight: 900; margin-right: 12px; }
.faq-q::after{ content: '+'; font-size: 24px; color: var(--gray300); transition: transform .3s; font-weight: 300; }
.faq-item[open] .faq-q::after{ transform: rotate(45deg); color: var(--blue); }
.faq-a{ padding: 0 24px 24px; font-size: 15px; color: var(--gray700); line-height: 1.8; border-top: 1px dashed var(--gray100); margin-top: 0; padding-top: 24px; display: flex; }
.faq-a::before{ content: 'A.'; color: var(--yellow); font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 20px; font-weight: 900; margin-right: 12px; flex-shrink: 0; }
.faq-more-btn{ text-align: center; margin-top: 48px; }
.faq-more-btn a{ font-size: 15px; font-weight: 900; color: var(--blue); border-bottom: 2px solid var(--blue); padding-bottom: 4px; transition: opacity .3s; }
.faq-more-btn a:hover{ opacity: 0.7; }
/* 12. クロージング CTA */
/* ===== モーダル CSS ===== */
.modal-overlay{ position: fixed; inset: 0; background: rgba(11,25,58,0.9); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.modal-overlay.active{ opacity: 1; visibility: visible; }
.modal-content{ background: #fff; width: 90%; max-width: 900px; padding: 56px; position: relative; max-height: 90vh; overflow: hidden;}
.modal-close{ position: absolute; top: 20px; right: 24px; z-index: 3; font-size: 40px; line-height: 1; cursor: pointer; color: var(--gray300); background:none; border:none;}
.m-func-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; max-height: calc(90vh - 140px); overflow-y: auto; padding-right: 4px; }
.m-func-item{ background: var(--gray50); padding: 24px; border-left: 4px solid var(--blue); }
.m-func-item h4{ font-size: 16px; font-weight: 900; color: var(--navy); margin-bottom: 8px; }
.m-func-item p{ font-size: 12px; color: var(--gray500); line-height: 1.6; }
/* インライン指定のCSS化 */
.sec-label-muted { color: var(--gray500); }
.sec-label-light-spaced { color: rgba(255,255,255,.5); margin-bottom: 16px; }
.k-problem-bg-01 { background-image: url('../img/img_katana_box_01.jpeg'); }
.k-problem-bg-02 { background-image: url('../img/img_katana_box_02.jpeg'); }
.k-problem-bg-03 { background-image: url('../img/img_katana_box_03.jpeg'); }
.k-problem-bg-04 { background-image: url('../img/img_katana_box_04.jpeg'); }
.k-solution-actions { text-align: center; }
.graph-val-after { font-size: 14px; font-weight: 400; color: var(--gray500); }
.graph-name-after { color: var(--gray700); }
.effect-note { margin-top: 40px; font-weight: 800; color: var(--navy); line-height: 1.8; }
.roi-title { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.roi-labor-title { font-size: 18px; font-weight: 900; color: var(--navy); margin-bottom: 24px; text-align: center; line-height: 1.4; }
.roi-labor-note { font-size: 13px; color: var(--gray500); }
.roi-labor-bars { width: 100%; max-width: 320px; }
.roi-bar-row { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--gray700); margin-bottom: 8px; }
.roi-bar-row-after { color: var(--blue); }
.roi-bar-track { height: 16px; border-radius: 8px; overflow: hidden; }
.roi-bar-track-before { background: var(--gray300); margin-bottom: 24px; }
.roi-bar-track-after { background: var(--gray100); margin-bottom: 32px; display: flex; }
.roi-bar-fill { height: 100%; }
.roi-bar-fill-before { width: 100%; background: var(--gray400); }
.roi-bar-fill-after { width: 20%; background: var(--blue); }
.roi-bar-reduction { width: 80%; height: 100%; background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.roi-bar-reduction-label { font-size: 10px; font-weight: 900; color: var(--navy); }
.roi-saving-box { background: #fff; border: 1px solid var(--gray100); border-radius: 8px; padding: 24px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.roi-saving-label { font-size: 13px; font-weight: 700; color: var(--gray500); margin-bottom: 8px; }
.roi-saving-amount { font-size: 32px; font-weight: 900; color: var(--navy); font-family: 'Helvetica Neue', sans-serif; line-height: 1; }
.roi-saving-unit { font-size: 16px; }
.roi-saving-annual { font-size: 13px; font-weight: 700; color: var(--gray500); margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--gray100); }
.roi-saving-annual-amount { font-weight: 900; color: var(--navy); font-size: 16px; }
.roi-list-compact { margin-bottom: 0; }
.demo-desc { margin-top: 32px; }
.price-badge { font-size: 12px; font-weight: 700; border: 1px solid #fff; padding: 4px 12px; margin-bottom: 16px; display: inline-block; }
.price-title { margin-bottom: 0; }
.price-currency { font-size: 30px; vertical-align: middle; margin-right: 4px; }
.price-unit { margin-bottom: 32px; font-weight: 700; }
.price-desc { font-size: 15px; line-height: 1.8; }
.modal-title-flush { margin-top: 0; }
.fab-fallback-icon { display: none; width: 32px; height: 32px; margin-bottom: 4px; }
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px){ .k-problem-grid { grid-template-columns: repeat(2, 1fr); }
.future-grid { grid-template-columns: repeat(2, 1fr); }
.roi-visual-wrap { flex-direction: column; }
.roi-labor-saving { padding: 40px 24px; }
.roi-visual-content { padding: 40px 24px; }
.flow-row { flex-direction: column; gap: 0; }
.flow-step-box { width: 100%; max-width: 400px; min-height: auto; padding: 32px 20px; }
.flow-sep { transform: rotate(90deg); margin: 16px 0; font-size: 24px; }
.demo-wrap { flex-direction: column; }
.demo-tabs { width: 100%; flex-direction: row; flex-wrap: wrap; }
.demo-tab { flex: 1 1 30%; text-align: center; font-size: 13px; padding-bottom: 24px; }
.demo-tab.active::after { content: '▼'; right: auto; left: 50%; transform: translateX(-50%); bottom: 4px; }
.demo-view { width: 100%; max-width: 900px; flex: none; min-height: 360px; }
.m-func-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ★スマホ専用調整 */
@media (max-width: 768px){
.k-hero-mockup { transform: translateY(20px); }
/* Before 4ボックス調整 */
.k-problem-grid { grid-template-columns: 1fr; }
.k-problem-card { height: auto; min-height: 160px; aspect-ratio: 16/9; padding: 24px 20px; }
.k-problem-card-title { font-size: 16px; }
/* After 解決策フロー調整 */
.k-flow-diagram { gap: 12px; margin: 32px auto; }
.k-flow-box { font-size: 14px; padding: 12px 16px; min-height: 60px; }
.k-flow-arrow { font-size: 20px; }
.k-flow-pc { width: 100px; height: 60px; border-width: 2px; }
.k-flow-pc img { width: 60px; }
.k-flow-pc::before { width: 70px; height: 3px; bottom: -16px; }
.k-flow-pc::after { width: 40px; height: 12px; bottom: -12px; }
/* グラフ調整 (横並び維持) */
.graph-body { flex-direction: row; gap: 40px; }
.graph-col { gap: 12px; }
.graph-bar-wrap { height: 180px; }
.graph-bar { width: 60px; }
.graph-bar.before { height: 180px; }
.graph-bar.after { height: 36px; }
.graph-reduction-label { font-size: 14px; padding: 6px 12px; top: -45px; }
.graph-name { font-size: 12px; }
.graph-val { font-size: 12px; }
.k-sol-features { grid-template-columns: 1fr; }
.future-grid { grid-template-columns: 1fr; }
.compare-grid { grid-template-columns: 1fr; }
.modal-content { padding: 48px 20px 32px; }
.modal-close { top: 12px; right: 16px; font-size: 36px; }
.m-func-grid { grid-template-columns: 1fr; }
.m-func-grid { max-height: calc(90vh - 120px); padding-right: 2px; }
.demo-tab { flex: 1 1 45%; padding: 20px 12px; }
.demo-view { min-height: 240px; }
}
@media (max-width: 767px){
  .k-hero-btns{
    flex-direction: column;
    align-items: stretch;
  }
  .k-hero-btns .btn{
    width: 100%;
  }
}
@media (max-width: 768px) { .container { padding: 0 20px; } }
