/* =========================================================
   LIV LAND LP - Style Full (FINAL)
   - Fix: mid CTA centered (robust)
   - Fix: hero text/button spacing = always "1 line"
   - Fix: SP layout split (CASE = slider, FLOW = stacked)
   ========================================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root{
  --liv-bg: #F4F1EC;
  --liv-paper: #F9F6F0;
  --liv-ink: #2B2926;
  --liv-muted: #7A746B;
  --liv-line: #D7D1C6;
  --liv-line-dark: #4B463F;
  --liv-dark: #1F1C18;

  --font-jp: 'Zen Old Mincho', serif;
  --font-en: 'Tenor Sans', sans-serif;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }

body{
  font-family: var(--font-jp);
  color: var(--liv-ink);
  background-color: var(--liv-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Images & Links */
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

/* <br class="sp-only"> */
.sp-only{ display: none; }

/* Container & Sections */
.liv-container{
  width: min(1120px, 100% - 64px);
  margin: 0 auto;
  position: relative;
}

.liv-section{
  padding: 120px 0;
  position: relative;
}
.liv-section + .liv-section{
  border-top: 1px solid var(--liv-line);
}

/* Dark / Gray Sections */
.liv-dark-section{
  background-color: var(--liv-dark);
  color: #F5F2EC;
}
.liv-gray-bg{ background-color: #EEE7DD; }

/* Noise Overlay（紙っぽさ） */
.noise-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: soft-light;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* Labels & Headings */
.liv-label{
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--liv-muted);
  display: block;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.liv-head-md{
  font-size: 2.3rem;
  line-height: 1.5;
  font-weight: 500;
}
.liv-head-sm{
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-align: center;
}
.text-on-dark{ color: #F5F2EC; }

/* Section Header */
.liv-section-header{ margin-bottom: 60px; }
.liv-center{ text-align: center; }
.liv-center .liv-head-md{
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

/* Top Logo */
.liv-logo{
  position: fixed;
  top: 20px;
  left: 18px;
  z-index: 40;
}
.liv-logo img{ height: 120px; }

/* Animation Utils */
.mask-wrap{
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.mask-text{
  display: block;
  transform: translateY(105%);
}
.fade-target{
  opacity: 0;
  transform: translateY(40px);
}
.img-anim-wrap{ overflow: hidden; }
.img-anim{
  transform: scale(1.12);
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.liv-hero{
  width: 100%;
  height: 100vh;
  min-height: 620px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background-color: var(--liv-dark);
}

/* Video covers hero */
.liv-hero-video-wrap{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #000;
}
.liv-hero-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay */
.liv-hero-overlay{
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 5% 0%, rgba(0,0,0,0.18) 0, rgba(0,0,0,0.4) 55%, rgba(0,0,0,0.22) 100%);
  z-index: 1;
}

/* Content */
.liv-hero-content{
  position: relative;
  z-index: 3;
  color: #F5F2EC;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 32px;
  text-align: center;
}

.liv-hero-titles{
  width: 100%;
  max-width: 800px;
  position: relative;
}

.liv-main-copy{
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.45;
  font-weight: 500;
  margin-bottom: 0;
  text-shadow: 0 8px 26px rgba(0,0,0,0.35);
}

/* ✅ FV本文（p）とボタンの間：常に "1行" */
.liv-hero-titles > p{
  margin-top: 1.5rem;
  margin-bottom: 1em;   /* ここが「1行」 */
}

/* Hero CTA Button */
.hero-cta{
  position: relative;
  margin-top: 0;
  z-index: 3;
  text-align: center;
}
.hero-cta-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 999px;
  border: 1px solid #F5F2EC;
  background: rgba(245, 242, 236, 0.9);
  color: #171511;
  font-family: var(--font-en);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: 0.3s ease;
}
.hero-cta-btn:hover{
  background: transparent;
  color: #F5F2EC;
}

/* Scroll Down Indicator */
.scroll-down{
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(245,242,236,0.7);
}
.scroll-down::before{
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  margin: 0 auto 10px;
  background: rgba(245,242,236,0.6);
}
.liv-hero-desc{ display: none; }

/* =========================================================
   ABOUT
   ========================================================= */
.liv-about{ background-color: var(--liv-paper); }
.liv-about-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: flex-start;
}
.liv-about-text p{
  font-size: 0.97rem;
  line-height: 2;
  color: var(--liv-ink);
  margin-bottom: 18px;
}
.liv-about-note{
  border-left: 1px solid var(--liv-line);
  padding-left: 28px;
}
.about-note-title{
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.about-note-body{
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--liv-muted);
}

/* --- 実績・背景（数字デザイン） --- */
.liv-trust-area{
  margin-bottom: 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.trust-stats{
  display: flex;
  justify-content: center;
  gap: 4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.trust-label{
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.2rem;
  font-family: sans-serif;
}
.trust-number{
  font-family: var(--font-en);
  font-size: 3rem;
  line-height: 1;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
}
.trust-number .unit{
  font-size: 1rem;
  font-family: var(--font-jp);
  margin-left: 2px;
}
.trust-sub{
  font-size: 0.75rem;
  color: #888;
}

/* =========================================================
   PROBLEMS
   ========================================================= */
.liv-problems-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 56px;
  align-items: flex-start;
}
.liv-problems-head .liv-head-md{ color: #F5F2EC; }

.liv-problems-list{
  border-left: 1px solid rgba(245,242,236,0.28);
  padding-left: 32px;
}
.problem-item{
  position: relative;
  margin-bottom: 18px;
  padding-left: 16px;
  font-size: 0.95rem;
  line-height: 1.9;
  opacity: 0.9;
}

.liv-icon{
  width: 24px;
  height: 24px;
  stroke: #2B2926;
  stroke-width: 1.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: text-bottom;
  margin-right: 8px;
  flex-shrink: 0;
}
.liv-icon.icon-issue{
  position: absolute;
  left: -32px;
  top: 2px;
  opacity: 0.6;
}
.liv-problem-conclusion{
  font-size: 1.2rem;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(245,242,236,0.28);
  line-height: 1.7;
}
.liv-problem-conclusion strong{ font-weight: 500; }

/* =========================================================
   STRENGTHS
   ========================================================= */
.liv-strengths-wrapper{ border-top: 1px solid var(--liv-line); }

.liv-strength-row{
  display: grid;
  grid-template-columns: 90px minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: 40px;
  padding: 72px 0;
  border-bottom: 1px solid var(--liv-line);
  align-items: center;
}

.liv-strength-num{
  font-family: var(--font-en);
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  color: var(--liv-muted);
}

.liv-strength-content h3{
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.liv-strength-content p{
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--liv-ink);
}

.liv-strength-visual{
  height: 260px;
  position: relative;
}

/* videoにもimg-animの挙動を揃える */
.liv-strength-visual video.img-anim{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Strength 03 コメント */
.liv-strength-comment{
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #F5F2EC;
  background: rgba(31, 28, 24, 0.55);
  border: 1px solid rgba(245,242,236,0.28);
  backdrop-filter: blur(6px);
  max-width: min(92%, 360px);
}

/* mid-cta */
.mid-cta{ margin-top: 56px; }
.mid-cta-link{
  display: inline-block;
  font-family: var(--font-en);
  letter-spacing: 0.12em;
  color: var(--liv-ink);
  opacity: 0.9;
}
.mid-cta-link:hover{ opacity: 1; }

/* ✅ 途中CTA（small-summary）のボタン中央寄せ：HTML依存せずCSSで担保 */
.liv-small-summary{ text-align: center; }
.liv-cta-center{ text-align: center; }            /* ← 追加 */
.liv-small-summary .liv-btn,
.liv-cta-center .liv-btn{ margin: 0 auto; }       /* ← 強化 */

/* =========================================================
   DIAGNOSIS / CONCEPT
   ========================================================= */
.liv-concept-inner{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 48px;
  align-items: center;
}
.liv-concept-img{ height: 320px; }
.liv-concept-text p{
  font-size: 0.95rem;
  line-height: 2;
  color: #3A3630;
}

.diagnosis-list{
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.diagnosis-item{
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #2B2926;
}
.liv-icon.icon-diag{
  width: 20px;
  height: 20px;
  opacity: 0.7;
  margin-right: 10px;
}

/* =========================================================
   SERVICE（おとくに土地診断）
   ========================================================= */
.landdiag-list{
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}
.landdiag-item{
  padding: 1.25rem 0;
  border-top: 1px solid var(--liv-line);
}
.landdiag-item:last-child{ border-bottom: 1px solid var(--liv-line); }

.landdiag-label{
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}
.landdiag-text{
  font-size: 0.9rem;
  line-height: 1.9;
}

@media (min-width: 768px){
  .landdiag-item{
    display: grid;
    grid-template-columns: 8rem 1fr;
    column-gap: 2rem;
    align-items: flex-start;
  }
  .landdiag-label{ margin-bottom: 0; }
}

/* =========================================================
   CASE STUDY / FLOW / CARDS
   ========================================================= */
.case-title-flex{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.liv-icon.icon-case{
  width: 26px;
  height: 26px;
  opacity: 0.6;
  margin-top: 2px;
}

/* Divider */
.contact-divider{
  text-align: center;
  margin: 80px 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.contact-divider .liv-icon{
  width: 32px;
  height: 32px;
  stroke: #C9C4BC;
  opacity: 0.8;
  margin: 0;
}

/* Cards (PC default) */
.liv-flow-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.liv-flow-item{
  background-color: var(--liv-paper);
  border: 1px solid var(--liv-line);
  padding: 28px 24px;
}
.flow-step{
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  color: var(--liv-muted);
}
.liv-flow-item h3{
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 10px;
}
.liv-flow-item p{
  font-size: 0.9rem;
  line-height: 1.9;
  color: #4A453F;
}

/* --- Case slider wrapper & nav (SP mainly) --- */
.case-slider-wrapper{
  position: relative;
  width: 100%;
}
.slider-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s, visibility 0.3s;
  outline: none;
}
.slider-nav.prev{ left: -10px; }
.slider-nav.next{ right: -10px; }

.slider-nav svg{
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #333;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slider-nav.disabled{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Image box */
.case-img-box{
  margin: 1.5rem 0 1rem;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 9;
}
.case-img-box img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   RESULT
   ========================================================= */
#result p strong{ font-weight: 600; }

.liv-result-card{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 2.4rem 2.2rem;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: 760px;
  margin: 3rem auto 0;
}
#result .liv-result-card p{
  font-size: 0.95rem;
  line-height: 2.1;
  letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
  color: rgba(255,255,255,0.95);
}
#result .liv-result-card p:last-child{
  margin-bottom: 0;
  font-weight: 600;
}

/* =========================================================
   CONTACT
   ========================================================= */
.liv-contact{
  background-color: var(--liv-dark);
  color: #F5F2EC;
}
.liv-contact-box{
  max-width: 760px;
  margin: 0 auto;
}
.liv-contact-desc{
  margin-top: 16px;
  margin-bottom: 46px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #D8D1C7;
}
.contact-notes ul li{ margin-bottom: 6px; }

/* =========================================================
   FORM
   ========================================================= */
.liv-form{ margin-top: 20px; }

.form-guide{
  font-size: 0.85rem;
  line-height: 1.8;
  color: #AFA79A;
  margin-bottom: 18px;
}

.form-field{ min-width: 0; }
.field-label{ color: #D8D1C7; }

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.choice-group{ display: flex; flex-wrap: wrap; gap: 8px; }

.choice-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.85rem;
}
.choice-btn input[type="radio"]{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice-btn span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #4B463F;
  background: #171511;
  color: #F5F2EC;
  transition: 0.2s ease;
  white-space: nowrap;
}
.choice-btn:hover span{ background: #2A2520; }
.choice-btn input[type="radio"]:checked + span{
  border-color: #F5F2EC;
  background: #F5F2EC;
  color: #171511;
}

.liv-input,
.liv-textarea,
.liv-form input,
.liv-form textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 0;
  border: 1px solid #4B463F;
  background: #171511;
  color: #F5F2EC;
  font-family: inherit;
  font-size: 0.95rem;
}
.liv-textarea,
.liv-form textarea{
  resize: vertical;
  min-height: 120px;
}
.liv-form input::placeholder,
.liv-form textarea::placeholder{
  color: #7F776B;
}

.liv-btn-wrap{ margin-top: 28px; text-align: center; }
.liv-btn{
  display: inline-block;
  padding: 16px 64px;
  border-radius: 999px;
  border: 1px solid #F5F2EC;
  background: #F5F2EC;
  color: #171511;
  font-family: var(--font-en);
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.3s ease;
}
.liv-btn:hover{ background: transparent; color: #F5F2EC; }

/* =========================================================
   FOOTER
   ========================================================= */
.liv-footer{
  background-color: #181512;
  color: #A39A8E;
  padding: 24px 0 80px;
  border-top: 1px solid #2B2620;
}
.liv-footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-size: 0.8rem;
}
.footer-logo-text{
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}
.footer-address{ line-height: 1.8; }
.footer-address a{ text-decoration: underline; text-underline-offset: 3px; }
.copyright{
  font-size: 0.75rem;
  margin-left: auto;
  white-space: nowrap;
}

/* =========================================================
   STICKY FOOTER
   ========================================================= */
.liv-sticky-footer{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(26, 23, 20, 0.88);
  border-top: 1px solid rgba(215,209,198,0.4);
}
.liv-sticky-inner{
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.liv-sticky-logo{
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: #F5F2EC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 10px;
}
.liv-sticky-logo-img{
  height: 22px;
  width: auto;
  display: block;
}
.liv-sticky-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid #F5F2EC;
  font-family: var(--font-en);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: #F5F2EC;
  color: #171511;
  transition: 0.25s ease;
}
.liv-sticky-btn:hover{
  background: transparent;
  color: #F5F2EC;
}

/* =========================================================
   RESPONSIVE (Tablet)
   ========================================================= */
@media screen and (max-width: 1024px){
  .liv-container{ width: min(960px, 100% - 48px); }
  .liv-head-md{ font-size: 2rem; }

  .liv-strength-row{
    grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1.2fr);
    gap: 32px;
    padding: 64px 0;
  }
  .liv-concept-inner{ gap: 40px; }

  .liv-footer-inner{ flex-wrap: wrap; }
  .copyright{
    width: 100%;
    margin-left: 0;
  }
}

/* =========================================================
   RESPONSIVE: MOBILE
   ========================================================= */
@media screen and (max-width: 768px){
  .sp-only{ display: inline; }

  .liv-container{ width: min(100%, 100% - 32px); }

  .liv-logo img{ height: 84px; }
  .liv-section{ padding: 80px 0; }

  /* HERO */
  .liv-hero{
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    background-color: var(--liv-dark);
  }
  .liv-hero-video-wrap{
    position: relative;
    inset: auto;
    width: 100%;
    height: 50vh;
    min-height: 300px;
  }
  .liv-hero-video{
    object-fit: cover;
    object-position: center bottom;
  }
  .liv-hero-overlay{ opacity: 0; }

  .liv-hero-content{
    position: relative;
    width: 100%;
    height: auto;
    padding: 40px 24px 60px;
    background-color: var(--liv-dark);
    color: #F5F2EC;
    display: block;
    text-align: center;
  }

  /* ❌ ここで余白を作るとズレるので、H1の下余白は0に寄せる */
  .liv-main-copy{
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 0;     /* ← 修正（本文p側で管理） */
    text-shadow: none;
  }

  /* ✅ SPでも「本文pとボタンの間＝1行」を担保 */
  .liv-hero-titles > p{
    margin-top: 1.25rem;
    margin-bottom: 1em;
  }

  .hero-cta{
    margin-top: 0;
    text-align: center;
    margin-bottom: 20px;
  }
  .hero-cta-btn{
    width: 100%;
    max-width: 320px;
    padding: 14px 0;
  }
  .scroll-down{ display: none; }

  /* Grids */
  .liv-about-grid,
  .liv-problems-grid,
  .liv-strength-row,
  .liv-concept-inner,
  .diagnosis-list,
  .form-row{
    grid-template-columns: 1fr;
  }

  .liv-about-note,
  .liv-problems-list{
    border-left: none;
    padding-left: 0;
    margin-top: 24px;
  }
  .liv-about-note{
    border-top: 1px solid var(--liv-line);
    padding-top: 24px;
  }

  /* 実績エリア SP */
  .liv-trust-area{ padding: 1.5rem 0; }
  .trust-stats{
    gap: 1rem;
    justify-content: space-between;
  }
  .trust-item{ width: 32%; }
  .trust-number{ font-size: 2rem; }
  .trust-label{ font-size: 0.7rem; }
  .trust-sub{
    font-size: 0.65rem;
    white-space: nowrap;
    transform: scale(0.9);
  }

  .liv-problems-list{
    border-top: 1px solid rgba(245,242,236,0.28);
    padding-top: 24px;
  }

  .liv-icon.icon-issue{
    position: static;
    margin-right: 6px;
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: text-bottom;
  }
  .problem-item{ padding-left: 0; }
  .liv-problem-conclusion{ font-size: 1.05rem; }

  .liv-strength-visual{
    order: -1;
    height: 220px;
    margin-bottom: 24px;
  }
  .liv-strength-num{
    border-bottom: 1px solid var(--liv-line);
    padding-bottom: 8px;
  }
  .liv-strength-comment{
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    font-size: 0.78rem;
  }

  .liv-concept-img{ height: 260px; }
  .liv-contact-desc{ text-align: center; }
  .form-row{ gap: 12px; }

  /* sticky */
  .liv-sticky-inner{ padding: 8px 0 10px; }
  .liv-sticky-logo{
    font-size: 0.8rem;
    gap: 8px;
  }
  .liv-sticky-logo-img{ height: 20px; }
  .liv-sticky-btn{
    padding: 8px 18px;
    font-size: 0.76rem;
  }

  /* Footer */
  .liv-footer-inner{
    flex-direction: column;
    align-items: flex-start;
  }
  .copyright{ white-space: normal; }

  /* =========================================================
     ✅ SP: CASEだけ横スクロール / FLOWは縦積み
     ========================================================= */

  /* CASE: 横スクロール */
  #cases .liv-flow-grid{
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 0 4px 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #cases .liv-flow-grid::-webkit-scrollbar{ display: none; }

  #cases .liv-flow-item{
    flex: 0 0 88%;
    width: 88%;
    scroll-snap-align: center;
    background: #fff;
  }

  /* FLOW: 縦積み */
  #flow .liv-flow-grid{
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
    gap: 16px;
  }
  #flow .liv-flow-item{
    width: auto;
    flex: none;
  }
}

/* --- PC用（768px以上） --- */
@media screen and (min-width: 768px){
  .slider-nav{ display: none; }

  .liv-flow-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    overflow-x: visible;
    padding: 0;
  }
  .liv-flow-item{
    width: auto;
    max-width: 100%;
    flex: none;
  }

  .slider-nav.prev{ left: 0; }
  .slider-nav.next{ right: 0; }
}

/* CASE：カード高さを揃える（本文を同一行数で省略） */
#cases .liv-flow-item{
  display: flex;
  flex-direction: column;
  height: 100%;
}

#cases .liv-flow-item p{
  margin-top: 0.75rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;   /* ← 3〜5で調整。スクショなら4が妥当 */
  overflow: hidden;
}


/* CASE本文の「…」を完全に無効化（line-clamp / overflow hidden対策） */
#cases .liv-flow-item p{
  display: block !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;

  /* line-clamp系を殺す */
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  -webkit-box-orient: unset !important;

  /* 高さ制限があれば解除 */
  max-height: none !important;
  height: auto !important;
}