@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Zen+Kaku+Gothic+New:wght@400;900&display=swap');

/* ==========================================
     1. DESIGN SYSTEM & VARIABLES
     ========================================== */
  :root {
    --navy-dark: #02449c;
    --navy-mid: #0d68b4;
    --navy-bright: #1ea4dd;
    --accent-red: #f24e1e;
    --accent-right-orenge: #ffc800;
    --accent-orange: #ff6006;
    --accent-green: #22b7c9;
    --accent-orange-hover: #e75806;
    --gold: #fff72b;
    --white: #ffffff;
    --light-gray: #f4f6fa;
    --text-dark: #002241;
    --text-mid: #3d5a7a;
    --text-muted: rgba(255, 255, 255, 0.75);  
    /* 斜めの高さを画面幅に応じて可変（レスポンシブ対応） */
    --slant: 4vw; 
  }
  /*ロゴ修正*/
  .logo-wrap {
    align-items: center;
  }
  .logo-wrap .name {
    font-size:clamp(1rem, 0.909rem + 0.45vw, 1.25rem);
    z-index: 3;
  }
  /* keyvisual削除 */
  .c-keyvisual_lp {
    display: none;
  }
  /* クリーニング・共通設定 */
  .lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 10;
  }
  /* セクション共通 */
  .lp-section {
    position: relative;
    padding: 120px 0;
  }
  .lp-section .section-title {
    text-align: center;
    font-size: clamp(1.5rem, 1.182rem + 1.59vw, 2.375rem);
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
  }
  .lp-section .section-title span, .section-title em {
    color: var(--navy-mid);
    font-style: normal;
  }
  .lp-section .section-title.white { color: var(--white); }
  .lp-section .section-lead {
    text-align: center;
    margin-bottom: 40px;
    font-size: clamp(1rem, 0.955rem + 0.23vw, 1.125rem);
  }
  .lp-section .section-lead.white { color: var(--text-muted); }

  /* ボタン */
  .lp-section .btn-wrap { text-align: center; margin-top: 40px; }
  .lp-section .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 18px 48px;
    font-size: clamp(1.125rem, 1.08rem + 0.23vw, 1.25rem);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 55, 128, 0.5);
    transition: all 0.3s ease;
  }
  .lp-section .btn:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 55, 128, 0.7);
    color: var(--white);
  }
  .lp-section .btn-sub {
    background-color: transparent;
    border: 2px solid var(--white);
    box-shadow: none;
    color: var(--white);
    margin-left: 16px;
  }
  .lp-section .btn-sub:hover {
    border: 2px solid var(--white);
    background-color: transparent;
    color: var(--white);
    box-shadow: none;
  }

/* 提示されたコンテナ構造 */
.lp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.lp-container .p-copy {
  font-size: clamp(2.125rem, 1.443rem + 3.41vw, 4rem);
  text-align: center;
}

/* ==========================================
   01. HERO SECTION BASE
   ========================================== */
.hero {
  background: linear-gradient(135deg, var(--navy-bright) 0%, var(--navy-mid) 60%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 0 0 140px 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  margin-bottom: calc(-1 * var(--slant));
  z-index: 10;
}
.hero-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ==========================================
   最上部：キービジュアルエリア（フルカラム・可変設定）
   ========================================== */
.hero-visual {
  position: relative !important;
  width: 100%;
  margin: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 1;
}
.hero-visual::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, rgba(10, 33, 63, 0.75) 0%, rgba(10, 33, 63, 0.4) 50%, rgba(10, 33, 63, 0) 100%) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}
.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-height: 420px; 
  max-height: 640px;
}
.hero-title {
  position: absolute !important;
  top: 45% !important;
  left: 5% !important;
  transform: translateY(-50%) !important;
  width: auto !important;
  max-width: 75% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  text-align: left !important;
  background: transparent !important;
  z-index: 10 !important;
  font-size: clamp(1.5rem, 0.909rem + 2.95vw, 3.125rem) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: -0.01em !important;
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.5) !important;
}
.hero-title .sub {
  font-size: clamp(0.9rem, 0.6rem + 1.4vw, 1.6rem) !important;
  color: #0a213f !important;
  letter-spacing: .013em !important;
  font-weight: 700 !important;
  background: rgba(255, 255, 255, 0.9) !important;
  padding: 0px 12px 2px 12px!important;
  margin-bottom: 12px !important;
  display: inline-block !important;
  text-align: left !important;
  text-shadow: none;
}
.hero-title .em {
  display: inline !important;
  color: var(--accent-right-orenge);
  font-weight: 700 !important;
}
.hero-title .strong {
  display: inline !important;
  color: var(--gold)!important;
  font-weight: 900 !important;
  font-size: 64px;
  letter-spacing: -.05em;
  text-shadow: 3px 3px 0 #21272d;
  -webkit-text-stroke: 2px #1d1d1d;
  padding: 0 0 10px;
}

/* ==========================================
   画像内の最下部にぴったり重ねる補補足フレーム
   ========================================== */
.hero-visual-frame {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.85) !important;
  padding: 12px 6% !important;
  z-index: 20 !important; /* 一番手前に配置 */
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}
.hero-visual-ball {
  display: inline-block !important;
  color: #ffffff !important;
  background: #ff8406 !important;
  padding: 3px 16px !important;
  border-radius: 20px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  margin: 0 !important;
}
.hero-visual-text { 
  font-size: 16px !important;
  text-align: left !important;
  color: #222222 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  padding: 0 8px !important;
  white-space: nowrap !important;
}

/* ==========================================
   2段目：テキスト＆スタッツエリア
   ========================================= */
.hero-text-area {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 32px auto;
  padding: 24px 24px 40px;
  box-sizing: border-box;
  z-index: 2;
}
.hero-desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--white);
  margin-bottom: 32px;
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  margin-bottom: 64px;
}
.hero-stat-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.hero-stat-box .num {
  font-size: clamp(2.5rem, 2.045rem + 2.27vw, 3.75rem);
  font-family: 'Bebas Neue', sans-serif;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.hero-stat-box .num span { font-size: 60%; margin-left: 2px; }
.hero-stat-box .lbl { font-size: 13px; color: var(--white); margin-top: 8px; font-weight: 700; }
/* ボタンエリア */
.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}
.hero-btns .btn {
  min-width: 280px;
  text-align: center;
}
/* ==========================================
   3. FEATURES SECTION (白背景・潜り込み用)
   ========================================== */
.features {
  background-color: var(--white);
  padding-top: calc(100px + var(--slant));
  z-index: 10;
}
.features-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}
.feature-card {
  background-color: var(--white);
  position: relative;
  border-radius: 24px;
  width: 100%;
  max-width: 300px;
  flex-shrink: 0; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 40px 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.feature-card p { font-size: 16px; line-height: 1.7; font-weight: 700; color: var(--navy-dark); text-align: center;}

.feature-card .num-badge {
    position: absolute;
    font-size: 15px;
    font-family: 'Bebas Neue', sans-serif;
    line-height: 1;
    padding: 4px 16px;
    display: inline-block;
    background: var(--navy-dark);
    top: 0px;
    left: 0px;
    text-align: center;
}
.feature-card .num-badge em {
  font-size: 180%;
  font-style: normal;
}
  /* ==========================================
     4. PROBLEM SECTION (斜めカット：下辺右上がり)
     ========================================== */
  .problem {
    background-color: var(--light-gray);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
    margin-bottom: calc(-1 * var(--slant));
    padding-bottom: calc(120px + var(--slant));
    z-index: 9;
  }
  .problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  .problem-card {
    position: relative;
    background: var(--white);
    padding: 8px 32px 24px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
  .problem-card .cut {
    width: 100%;
    max-width: 100px;
    margin: 0 auto;
  }
  .problem-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy-mid);
    margin-top: 8px;
    margin-bottom: 16px;
    line-height: 1.4;
  }
  .problem-card p {
    font-size: 15px;
    line-height: 1.7;
  }

  /* ==========================================
     5. SOLUTION SECTION (白背景・潜り込み用)
     ========================================== */
  .solution {
    background-color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
    margin-bottom: calc(-1 * var(--slant));
    padding-bottom: calc(120px + var(--slant));
    z-index: 8;
  }
  .solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .solution-card {
    position: relative;
    background: #f4f8fa;
    padding: 24px 32px 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .solution-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 16px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
  }
  .solution-card h3 .tag {
    color: var(--white);
    background: var(--navy-mid);
    font-size: 14px;
    display: inline-block;
    padding: 2px 8px;
    margin-bottom: 8px;
  }
  .solution-card p { font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
  .solution-meta {
    border-top: 1px solid rgba(0,0,0,0.5);
    padding-top: 16px;
  }
  .solution-tag {
    background: #ffb92c;
    font-size: 14px;
    padding: 2px 12px;
    border-radius: 50vh;
    font-weight: bold;
  }
  .solution-card .num-badge {
    font-size: clamp(3.75rem, 3.068rem + 3.41vw, 5.625rem);
    color: var(--white);
    position: absolute;
    top: -20px;
    left: -4px;
    line-height: 1;
    z-index: 0;
}
.solution-photo-area img {
  width: 90%;
  height: 380px;
  margin: 0 auto 24px;
  object-fit: cover;
  object-position: center center;
  border-radius: 12px;
}

  /* ==========================================
     6. SERVICES SECTION (斜めカット：下辺右下がり)
     ========================================== */
  .services {
    background-color: var(--light-gray);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
    margin-bottom: calc(-1 * var(--slant));
    padding-bottom: calc(120px + var(--slant));
    z-index: 7;
  }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  .service-card {
    background: var(--white);
    padding: 24px 32px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    border: 1px solid #eef1f5;
  }
  .service-card h3 { font-size: clamp(1.063rem, 0.994rem + 0.34vw, 1.25rem); margin-bottom: 10px; text-align: center; color: var(--navy-dark); }
  .service-card p { font-size: 15px; }
  .service-card .cut {
    width: 32%;
    margin: 0 auto 8px;
  }
  .service-metrics {
    background: var(--light-gray);
    padding: 8px 16px;
    margin-top: 16px;
    border-radius: 4px;
  }
  .service-metrics .text {  
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    padding-left: 20px;
    text-indent: -1.7em;
  }
  .service-metrics .text:last-child { margin-bottom: 0; }
  .service-metrics .text .check {
    color: var(--accent-red);
    font-size: 16px;
    font-weight: 700;
    margin-right: 6px;
    position: relative;
    z-index: 1;
  }
  .service-metrics .text .check::after {
    position: absolute;
    content: '';
    background: var(--white);
    border: 1px solid #333;
    width: 16px;
    height: 16px;
    left: 0px;
    top: 6px;
    font-size: 18px;
    z-index: -1;
  }

  /* ==========================================
     7. CLIENTS & GALLERY SECTION (白背景)
     ========================================== */
  .clients {
    background-color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
    margin-bottom: calc(-1 * var(--slant));
    padding-bottom: calc(120px + var(--slant));
    z-index: 6;
  }
  .clients-badge-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 40px;
  }
  .client-badge {
    background: var(--light-gray);
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--navy-mid);
    border-radius: 4px;
  }
  .client-badge .cut {
    width: 50%;
    margin: 0 auto;
  }
  .clients-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    background: var(--navy-dark);
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
  }
  .client-summary-box:not(:last-child) { border-right: 1px solid var(--white); }
  .client-summary-box h4 { font-size: clamp(1.375rem, 0.966rem + 2.05vw, 2.5rem); color: var(--gold); }
  .client-summary-box h4 span { font-size: 150%; line-height: 1; }
  .client-summary-box p { font-size: 15px; color: var(--white); }
  .client-voice-grid {
    padding: 24px 40px 0;
    margin-top: 56px;
    display: grid;
    grid-template-columns: 7.5fr 2.5fr;
    gap: 0 40px;
    border: 4px solid #748bab;
    border-radius: 24px;
  }
  .client-voice-grid .client-voice-title {
    font-size: clamp(1.375rem, 1.239rem + 0.68vw, 1.75rem);
    color: var(--accent-orange);
    margin-top: 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

  &::before {
    content: "";
    width: 40px;
    height: 2px;
    box-sizing: border-box;
    background-color: #333333;
    rotate: 60deg;
  }

  &::after {
    content: "";
    width: 40px;
    height: 2px;
    box-sizing: border-box;
    background-color: #333333;
    rotate: -60deg;
  }
}
  .client-voice-grid .section-lead {
    font-size: 18px;
    text-align: left;
    margin-bottom: 0;
  }

/* ==========================================================================
   1. ギャラリーグリッド基本構造（スマホ基準：2面並び）
   ========================================================================== */
.gallery {
    background-color: var(--light-gray);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
    margin-bottom: calc(-1 * var(--slant));
    padding-bottom: calc(120px + var(--slant));
    z-index: 5;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 12px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
/* 各画像アイテムの枠 */
.gallery-item {
  position: relative;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 4;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
/* クリック領域になる親ラベル */
.gallery-label {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
}
/* グリッドに並んでいる時の画像 */
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.3s ease;
}
/* ホバー時に画像を少しだけ大きくする上品な演出 */
.gallery-item:hover .gallery-img {
  transform: scale(1.04);
}

/* 画像下部のテキスト帯 */
.gallery-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  box-sizing: border-box;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* 文字が長すぎる場合は「...」にする防崩れ対応 */
}

/* ==========================================================================
   2. レレスポンシブ切り替え（タブレット ➔ PC上3下4）
   ========================================================================== */

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
  }
  .gallery-text {
    font-size: 13px;
    padding: 10px 8px;
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(12, 1fr); 
  }
  .gallery-item.top-row {
    grid-column: span 4;
  }
  .gallery-item.bottom-row {
    grid-column: span 3;
  }
}

/* ==========================================================================
   3. JS不使用・CSSモーダル（画像拡大）のシステム
   ========================================================================== */

/* スイッチとなるチェックボックスは完全に隠す */
.modal-switch {
  display: none;
}
/* 拡大画面の黒背景レイヤー */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* 深い黒背景 */
  z-index: 9999!important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
/* 拡大のコンテンツ土台 */
.modal-content {
  background: none;
  padding: 0;
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.modal-close-label {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s;
}
.modal-close-label:hover {
  opacity: 0.7;
}
.modal-bg-close {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  cursor: pointer;
}
.modal-img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
/* モーダル内の製品テキスト */
.modal-text {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 16px;
  color: #fff;
  font-weight: bold;
}

/* ━━━━ チェックボックスがON（クリックされた）時の挙動 ━━━━ */
.modal-switch:checked ~ .modal-overlay {
  opacity: 1;
  pointer-events: auto;
}
.modal-switch:checked ~ .modal-overlay .modal-content {
  transform: scale(1);
}


  /* ==========================================
     8. RESULTS SECTION (紺背景・両面斜めカット)
     ========================================== */
  .results {
    background-color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
    margin-bottom: calc(-1 * var(--slant));
    padding-bottom: calc(120px + var(--slant));
    z-index: 4;
  }

  .results-header {
    text-align: center;
    margin-bottom: 60px;
  }

  .results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--white);
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 4px 32px rgba(0,112,192,0.08);
  }
  .results-grid:not(:last-of-type) {
    border-right: 1px solid #222;
  }
  .result-item {
    background: var(--white);
    padding: 40px 24px;
    text-align: center;
    transition: background 0.3s;
  }
  .result-item:not(:last-of-type) {
    border-right: 1px dashed #333;
  }
  .result-item:hover { background: var(--light-gray); }
  .result-before-after {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
  }
  .result-before {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-mid);
    text-decoration: line-through;
    text-decoration-color: var(--accent-red);
  }
  .result-arrow {
    font-size: 30px;
    color: var(--text-mid);
  }
  .result-after {
    font-size: clamp(1.125rem, 0.989rem + 0.68vw, 1.5rem);
    font-weight: 700;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    color: var(--navy-mid);
    line-height: 1;
    letter-spacing: 0.02em;
  }
  .result-unit {
    font-size: clamp(2.5rem, 1.909rem + 2.95vw, 4.125rem);
    color: var(--accent-orange);
    margin-bottom: 10px;
    display: inline-block;
  }
  .result-label {
    font-size: 15px;
    line-height: 1.7;
  }
  .result-source {
    font-size: 14px;
    color: rgba(0,0,0,0.6);
    margin-top: 6px;
    display: block;
  }

  /* 事例紹介 */
  .case-studies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .case-card {
    border: 1px solid var(--navy-mid);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s;
  }
  .case-card:hover { box-shadow: 0 8px 32px rgba(0,112,192,0.1); }

  .case-head {
    background: linear-gradient(90deg, #0d68b4 0%, #02449c 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .case-head h4 { font-size: 18px; font-weight: 700; }
  .case-industry {
    font-size: 14px;
    background: #bad8ff;
    color: var(--navy-dark);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.08em;
  }
  .case-body {
    padding: 24px 32px 8px;
  }
  .case-issue, .case-sol, .case-eff {
    margin-bottom: 16px;
  }
  .case-subtitle {
    font-size: 16px;
    width: 86px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.12em;
    background: var(--navy-mid);
    color: var(--white);
    padding: 2px 16px;
    display: inline-block;
  }
  .case-body p {
    font-size: 15px;
    line-height: 1.8;
    margin-top: 8px;
  }
  .case-effect-num {
    font-size: clamp(1.25rem, 1.023rem + 1.14vw, 1.875rem);
    color: var(--navy-dark);
    font-weight: 700;
    line-height: 1;
    margin-top: 10px;
  }
  .case-effect-num span {
    font-size: 140%;
  }

 /* ===== MOLD TYPE SECTION ===== */
.moldtype {
    background-color: var(--light-gray);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
    margin-bottom: calc(-1 * var(--slant));
    padding-bottom: calc(120px + var(--slant));
    z-index: 3;
}

  .moldtype-section {
    padding: 120px 0;
    background: white;
    position: relative;
    overflow: hidden;
  }

  .moldtype-section::before {
    content: 'MOLD TYPE';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 100px;
    color: rgba(0,114,197,0.04);
    letter-spacing: 0.1em;
    pointer-events: none;
  }

  .moldtype-header {
    text-align: center;
    margin-bottom: 64px;
  }

  .moldtype-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }

  .moldtype-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--mid-gray);
    transition: all 0.35s;
    background: white;
    box-shadow: 0 2px 20px rgb(129 135 139 / 8%);
  }
  .moldtype-card-head {
    background: linear-gradient(90deg, #0d68b4 0%, #02449c 100%);
    padding: 24px 32px;
    position: relative;
    overflow: hidden;
  }
  .moldtype-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
  }

  .moldtype-name {
    font-size: clamp(1.25rem, 1.114rem + 0.68vw, 1.625rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
  }

  .moldtype-name-sub {
    font-size: 14px;
    color: var(--white);
    letter-spacing: 0.06em;
    position: relative;
    z-index: 1;
  }

  .moldtype-card-body {
    padding: 32px;
  }
  .moldtype-card-body .modal-ph {
    width: 80%;
    margin: 0 auto;
  }
  .moldtype-desc {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
  }

  .moldtype-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .moldtype-feature {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .moldtype-feature-icon {
    width: 26px;
    height: 26px;
    background: var(--accent-right-orenge);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .moldtype-feature-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .moldtype-feature-text {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
  }

  .moldtype-materials {
    margin-bottom: 0;
  }

  .moldtype-materials-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--navy-dark);
    text-transform: uppercase;
    margin-bottom: 12px;
  }

  .moldtype-material-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 4px;
  }

  .moldtype-tag {
    background: rgba(0,114,197,0.08);
    border: 1px solid rgba(0,114,197,0.2);
    color: var(--navy-mid);
    font-size: 13px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 20px;
    letter-spacing: 0.04em;
  }

  .moldtype-compare {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 48px;
    margin-bottom: 64px;
  }

  .moldtype-compare-title {
    text-align: center;
    font-size: clamp(1.25rem, 1.114rem + 0.68vw, 1.625rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
  }

  .moldtype-compare-title em {
    font-style: normal;
    color: var(--navy-mid);
  }

  .moldtype-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
  }

  .moldtype-compare-table th {
    background: #02449c;
    color: white;
    padding: 14px 20px;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.06em;
  }
.moldtype-compare-table tr:nth-child(even) td {
    background: rgba(0, 114, 197, 0.03);
}
  .moldtype-compare-table th:first-child { border-radius: 8px 0 0 0; }
  .moldtype-compare-table th:last-child { border-radius: 0 8px 0 0; }

  .moldtype-compare-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--mid-gray);
    color: var(--text-mid);
    line-height: 1.65;
  }
  .moldtype-compare-table td:first-child {
    font-weight: 700;
    color: var(--text-dark);
  }

  .moldtype-history {
    background: linear-gradient(to bottom right, #0d67b2, #21a5db);
    border-radius: 16px;
    padding: 40px 48px;
    color: white;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 0 40px;
    align-items: start;
  }

  .moldtype-history h3 {
    font-size: clamp(1.25rem, 1.159rem + 0.45vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
  }
  .moldtype-history p {
    color: var(--white);
    line-height: 1.8;
  }

  .moldtype-history-badge {
    display: inline-block;
    background: var(--gold);
    color: #222;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
  }

  @media (max-width: 900px) {
    .moldtype-grid { grid-template-columns: 1fr; }
    .moldtype-features { grid-template-columns: 1fr; }
    .moldtype-history { grid-template-columns: 1fr; gap: 24px; }
    .moldtype-compare { padding: 24px 20px; }
    .moldtype-card-body { padding: 24px 20px; }
    .moldtype-card-head { padding: 24px 20px; }
  }

  /* ==========================================
     9. STRENGTH SECTION (白背景・潜り込み用)
     ========================================== */
  .strength {
    background-color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
    margin-bottom: calc(-1 * var(--slant));
    padding-bottom: calc(120px + var(--slant));
    z-index: 2;
  }
  .strength-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
  }
  .strength-card {
    background: var(--light-gray);
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 16px;
    padding: 24px;
    border-radius: 12px;
  }
  .strength-card h3 { font-size: clamp(1.125rem, 1.08rem + 0.23vw, 1.25rem); margin-top: 16px; margin-bottom: 8px; color: var(--navy-dark); }
  .strength-card p { font-size: 15px; }
  .strength-num {
    font-size: clamp(1.375rem, 0.966rem + 2.05vw, 2.5rem);
    color: var(--accent-orange);
    border: 1px solid;
    font-weight: 700;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    background: var(--white);
    width: 190px;
    height: 190px;
    border-radius: 50%;
    text-align: center;
    box-sizing: border-box;
    padding: 10px;
    margin: 0 auto;
  }
.strength-num p:first-child {
    margin: 0;
    font-size: clamp(2.625rem, 2.216rem + 2.05vw, 3.75rem);
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}
.strength-num p:first-child span {
  font-size: clamp(1.125rem, 0.943rem + 0.91vw, 1.625rem);
}

/* 「ストップで全工程対応」の調整 */
.strength-num .strength-unit {
    margin: 4px 0 0 0;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    letter-spacing: -.013em;
}

  /* ==========================================
     10. PROCESS SECTION (薄灰色背景・上辺右下がり)
     ========================================== */
  .process {
    background-color: var(--light-gray);
    padding-bottom: 140px;
    z-index: 1;
  }
  .process-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    position: relative;
  }
  .process-step {
    background: var(--white);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    position: relative;
  }
  .process-step .num-badge {
    background: #0ac1cc;
    display: flex; 
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: var(--white);
    font-weight: 700;
    font-size: 24px;
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);

  }
.process-timeline .process-step:nth-child(2) .num-badge {
    background: #08a1bf!important;
}
.process-timeline .process-step:nth-child(3) .num-badge {
    background: #0681b3!important;
}
.process-timeline .process-step:nth-child(4) .num-badge {
    background: #0360a6!important;
}
.process-timeline .process-step:nth-child(5) .num-badge {
    background: #014099 !important;
}
  .process-step .cut {
    width: 60%;
    margin: 0 auto;
  }
  .process-step h3 { font-size: 15px; margin-top: 12px; margin-bottom: 8px; color: var(--navy-dark); letter-spacing: -.02em; }
  .process-step p { font-size: 14px; color: #666; line-height: 1.7; }

  /* ==========================================
     11. CONTACT FOOTER
     ========================================== */
  /* ===== CTA SECTION ===== */
  .cta-section {
    padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--navy-bright) 0%, var(--navy-mid) 60%, var(--navy-dark) 100%);
    position: relative;
    overflow: hidden;
  }
  .cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
  }

  .cta-inner h2 {
    font-size: clamp(1.5rem, 1.091rem + 2.05vw, 2.625rem);
    font-weight: 700;
    color: white;
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
  }

  .btn-white {
    background: white;
    color: var(--accent);
    padding: 18px 48px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  }

  .btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 36px rgba(0,0,0,0.25);
  }

  .btn-outline-white {
    border: 2px solid rgba(255,255,255,0.7);
    color: white;
    padding: 18px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: all 0.3s;
  }

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

  .cta-contact-info {
    color: rgba(255,255,255,0.85);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.1em;
  }
  .cta-contact-info .p-tel-date {
    display: block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    opacity: 0.7;
    margin-bottom: 6px;
  }
  .cta-inner .p-copy {
    font-size: clamp(2.125rem, 1.443rem + 3.41vw, 4rem);
  }

  /* 従来の設定変更*/ 
  .lp-footer {
    margin-top: 0;
  }
  .lp-footer .cta-inner {
    color: var(--white);
    text-align: center;
  }
  .cta-inner .p-contact-grid {
    max-width: 900px;
  }

  /* ==========================================
     12. COMPLETE RESPONSIVE (スマホ・タブレット)
     ========================================== */
  @media (max-width: 1024px) {
    .lp-section .section-lead { text-align: left; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-stats-grid { max-width: 740px; margin: 30px auto; }
    .hero-desc {text-align: left; margin-bottom: 0;}
    .hero-text-area { max-width: 100%; padding: 0 0 32px;}
    .features-grid { gap: 32px 16px;}
    .feature-card p { text-align: left; }
    .problem-grid { grid-template-columns: repeat(2, 1fr); }
    .solution-grid { grid-template-columns: 1fr; }
    .case-head {display: block; line-height: 1.7; margin-bottom: 6px;}
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .client-voice-grid { grid-template-columns: 7fr 3fr; align-items: end; }
    .client-voice-grid .client-voice-title {gap: 0; line-height: 1.5;}
    .clients-badge-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .results-metrics-grid { grid-template-columns: 1fr; gap: 20px; }
    .cases-grid { grid-template-columns: 1fr; }
    .strength-grid { grid-template-columns: repeat(1, 1fr); }
    .process-timeline { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .contact-actions { grid-template-columns: 1fr; }
    .lp-section .rp-none {display: none;}
  }

  @media (max-width: 767px) {
    .lp-container h2,
    .lp-container h3 { line-height: 1.7; } 
    .lp-container { padding: 0; }
    .lp-section { padding: 70px 20px; }
    .lp-section .btn-sub { margin-left: 0; }
    .lp-section .section-lead { margin-bottom: 24px; }
    /* スマホ・タブレット環境：画像、タイトル、フレームを綺麗に縦並びにする */
    .hero { padding: 0 0 90px 0; }
    .hero-visual {
      display: flex;
      flex-direction: column-reverse;
      box-shadow: none;
      overflow: visible; /* スマホで要素を外に出せるように */
      position: relative;
    }
    .hero-visual img {
      min-height: 320px;
      margin-bottom: 80px;
      order: 1;
    }
    /* タイトルを画像の下に配置 */
    .hero-title {
      width: 100%;
      height: auto;
      padding: 80px 16px 16px;
      background: transparent !important; /* 背景は透過させて親のネイビーを見せる */
      text-shadow: none;
      text-align: left;
      align-items: flex-start;
      order: 2;
      top: 42%!important;
      left: 5% !important;
      max-width: 90% !important;
      text-shadow: 2px 2px 14px rgb(0 0 0 / 80%) !important;
    }
    /* 【重要】スマホ版では絶対配置を解除し、タイトルの下にすっきり並べる */
    .hero-visual-frame {
      position: absolute;
      background: rgba(255, 255, 255, 1)!important;
      flex-direction: column;
      padding: 8px;
      gap: 0;
      order: 3; /* タイトルの下に配置 */
      box-shadow: 0 4px 15px rgba(0,0,0,0.15);
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 8px !important;
      padding: 10px 3% !important;
    }
    .hero-title .strong {
      font-size: 36px;
      text-shadow: 2px 2px 0 #21272d;
      -webkit-text-stroke: 1px #1d1d1d;
    }
    .hero-visual-ball,
    .hero-visual-text {
      white-space: normal !important;
      font-size: 13px !important;
      line-height: 1.6;
    }
    .hero-visual-ball { padding: 2px 10px; margin-bottom: 4px; }
    .hero-text-area {
      margin-top: 0;
      padding: 20px;
      order: 4;
    }
    /* スタッツ縦並び化 */
    .hero-stats-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }
    .hero-stat-box {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 20px;
      text-align: left;
    }
    .hero-stat-box .num { margin-top: 0; order: 2; }
    .hero-stat-box .lbl { margin-top: 0; order: 1; }
  
    /* ボタン縦並び化 */
    .hero-btns {
      flex-direction: column;
      gap: 10px;
      margin: 0 16px;
    }
    .hero-btns .btn {
      width: 100%;
      min-width: 100%;
    }
    .btn-sub {margin-left: 0;}
    .feature-card {max-width: 88%; margin: 0 auto; padding: 40px 0 24px;}
    .section-lead {text-align: left;}
    .solution-card .num-badge {top: -10px}
    .problem-card { padding: 8px 24px 24px; }
    .solution-photo-area img { width: 100%; height: 240px; }
    .solution-card { padding: 24px 24px 8px; }
    .service-card { padding: 24px; }
    .client-voice-grid { padding: 24px 16px 0; }
    .client-voice-images {width: 70%; margin: 0 auto;}
    .client-voice-grid .client-voice-title { line-height: 1.5; margin-top: 0; gap:0 }
    .client-voice-grid .client-voice-title:before,
    .client-voice-grid .client-voice-title:after { content: none; }
    .hero-stats-grid,
    .features-grid,
    .problem-grid,
    .services-grid,
    .strength-grid,
    .clients-summary-grid,
    .results-grid,
    .case-studies,
    .strength-card,
    .client-voice-grid,
    .process-timeline
     { grid-template-columns: 1fr; gap: 16px; }
    .case-body { padding: 16px 24px 8px; }
    .case-head h4 { margin-bottom: 6px; }
    .results-grid,
    .client-voice-grid { gap:0 }
    .client-voice-grid { border-radius: 16px; }
    .clients-badge-grid { grid-template-columns: repeat(2, 1fr); }
    .clients-summary-grid { padding: 16px; }
    .client-summary-box:not(:last-child) { 
      border-right: none; 
      border-bottom: 1px solid var(--white);
      padding-bottom: 16px; }
    .result-item {padding: 16px;}
    .result-item:not(:last-of-type) {
      border-right: none;
      border-bottom: 1px dashed #333;
    }
    .gallery-text {
      white-space: normal;
    }
    .gallery-grid { padding: 0; }
    .gallery-text { padding: 4px; line-height: 1.4; }
    .moldtype-compare-title { text-align: left; }
    .moldtype-history { padding: 24px; }
    /* テーブル全体の表示形式をブロックに変更 */
    .moldtype-compare-table, 
    .moldtype-compare-table thead, 
    .moldtype-compare-table tbody, 
    .moldtype-compare-table tr, 
    .moldtype-compare-table th, 
    .moldtype-compare-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .moldtype-compare-table tr:nth-child(even) td {background: none;}
    .moldtype-compare-table tr:nth-child(even) td:first-child {background: #f5f5f5;}

    /* ヘッダー（比較項目、ビク型、ピナクル型）はスマホでは非表示にする */
    .moldtype-compare-table thead {
        display: none;
    }

    /* 各行（tr）を1つのカードのように見せる */
    .moldtype-compare-table tr {
        margin-bottom: 20px;
        border: 1px solid #ddd;
        background: #fff;
    }

    /* 最初のマスの「比較項目（金型構造など）」をタイトル風に装飾 */
    .moldtype-compare-table td:first-child {
        background: #f5f5f5;
        font-weight: bold;
        border-bottom: 1px solid #ddd;
    }

    /* 2番目、3番目のマス（データ部分）にラベル風の装飾を付ける */
    .moldtype-compare-table td:nth-child(2)::before {
        content: "【ビク型（トムソン型）】 ";
        display: block;
        font-weight: bold;
        color: #555;
        font-size: 12px;
        margin-bottom: 4px;
    }
    .moldtype-compare-table td:nth-child(3)::before {
        content: "【ピナクル型】 ";
        display: block;
        font-weight: bold;
        color: #555;
        font-size: 12px;
        margin-bottom: 4px;
    }

    /* 最後の「プレス型との違い」だけは特殊なのでラベルを調整 */
    .moldtype-compare-table tr:nth-last-child(2) td:nth-child(2)::before {
        content: "【特徴】 ";
    }

    .moldtype-compare-table td {
        padding: 10px;
        border: none;
    }
    .strength-card { gap:0; }
    .strength-num { width: 170px; height: 170px; }
    .process-step .cut { width: 38%; }
    .process-step h3 {font-size: 17px; margin-top: 0;}
    .cta-section {padding: 64px 24px;}
    .cta-inner .lead {text-align: left;}


  }
/* ==========================================
   【安全仕様】スクロール連動フェードイン
   ========================================== */

/* 1. 画面外にあるときの初期状態 */
.scroll-item {
  opacity: 0;
  
  /* 【原因解消】はみ出しカットに強い relative の top で少し下げておく */
  position: relative !important;
  top: 30px; 
  
  /* なめらかに上へ引き上げるための設定 */
  transition: opacity 1.0s cubic-bezier(0.25, 1, 0.5, 1), 
              top 1.0s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 2. JSが正常に動き、画面内に入ってきた瞬間のゴール状態 */
.scroll-item.is-active {
  opacity: 1 !important;
  top: 0 !important;
}

/* ==========================================
   【JS連携用】毎回スクロール連動フェードイン
   ========================================== */

/* 1. 画面外にあるとき（初期状態 ＆ 上下にスクロールして外に出たとき） */
.scroll-item {
  opacity: 0;
  position: relative !important;
  top: 40px; /* 40px下に隠しておく */
  
  /* 消えるとき（戻るとき）は一瞬で戻るように transition を設定 */
  transition: opacity 0.4s ease-out, top 0.4s ease-out;
}

/* 2. 【最重要】画面内に入ってきた瞬間のゴール状態 */
.scroll-item.is-active {
  opacity: 1 !important;
  top: 0 !important;
  
  /* 現れるときは1秒かけてフワッと優雅に引き上げる */
  transition: opacity 1.0s cubic-bezier(0.25, 1, 0.5, 1), 
              top 1.0s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 3. カードが左から順にパラパラ動く時間差（ディレイ）設定 */
.scroll-item.is-active.delay-01 { transition-delay: 0.1s; }
.scroll-item.is-active.delay-02 { transition-delay: 0.25s; }
.scroll-item.is-active.delay-03 { transition-delay: 0.4s; }
.scroll-item.is-active.delay-04 { transition-delay: 0.55s; }