/* ========================================
   BizMow Front Page Styles
   トップページ（front-page.php）専用CSS
   ======================================== */

/* -----------------------------------------------------------
   親テーマ(Lightning)の干渉だけを狙って消す
----------------------------------------------------------- */
/* mainタグのID(#bizmow-front)を頭につけて優先順位を上げます */
#bizmow-front h2 {
    /* Lightningがよく付ける「左の線」や「下の線」を消す */
    border: none !important;
    /* 背景色がついている場合を想定して透明にする */
    background: transparent !important;
    /* Lightningのデフォルトの余白をリセット */
    padding: 0 !important;
    /* 疑似要素（::before, ::after）で装飾されている場合も消す */
}

#bizmow-front h2::before,
#bizmow-front h2::after {
    content: none !important;
}

#bizmow-front h3 {
    /* Lightningがよく付ける「左の線」や「下の線」を消す */
    border: none !important;
    /* 背景色がついている場合を想定して透明にする */
    background: transparent !important;
    /* Lightningのデフォルトの余白をリセット */
    padding: 0 !important;
    /* 疑似要素（::before, ::after）で装飾されている場合も消す */
}

#bizmow-front h3::before,
#bizmow-front h3::after {
    content: none !important;
}

#bizmow-front h4 {
    /* Lightningがよく付ける「左の線」や「下の線」を消す */
    border: none !important;
    /* 背景色がついている場合を想定して透明にする */
    background: transparent !important;
    /* Lightningのデフォルトの余白をリセット */
    padding: 0 !important;
    /* 疑似要素（::before, ::after）で装飾されている場合も消す */
}

#bizmow-front h4::before,
#bizmow-front h4::after {
    content: none !important;
}

/* ========================================
   Title Fade / Float Animation
   ======================================== */
.animated-title .trim {
  display: inline-block;
}

.animated-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    filter 0.6s ease;
  will-change: opacity, transform, filter;
}

.animated-title .char.is-show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, #fff7ed, #ffffff, #fefce8);
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}

.hero-circle-right {
  top: 80px;
  right: 40px;
  width: 288px;
  height: 288px;
  background: linear-gradient(to bottom right, rgba(251, 191, 36, 0.2), rgba(254, 240, 138, 0.2));
}

.hero-circle-left {
  bottom: 40px;
  left: 40px;
  width: 384px;
  height: 384px;
  background: linear-gradient(to top right, rgba(254, 240, 138, 0.2), rgba(251, 191, 36, 0.2));
}

.hero-shape {
  position: absolute;
  border-width: 2px;
  border-style: solid;
}

.hero-shape-square {
  top: 160px;
  left: 25%;
  width: 80px;
  height: 80px;
  border-color: rgba(251, 146, 60, 0.3);
  border-radius: 8px;
  transform: rotate(12deg);
}

.hero-shape-circle {
  bottom: 160px;
  right: 33%;
  width: 64px;
  height: 64px;
  border-color: rgba(253, 224, 71, 0.3);
  border-radius: 50%;
}

.hero-dotted-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.dotted-pattern {
  background-image: radial-gradient(circle, #FFB800 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  order: 2;
}

.hero-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: #383838;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-text {
  color: #383838;
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 20px;
  color: #F97040;
}

.hero-description {
  font-size: 16px;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-cta-button {
  padding: 12px 32px;
  text-align: center;
}

.hero-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  order: 1;
}

.hero-image {
  width: 100%;
  height: auto;
}

/*ヘッダー分トップ下げ*/
/* .pc-content {
  margin-top: 30px;
}
.sp-content {
  margin-top: 0;
} */


/* ========================================
   ws2: お悩み → 解決 セクション_20260329
   ======================================== */

/* --- 表示切替 --- */
.sp-only     { display: none; }
.pc-tab-only { display: block; }

.problem-upper {
  background-color: #ffffff;
  padding: 2rem 16px 3.5rem;
}


/* --- 上段：お悩みグリッド --- */
.ws2-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.ws2-p-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ws2-p-text {
  /* font-size: 18px; */
  font-size: clamp(16.5px, 4vw, 18px);
  font-weight: 700;
  color: #404040;
  line-height: 1.6;
  margin-bottom: 12px;
  /* min-height: 58px; */
  height: 4.8em;  /* ← 3行分（1.6 × 3） */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ws2-p-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  /* flex: 1; */
  align-items: center;
  margin-bottom: 1rem;
  height: 200px;
}

.ws2-p-img {
  max-height: 180px;
  height: auto;
  /* width: 100%; */
  width: auto;
  object-fit: contain;
}

/* --- 矢印行 --- */
.ws2-arrows-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 8px 0 2rem;
}

.ws2-arrow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
}

@keyframes ws2Bounce {
  0%, 100% { transform: translateY(0);    opacity: 1;   }
  50%       { transform: translateY(8px); opacity: 0.4; }
}

.ws2-arr  { display: block; width: 44px; height: 28px; }
.ws2-arr1 { animation: ws2Bounce 1.4s ease-in-out infinite; }
.ws2-arr2 { animation: ws2Bounce 1.4s ease-in-out 0.22s infinite; margin-top: -10px; }

/* --- PC・タブレット用 DX帯 --- */
.ws2-dx-label {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #383838;
  padding: 16px;
  margin: 4px 0;
  background: #ffffff;
}

/* --- スマホ用 DXブロック --- */
.ws2-dx-block {
  text-align: center;
  padding: 24px 16px 20px;
  /* margin-bottom: 24px; */
}

.ws2-dx-title {
  font-size: 22px;
  font-weight: 700;
  color: #383838;
  line-height: 1.4;
  margin-bottom: 8px;
}

.ws2-dx-accent {
  color: #FFB800;
}

.ws2-dx-sub {
  font-size: 13px;
  color: #666666;
  line-height: 1.7;
}

/* --- 下段：解決グリッド --- */
.ws2-solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ws2-s-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* スマホ用：各解決カード上の矢印（PCでは非表示） */
.ws2-sp-arrow {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
}

/* --- 解決カード --- */
.ws2-s-card {
  border: 2px solid #FFB800;
  border-radius: 8px;
  background: #ffffff;
  padding: 30px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  justify-content: flex-start;
}

.ws2-s-badge {
  display: inline-block;
  background: #F97040;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 20px;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.ws2-s-badge::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -60%;
  width: 40%;
  height: 120%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 70%
  );
  transform: skewX(-15deg);
  animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
  0%   { left: -60%; opacity: 0; }
  10%  { opacity: 1; }
  40%  { left: 130%; opacity: 1; }
  41%  { opacity: 0; }
  100% { left: 130%; opacity: 0; }
}

.ws2-s-title {
  /* font-size: 18px; */
  font-size: clamp(16.5px, 4vw, 18px);
  font-weight: 700;
  color: #383838;
  line-height: 1.6;
  margin-bottom: 12px;
  margin-top: 0.2em;
  min-height: 2.8em;
  height: 3.2em;        /* ← 2行分の高さに固定 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws2-s-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  display: flex;
  justify-content: center;
  max-height: 180px;        /* ← 画像エリアの高さを固定 */
  margin-bottom: 14px;
}

.ws2-s-img {
  width: 100%;
  height: auto;
  height: 180px;
  object-fit: contain;
  max-height: 180px;
}

/* --- チェックリスト --- */
.ws2-s-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  border-top: 1px dashed #e5e7eb;
  padding-top: 0px;
}

.ws2-s-list li {
  font-size: .8em;
  color: #404040;
  line-height: 1.6;
  padding: 6px 0 6px 22px;
  border-bottom: 1px dashed #e5e7eb;
  position: relative;
  min-height: 2.8em; /* ← この行を追加 */
    display: flex;            /* flexboxで縦中央揃え */
  align-items: center;      /* 文字を行の中央に配置 */
}

.ws2-s-list li:last-child {
  border-bottom: none;
}

.ws2-s-list li::before {
  content: "";
  position: absolute;
  transform: translateY(-50%) rotate(-45deg);
  left: 4px;
  top:50%;
  width: 9px;
  height: 5px;
  border-left: 2px solid #FFB800;
  border-bottom: 2px solid #FFB800;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

/* スマホ用：グレー矢印→DX→黄色矢印のまとめブロック */
.ws2-sp-dx-block {
  display: none; /* スマホ以外は非表示 */
}

.ws2-sp-dx-block .ws2-arrow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0;
}


/* ========================================
   Responsive: タブレット（640px〜1099px）
   ======================================== */
@media (min-width: 640px) and (max-width: 1099px) {
  .ws2-problem-grid  { grid-template-columns: repeat(3, 1fr); }
  .ws2-solution-grid { grid-template-columns: repeat(3, 1fr); }
  .ws2-dx-label      { font-size: 20px; }
}

/* ========================================
   Responsive: スマホ（max-width: 639px）
   ======================================== */
@media (max-width: 639px) {

  /* 表示切替 */
  .sp-only     { display: block; }
  .pc-tab-only { display: none !important; }

  /* お悩みグリッド：縦1列・間隔あり */
  .ws2-problem-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 0;
  }

  /* 解決グリッド：縦1列 */
  .ws2-solution-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ws2-s-wrap {
    margin-bottom: 0;
  }

  /* スマホ用：カード間の矢印を非表示 */
  .ws2-sp-arrow {
    display: none !important;
  }

  .ws2-s-title {
    /* font-size: 14px; */
    min-height: auto;
  }

  .ws2-s-list li {
    font-size: 13px;
  }
}

@media (max-width: 639px) {
  .ws2-sp-dx-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 8px 0;
  }
}

/* ========================================
   Features Section (REASON 01-04)
   ======================================== */
.features-section {
  padding: 2rem 0 3.5rem;
  background: linear-gradient(to bottom right, #fff7ed, #ffffff, #fefce8);
}

.features-subtitle {
  font-size: clamp(15.5px, 4vw, 18px);
  /* font-size: 1.2rem; */
  font-weight: 500;
  color: #383838;
  margin-top: 24px;
  margin-bottom: 8px;
  text-decoration: underline #F970408c 5px;
}

.features-lead {
  font-size: clamp(13px, 3vw, 16px);
  color: #383838;
  line-height: 1.8;
  max-width: 768px;
  margin: 0 auto;
}

.reason-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  /* margin-top: 80px; */
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .reason-list {
       gap: 30px;
  }  
  }

.reason-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}


.reason-card-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  padding: 32px;
}

.reason-image-col {
  width: 100%;
}

.reason-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 769px) {
.reason-image {
  width: 80%;
  max-width: 300px;
  margin: auto;
}
}

.reason-text-col {
  width: 100%;
}

.reason-label {
  font-size: 12px;
  font-weight: 500;
  color: #999999;
  letter-spacing: 0.1em;
  /* margin-bottom: 12px; */
  margin-bottom: 0px;
}


.reason-number {
  font-size: 80px;
  font-weight: 700;
  color: #FFB800;
  line-height: 1;
  margin-bottom: 16px;
}

.reason-title {
  font-size: 28px;
  font-weight: 700;
  color: #383838;
  line-height: 1.5;
  margin-bottom: 16px;
}

.reason-title span {
  color: #F97040;
  font-weight: bold;
  font-size: 1.15rem;
  line-height: 1.3;
  display: inline-block;
  padding-top: 1%;
}

.reason-description {
  font-size: 16px;
  color: #383838;
  line-height: 1.8;
}


/* ========================================
   Reason Card Slide-in Animation
   ======================================== */

/* 右から入れるカード */
.reason-card.slide-right {
  transform: translateX(60px);
}

/* 表示された後 */
.reason-card.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   Awards Section
   ======================================== */
.awards-section {
  /* padding: 88px 0 30px; */
  /* padding: 2rem 0 3.5rem; */
  padding: 2rem 0;
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}

.awards-lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: #666666;
  text-align: center;
}

.awards-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.award-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.06);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    opacity 0.8s ease;
  opacity: 0;
  transform: translateY(40px);
}

.award-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.award-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(31, 41, 55, 0.10);
  border-color: rgba(255, 184, 0, 0.45);
}

.award-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 36px;
  padding: 0 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #FA5858 0%, #F1931D 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.award-image-wrap {
  width: 100%;
  height: 140px;
  background: #fff;
  border: 1px solid #f2f2f2;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.award-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.award-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 700;
  color: #383838;
  text-align: center;
}

.award-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: #666666;
  text-align: center;
}

@media (min-width: 768px) {
  .awards-grid {
    grid-template-columns: repeat(3, 1fr);　/*2から1へ*/
  }
}

@media (min-width: 1100px) {
  .awards-grid {
    grid-template-columns: repeat(3, 1fr); /*4から3へ*/
  }
}

@media (max-width: 767px) {
  .awards-section {
    /* padding: 64px 0 0; */
    padding: 0;
  }

  .awards-grid {
    margin-top: 32px;
    gap: 16px;
  }

  .award-card {
    border-radius: 16px;
    padding: 20px 16px 18px;
  }

  .award-year {
    min-width: 72px;
    height: 32px;
    font-size: 16px;
    margin-bottom: 16px;
  }

  .award-image-wrap {
    height: 120px;
    margin-bottom: 16px;
  }

  .award-title {
    font-size: 18px;
  }

  .award-desc {
    font-size: 13px;
    line-height: 1.75;
  }
}

/* ========================================
   Other Action Section
   ======================================== */
.other-action-section {
  /* padding: 24px 0 1rem; */
  padding: 2rem 0;
  background: #ffffff;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.other-action-image:hover {
  transform: translateY(-6px);
  box-shadow:
    0 32px 80px rgba(31, 41, 55, 0.16),
    0 12px 24px rgba(31, 41, 55, 0.08);
}

.other-action-image-wrap {
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
  padding: 24px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(31, 41, 55, 0.08);
}


.other-action-image-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.other-action-image {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .other-action-section {
    padding: 16px 0px;
  }

  .other-action-image-wrap {
    transform: translateY(28px);
  }
}

/* ========================================
   CTA Section (invox 2-column)
   ======================================== */
.cta-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF5ED 0%, #FFEBDD 100%);
}

.cta-cow-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.cta-relative {
  position: relative;
  z-index: 10;
}

.cta-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  max-width: 960px;
  margin: 0 auto;
}

.cta-top-text {
  text-align: center;
  margin-bottom: 32px;
}

.cta-description {
  font-size: 16px;
  color: #383838;
  line-height: 1.8;
  margin-bottom: 24px;
}

.cta-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: #383838;
  line-height: 1.4;
}

.cta-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

.cta-col-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-col-icon {
  width: 192px;
  height: 192px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-col-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cta-col-title {
  font-size: 20px;
  font-weight: 700;
  color: #383838;
  margin-bottom: 16px;
}

.cta-col-desc {
  font-size: 14px;
  color: #383838;
  line-height: 1.8;
  margin-bottom: 24px;
  flex: 1;
}

.cta-col-btn {
  width: 100%;
  max-width: 240px;
  padding: 12px 32px;
  text-align: center;
  font-weight: 700;
}

.cta-col-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hide-sp {
  display: none;
}

/* ========================================
   CTA v3
   牛柄背景を活かしつつ、吹き出し・人物付き
   ======================================== */

.bm-cta3-section {
  position: relative;
  padding: 88px 16px 96px;
  overflow: visible;
  background-image: url('https://service.bizmow.com/wp-content/themes/lightning-child/assets/img/cow-pattern.png');
  background-size: 600px;
}

/* .bm-cta3-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://service.bizmow.com/wp-content/themes/lightning-child/assets/img/cow-pattern.png');
  background-size: 400px;
  background-repeat: repeat;
  opacity: 0.3; 
  z-index: -1;
} */

.bm-cta3-wrap {
  position: relative;
}

.bm-cta3-panel {
position: relative;
  border: 5px solid #FFB800;
  border-radius: 22px;
  /* 余白を参考に寄せる */
  background-color: #fff;
  padding: 70px 60px 90px;
  /* box-shadow: 0 10px 0 #efe1a0; */
}

.bm-cta3-inner {
  position: relative;
  z-index: 2;
}

.bm-cta3-head {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 2rem;
}

.bm-cta3-sublead {
  display: inline-block;
  margin: 0;
  color: #F97040;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  border-bottom: 3px wavy #F97040;
  padding-bottom: 8px;
  /* margin-bottom: 20px; */
}

.bm-cta3-title {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.4;
  font-weight: 700;
  /* color: #F97040; */
  letter-spacing: 0.02em;
}

.bm-cta-text {
  font-size: clamp(13px, 1.8vw, 16px);
  padding-top: 2rem;
}

.bm-cta3-title strong {
  /* color: #3f3535; */
  color: #F97040;
  font-weight: 800;
  position: relative;
}

.bm-cta3-title strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 6px;
  background: #F38C2566; /*透明度60％*/
  border-radius: 999px;
  z-index: -1;
}

.bm-cta3-free-badge {
  position: absolute;
  top: -30px;
  left: 26%;
  z-index: 4;
  width: 140px;
  height: 120px;
  background: #f4e276;
  border: 8px solid #f6efe6;
  border-radius: 50%;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 3rem;
}

.bm-cta3-free-badge::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: -16px;
  width: 36px;
  height: 36px;
  background: #f4e276;
  border-right: 8px solid #f6efe6;
  border-bottom: 8px solid #f6efe6;
  transform: rotate(32deg);
  border-bottom-right-radius: 10px;
}

.bm-cta3-free-badge span {
  color: #e05233;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.bm-cta3-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.bm-cta3-item {
  position: relative;
}

.bm-cta3-mini-bubble {
  position: absolute;
  top: -23px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 350px;
  max-width: calc(100% - 24px);
  background: #f8ebe6;
  color: #e05233;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 3;
}

.bm-cta3-mini-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  background: inherit;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.bm-cta3-mini-bubble--yellow {
  background: #FFEBDD;
}

.bm-cta3-btn {
  width: 100%;
  min-height: 100px;
  border-radius: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 20px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.4;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.bm-cta3-btn:hover {
  transform: translateY(-3px);
  opacity: 0.98;
  color: #FFF!important;
}

.bm-cta3-btn--orange {
  background: #fa5858;
  color: #ffffff;
  box-shadow: 0 8px 0 #e36a6a;
}

.bm-cta3-btn--yellow {
  background: #f1931d;
  color: #FFF;
  box-shadow: 0 8px 0 #dea258;
}

.bm-cta3-btn-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bm-cta3-btn-icon svg {
  width: 26px;
  height: 26px;
}

.bm-cta3-btn-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.bm-cta3-btn-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff7f3;
  color: #e14b32;
  font-size: 14px;
  font-weight: 800;
}

.bm-cta3-person {
  position: absolute;
  bottom: -128px;
  z-index: 1;
  margin: 0;
  pointer-events: none;
}

.bm-cta3-person img {
  display: block;
  width: 100%;
  height: auto;
}

.bm-cta3-person--left {
  width: 250px;
  bottom: -115px;
}

.bm-cta3-person--right {
  width: 250px;
  bottom: -115px;
  right: 30px;

}

.js-fadeup-cta {
  opacity: 0;
}

/* タブレット */
@media (max-width: 1023px) {
  .bm-cta3-panel {
    padding: 74px 28px 90px;
  }

  .bm-cta3-free-badge {
    left: 50%;
    transform: translateX(-50%);
    width: 148px;
    height: 132px;
  }

  .bm-cta3-sublead {
    font-size: 18px;
    margin-bottom: 0;
  }

  .bm-cta3-title {
    font-size: clamp(30px, 5vw, 48px);
  }

  .bm-cta3-mini-bubble {
    min-width: auto;
    width: calc(100% - 36px);
    font-size: 1rem;
    padding: 12px 14px;
  }

  .bm-cta3-btn {
    min-height: 88px;
    font-size: 1.1rem;
    padding: 22px 18px;
  }

  .bm-cta3-btn-label {
    font-size: 15px;
    height: 30px;
    min-width: 52px;
  }

  .bm-cta3-person--left {
    width: 220px;
    left: -14px;
    bottom: -114px;
  }

  .bm-cta3-person--right {
    width: 220px;
    right: -4px;
    bottom: -114px;
  }
}

/* スマホ */
@media (max-width: 820px) {
  .bm-cta3-section {
    padding: 64px 16px 84px;
  }

  .bm-cta3-panel {
    border-radius: 22px;
    box-shadow: 0 8px 0 rgba(191, 73, 43, 0.15);
    /* padding: 50px 14px 60px; */
    padding: 2rem 14px 4.5rem;
    border-width: 6px;
  }

  .bm-cta3-free-badge {
    top: -26px;
    width: 118px;
    height: 104px;
    border-width: 6px;
  }

  .bm-cta3-free-badge::after {
    width: 24px;
    height: 24px;
    right: 14px;
    bottom: -11px;
    border-right-width: 6px;
    border-bottom-width: 6px;
  }

  .bm-cta3-free-badge span {
    font-size: 22px;
  }

  .bm-cta3-head {
    margin-bottom: .5rem!important;
    padding-bottom: .5rem!important;
  }

  .bm-cta3-sublead {
    font-size: 14px;
    /* margin-bottom: 18px; */
    padding-bottom: 6px;
  }
  .bm-cta-text {
  /* font-size: .8rem; */
    margin-bottom: 30px;
}

  .bm-cta3-title {
    font-size: clamp(18px, 3.8vw, 32px);
    line-height: 1.3;
  }

  .bm-cta3-title strong::after {
    height: 6px;
    bottom: -5px;
  }

  .bm-cta3-buttons {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .bm-cta3-item + .bm-cta3-item {
    margin-top: 8px;
  }

  .bm-cta3-mini-bubble {
    position: static;
    transform: none;
    width: 70%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 8px;
    font-size: 11.5px;
    padding: 11px 12px;
    border-radius: 999px;
  }

  .bm-cta3-mini-bubble::after {
    /* display: none; */
  }

  .bm-cta3-btn {
    min-height: 72px;
    gap: 12px;
    font-size: 15px;
    padding: 18px 14px;
  }

  .bm-cta3-btn-icon,
  .bm-cta3-btn-icon svg {
    width: 24px;
    height: 24px;
  }

  .bm-cta3-btn-label {
    min-width: 46px;
    height: 28px;
    font-size: 13px;
    padding: 0 10px;
  }

  .bm-cta3-btn-text {
    gap: 8px;
  }

  .bm-cta3-person--left {
    width: 200px;
    left: -50px;
    bottom: -100px;
  }

  .bm-cta3-person--right {
    width: 200px;
    right: -50px;
    bottom: -100px;
  }
}

/* ========================================
   CTA v3 追加調整
   - SPでも吹き出しの▽を出す
   - CTA全体をふわっと表示
   - ボタンhover/影強化
   ======================================== */

/* CTA全体フェードアップ */
.js-fadeup-cta {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
  will-change: opacity, transform;
}

.js-fadeup-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ボタンhover強化 */
.bm-cta3-btn {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    opacity 0.28s ease,
    filter 0.28s ease;
}

.bm-cta3-btn--orange:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 0 #ba3723,
    0 18px 30px rgba(186, 55, 35, 0.22);
  filter: brightness(1.02);
}

.bm-cta3-btn--yellow:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 0 #d7bf2b,
    0 18px 30px rgba(215, 191, 43, 0.20);
  filter: brightness(1.01);
}

/* hover時にアイコンも少しだけ浮かせる */
.bm-cta3-btn:hover .bm-cta3-btn-icon {
  transform: translateY(-1px) scale(1.03);
  transition: transform 0.28s ease;
}

/* ボタンにフォーカスが来た時も見やすく */
.bm-cta3-btn:focus-visible {
  outline: 3px solid rgba(36, 50, 74, 0.22);
  outline-offset: 4px;
}

/* 吹き出し本体 */
.bm-cta3-mini-bubble {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* 吹き出しの▽ */
.bm-cta3-mini-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  background: inherit;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* SPでも▽を維持する */
@media (max-width: 767px) {
  .bm-cta3-mini-bubble {
    position: relative;
    top: 13px;
    left: 0;
    transform: none;
    display: block;
    width: fit-content;
    min-width: 0;
    margin: 0 auto 0px;
    font-size: 13px;
    line-height: 1.45;
    padding: 10px 14px;
    border-radius: 999px;
    text-align: center;
    white-space: normal;
  }

  .bm-cta3-mini-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 16px;
    height: 10px;
    background: inherit;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    display: block;
  }

  .bm-cta3-item {
    padding-top: 0;
  }

  .bm-cta3-btn {
    min-height: 74px;
  }
}
@media (max-width: 766px) {
    .bm-cta3-head {
    padding-bottom: 0!important;
  }
    .bm-cta3-buttons {
    gap: 2px;
  }
      .bm-cta-text {
        margin-bottom: 10px;
}
}

/* モーション軽減設定 */
@media (prefers-reduced-motion: reduce) {
  .js-fadeup-cta,
  .js-fadeup-cta.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bm-cta3-btn,
  .bm-cta3-btn:hover,
  .bm-cta3-btn--orange:hover,
  .bm-cta3-btn--yellow:hover,
  .bm-cta3-btn:hover .bm-cta3-btn-icon {
    transition: none;
    transform: none;
    filter: none;
  }
}

/* ========================================
   Use Cases Section (12 categories)
   ======================================== */
.usecases-section {
  padding: 64px 0;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.usecases-grid-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.uc-card {
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.uc-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.uc-card-blue    { background: linear-gradient(to bottom right, #eff6ff, #ffffff); }
.uc-card-green   { background: linear-gradient(to bottom right, #f0fdf4, #ffffff); }
.uc-card-purple  { background: linear-gradient(to bottom right, #faf5ff, #ffffff); }
.uc-card-pink    { background: linear-gradient(to bottom right, #fdf2f8, #ffffff); }
.uc-card-yellow  { background: linear-gradient(to bottom right, #fefce8, #ffffff); }
.uc-card-indigo  { background: linear-gradient(to bottom right, #eef2ff, #ffffff); }
.uc-card-teal    { background: linear-gradient(to bottom right, #f0fdfa, #ffffff); }
.uc-card-orange  { background: linear-gradient(to bottom right, #fff7ed, #ffffff); }
.uc-card-cyan    { background: linear-gradient(to bottom right, #ecfeff, #ffffff); }
.uc-card-rose    { background: linear-gradient(to bottom right, #fff1f2, #ffffff); }
.uc-card-violet  { background: linear-gradient(to bottom right, #f5f3ff, #ffffff); }
.uc-card-gray    { background: linear-gradient(to bottom right, #f9fafb, #ffffff); }

.uc-card-inner {
  padding: 24px;
}

.uc-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #383838;
  text-align: center;
  margin-bottom: 16px;
  min-height: 48px;
}

.uc-card-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 8px;
}

.uc-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uc-card-desc {
  font-size: 14px;
  color: #666666;
  text-align: center;
}

/* Outline Button */
.outline-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 500;
  color: #FA5858;
  background: #ffffff;
  border: 2px solid #FA5858;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.outline-button:hover {
  background: #FA5858;
  color: #ffffff;
}

/* ========================================
   UseCases Pattern3 Scroll Fade Up
   ======================================== */

.usecases-p3-block,
.usecases-p3-arrow-connector,
.usecases-p3-link-wrap {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.usecases-p3-block.is-visible,
.usecases-p3-arrow-connector.is-visible,
.usecases-p3-link-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .usecases-p3-block,
  .usecases-p3-arrow-connector,
  .usecases-p3-link-wrap,
  .usecases-p3-block.is-visible,
  .usecases-p3-arrow-connector.is-visible,
  .usecases-p3-link-wrap.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ========================================
   Use Cases Linked Section
   ======================================== */
.usecases-linked-section {
  padding: 88px 0 96px;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 0, 0.06), transparent 24%),
    linear-gradient(180deg, #fcfcfd 0%, #f7f8fb 100%);
  border-bottom: 1px solid #e5e7eb;
}

.usecases-linked-wrap {
  margin-top: 48px;
}

.usecases-group,
.usecases-connector {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.usecases-group.is-visible,
.usecases-connector.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.usecases-group-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.usecases-group-heading--blue .usecases-group-icon {
  background: linear-gradient(135deg, #5cb6ff 0%, #3e8ff3 100%);
}

.usecases-group-heading--green .usecases-group-icon {
  background: linear-gradient(135deg, #87d79d 0%, #59b47d 100%);
}

.usecases-group-icon {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.usecases-group-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  color: #24324a;
}

.usecases-cards-row {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.usecases-cards-row--top {
  grid-template-columns: 1fr;
}

.usecases-cards-row--bottom {
  grid-template-columns: 1fr;
}

.usecase-linked-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(221, 227, 237, 0.95);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(31, 41, 55, 0.08);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  backdrop-filter: blur(6px);
  height: 100%;
}

.usecase-linked-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 54px rgba(31, 41, 55, 0.12);
  border-color: rgba(255, 184, 0, 0.45);
}

.usecases-cards-row.usecases-cards-row--bottom .usecase-linked-card:hover {
  border-color: #2fa3bd;
    box-shadow: 0 24px 54px rgba(35, 146, 171, 0.2);
}


.usecase-linked-card-inner {
  padding: 24px 24px 28px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.usecase-linked-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.usecase-linked-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.usecase-linked-title {
  margin: 0 0 10px;
  /* font-size: 28px; */
  font-size: clamp(16px, 2vw, 28px);
  line-height: 1.4;
  font-weight: 700;
  /* color: #24324a; */
  /* min-height: 2.8em; 2行分くらい確保  */
  min-height: 2em;
}


.usecase-linked-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #5d6778;
}

.usecases-connector {
  position: relative;
  text-align: center;
  padding: 28px 0 34px;
}

.usecases-dotted-line {
  width: min(900px, 92%);
  margin: 0 auto 22px;
  border-top: 4px dotted #b9d7ff;
}

.usecases-dotted-line--bottom {
  border-top-color: #bddfc4;
}

.usecases-plus-circle,
.usecases-link-circle {
  width: 108px;
  height: 108px;
  margin: 0 auto 24px;
  border-radius: 9999px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7d1de;
  font-size: 64px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
  border: 1px solid #e9eef5;
}

.usecases-link-circle {
  font-size: 28px;
  color: #4a5565;
  letter-spacing: 0.08em;
}

.usecases-connector-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 2;
  color: #485465;
}

/* --- 丸矢印バッジ --- */
.usecase-linked-card--linked {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.uc-arrow-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: #E96B2E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.usecase-linked-card--linked:hover .uc-arrow-badge {
  transform: scale(1.15);
  background: #d05820;
}

.uc-arrow-badge svg {
  width: 12px;
  height: 12px;
  display: block;
}

/* PC */
@media (min-width: 768px) {
  .usecases-cards-row--top {
    grid-template-columns: repeat(3, 1fr);
  }

  .usecases-cards-row--bottom {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* SP */
@media (max-width: 767px) {
  .usecases-linked-section {
    padding: 72px 0 80px;
  }

  .usecases-group-title {
    font-size: 28px;
  }

  .usecase-linked-image {
    height: 150px;
  }

  .usecase-linked-title {
    /* font-size: 22px; */
      font-size: clamp(20px, 4vw, 22px);
  }

  .usecase-linked-desc {
    /* font-size: 15px; */
    font-size: 13px;
  }

  .usecases-plus-circle,
  .usecases-link-circle {
    width: 88px;
    height: 88px;
    font-size: 48px;
  }

  .usecases-link-circle {
    font-size: 22px;
  }

  .usecases-connector-text {
    font-size: 16px;
    line-height: 1.9;
  }
}

/* 新しい対応業務セクションのスタイル (UseCasesPattern3) */

.usecases-pattern3-section {
  padding: 2rem 0;
  background-color: #ffffff;
  /* border-bottom: 1px solid #e5e7eb; */
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right, #fff7ed, #ffffff, #fefce8);
}

/* ヘッダーエリア */
.usecases-p3-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 10;
}

.usecases-p3-label {
  font-size: 16px;
  font-weight: 500;
  color: #FA5858;
  margin-bottom: 4px;
}

.usecases-p3-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: #383838;
  margin-bottom: 16px;
  line-height: 1.3;
}

.usecases-p3-divider {
  width: 96px;
  height: 4px;
  background-color: #FFB800;
  margin: 0 auto 24px;
}

/* 共通ブロックの枠組み */
.usecases-p3-block {
  width: 100%;
  position: relative;
  z-index: 10;
  /* border-radius: 40px; */
  /* border-width: 4px; */
  /* border-style: solid; */
  /* padding: 56px 40px 40px;  */
  padding: 2rem 40px 3.5rem; 
  /* 上部のパディングを増やして帯と被らないように */
  /* box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); */
}

/* 丸みを帯びたタイトル帯 */
.usecases-p3-block-title-badge {
  position: absolute;
  top: -28px; /* 枠の真上に半分重なるように */
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  padding: 12px 40px;
  border-radius: 9999px; /* 丸みを帯びた形 */
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 20;
}

/* =========================================
   カスタマーサポート支援 (#febc69)
   ========================================= */
.usecases-p3-block-cs {
  /* margin-top: 32px; */
  margin-top: 1rem;
  margin-bottom: 0;
  border-color: #febc69;
  background: linear-gradient(to bottom right, #fff7ed, #ffffff, #fefce8);
}

.usecases-p3-badge-cs {
  background: linear-gradient(135deg, #ffb800, #ffd86b);
  color: #fff;
}

.usecases-p3-card-cs {
  border-color: #fde6c8;
}

.usecases-p3-title-cs {
  color: #d49a42;
}

.usecases-p3-block-cs .usecase-linked-card:hover {
  border-color: #ffb800;
  box-shadow: 0 24px 54px rgba(255, 184, 0, 0.25);
}

/* =========================================
   つなぎの矢印デザイン
   ========================================= */
.usecases-p3-arrow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px; /* 矢印の間隔 */
  margin: 32px 0;
  position: relative;
  z-index: 20;
  pointer-events: none;
}

.usecases-p3-arrow-svg {
  width: 48px;
  height: 16px;
}


/* ========================================
   Arrow Connector Animation
   ======================================== */

/* 初期状態 */
.usecases-p3-arrow-connector {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 表示された状態 */
.usecases-p3-arrow-connector.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 矢印本体 */
.usecases-p3-arrow-svg {
  transition: transform 0.6s ease;
}

/* 表示後の軽い動き */
.usecases-p3-arrow-connector.is-visible .usecases-p3-arrow-svg {
  animation: arrowFloat 2.4s ease-in-out infinite;
}

/* ふわふわ浮くアニメーション */
@keyframes arrowFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(6px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* ほんのり光る */
.usecases-p3-arrow-connector::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.usecases-p3-arrow-connector.is-visible::after {
  opacity: 1;
}

/* =========================================
   バックオフィス支援 (#8ac5d2)
   ========================================= */
.usecases-p3-block-bo {
  margin-top: 3rem;
  margin-bottom: 64px;
  /* border-color: #8ac5d2; */
  border-color: #2fa3bd;
  background: linear-gradient(to bottom right, #f0f8fa, #ffffff, #e6f4f7);
}

.usecases-p3-badge-bo {
  /* background-color: #8ac5d2; */
  background: linear-gradient(135deg, #2fa3bd, #6dd5ed);
}

.usecases-p3-card-bo {
  border-color: #d4ebf0;
}

.usecases-p3-title-bo {
  color: #5c9fac;
}

/* =========================================
   連携（下部）ブロック
   ========================================= */
.usecases-p3-link-wrap {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 48px;
  padding: 8px; /* md: 12px */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.usecases-p3-link-wrap:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.usecases-p3-link-inner {
  background-color: #fafafa;
  border-radius: 40px;
  padding: 56px;
  position: relative;
  overflow: hidden;
}

.usecases-p3-link-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 32px;
  margin-top: 16px;
  position: relative;
  z-index: 10;
}

/* 連携：担当者プロフィール丸枠 */
.usecases-p3-profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 240px;
}

.usecases-p3-profile-circle {
  width: 333px;
  height: 333px;
  border-radius: 50%;
  border-width: 4px;
  border-style: solid;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
  .usecases-p3-profile-circle {
    width: 180px !important;
    height: 180px !important;
    min-width: 180px !important;
    min-height: 180px !important;
    flex: 0 0 180px !important;
  }

  .usecases-p3-profile-circle img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
}

.usecases-p3-profile-circle-cs {
  border-color: #febc69;
  background: linear-gradient(to bottom right, #fff7ed, #fefce8);
}

.usecases-p3-profile-circle-bo {
  border-color: #8ac5d2;
  background: linear-gradient(to bottom right, #f0f8fa, #e6f4f7);
}

.usecases-p3-profile-img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background-color: #ffffff;
}

.usecases-p3-profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* プロフィール下の丸み帯ラベル */
.usecases-p3-profile-badge {
  position: absolute;
  bottom: -20px;
  color: #ffffff;
  padding: 10px 32px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  z-index: 10;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.usecases-p3-profile-badge-cs {
  background-color: #febc69;
}

.usecases-p3-profile-badge-bo {
  background-color: #8ac5d2;
}

/* 連携の双方向矢印 */
.usecases-p3-link-arrow {
  display: none; /* Mobileでは非表示 */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 10;
}

/* 連携テキスト */
.usecases-p3-link-text-wrap {
  text-align: center;
  margin-top: 64px;
  position: relative;
  z-index: 10;
}

.usecases-p3-link-text {
  font-size: 20px;
  font-weight: 700;
  color: #383838;
  line-height: 1.8;
  letter-spacing: 0.025em;
}

/* =========================================
   レスポンシブ対応
   ========================================= */
@media screen and (min-width: 768px) {
  .usecases-p3-link-flex {
    flex-direction: row;
    gap: 48px;
  }
  .usecases-p3-link-arrow {
    display: flex;
  }
}

@media screen and (min-width: 1024px) {
  .usecases-p3-link-flex {
    gap: 130px;
  }
}

@media screen and (max-width: 768px) {
  .usecases-p3-grid {
    grid-template-columns: 1fr;
  }
  
  .usecases-p3-block {
    /* padding: 48px 24px 32px; */
    padding: 1rem 24px;
    /* border-radius: 32px; */
  }

  .usecases-p3-block-title-badge {
    font-size: 20px;
    padding: 10px 32px;
    top: -20px;
  }

  .usecases-p3-link-inner {
    padding: 32px;
    border-radius: 32px;
  }

  .usecases-p3-profile {
    width: 220px;
  }

  .usecases-p3-link-text {
    font-size: 18px;
  }  
}

/* ========================================
   UseCases Pattern3 Scroll Fade Up
   ======================================== */

.usecases-p3-block,
.usecases-p3-arrow-connector,
.usecases-p3-link-wrap {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.usecases-p3-block.is-visible,
.usecases-p3-arrow-connector.is-visible,
.usecases-p3-link-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .usecases-p3-block,
  .usecases-p3-arrow-connector,
  .usecases-p3-link-wrap,
  .usecases-p3-block.is-visible,
  .usecases-p3-arrow-connector.is-visible,
  .usecases-p3-link-wrap.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================
   Case Studies Section
   ======================================== */
.case-studies-section {
  /* padding: 80px 0; */
  padding: 2rem 0 3.5rem;
  background-color: #f9fafb;
}

.section-subtitle {
  font-size: 16px;
  color: #383838;
  margin-top: 16px;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.case-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.3s ease;
}

.case-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.case-image-area {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px)  {
.case-image-area {
  height: 25rem;
} 
}
@media  (max-width: 425px)  {
.case-image-area {
  height: 13rem;
} 
}


.case-image-gray {
  background-color: #d1d5db;
}

.case-logo-placeholder {
  font-size: 16px;
  color: #6b7280;
}

.case-body {
  padding: 24px;
}

.case-meta {
  margin-bottom: 16px;
}

.case-industry {
  font-size: 16px;
  color: #9ca3af;
  display: block;
  margin-bottom: 4px;
}

.case-title {
  font-size: 16px;
  font-weight: 600;
  color: #383838;
}

.case-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.case-detail-label {
  font-size: 16px;
  font-weight: 600;
  color: #383838;
  display: block;
  margin-bottom: 4px;
}

.case-detail-text {
  font-size: 12px;
  color: #383838;
}

.case-link {
  font-size: 16px;
  color: #F97040;
  font-weight: 500;
  transition: color 0.3s ease;
}

.case-link:hover {
  color: #e65f30;
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing-section {
  /* padding: 88px 0; */
  padding: 2rem 0 3.5rem;
  background: #ffffff;
}

.pricing-panel {
  margin-top: 40px;
  background: linear-gradient(180deg, #f8f8f8 0%, #f3f3f3 100%);
  border-radius: 56px;
  /* padding: 56px 40px; */
  padding: 2rem 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.pricing-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 24px 28px;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.05);
  text-align: center;
  align-self: stretch;
}

.pricing-box-title {
  margin: 0 0 12px;
  /* font-size: 28px; */
  font-size: 20px;
  font-weight: 700;
  color: #24324a;
  line-height: 1.4;
}

.pricing-box-line {
  width: 100%;
  height: 1px;
  background: #bdbdbd;
  margin: 0 0 22px;
}

.pricing-price-row {
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pricing-price-label {
  /* font-size: 24px; */
  font-size: 18px;
  font-weight: 700;
  color: #24324a;
  line-height: 1.2;
  padding-bottom: 10px;
}

.pricing-price-main {
  font-size: clamp(40px, 4vw, 50px);
  font-weight: 800;
  line-height: 1;
  color: #f47b20;
  letter-spacing: 0.01em;
}

.pricing-price-unit {
  /* font-size: 28px; */
  font-size: 18px;
  font-weight: 700;
  color: #24324a;
  line-height: 1.2;
  padding-bottom: 10px;
}

.pricing-plus {
  width: 55px;
  height: 55px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f7a11e 0%, #f47b20 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  /* font-weight: 500; */
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(244, 123, 32, 0.25);
}

.pricing-usage-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.pricing-usage-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #24324a;
  /* font-size: 24px; */
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  /* padding-bottom: 10px; */
}

.pricing-usage-right {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.pricing-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
}


/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .pricing-section {
    /* padding: 72px 0; */
  }

  .pricing-panel {
    border-radius: 36px;
    padding: 40px 24px;
    gap: 18px;
  }

  .pricing-box {
    padding: 28px 18px 24px;
  }

  .pricing-box-title {
    /* font-size: 24px; */
    font-size: 20px;
  }

  .pricing-price-label,
  .pricing-usage-left,
  .pricing-price-unit {
    font-size: 17px;
  }

  .pricing-plus {
    width: 45px;
    height: 45px;
    font-size: 30px;
  }
}

/* Smartphone */
@media (max-width: 767px) {
  .pricing-section {
    /* padding: 56px 0; */
  }

  .pricing-panel {
    grid-template-columns: 1fr;
    border-radius: 28px;
    padding: 28px 16px;
    gap: 16px;
  }

  .pricing-box {
    padding: 24px 16px 20px;
    border-radius: 16px;
  }

  .pricing-box-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .pricing-box-line {
    margin-bottom: 16px;
  }

  .pricing-price-label,
  .pricing-usage-left {
    font-size: 14px;
    /* padding-bottom: 6px; */
  }

  .pricing-price-main {
    font-size: clamp(40px, 11vw, 52px);
  }

  .pricing-price-unit {
    font-size: 14px;
    padding-bottom: 6px;
  }

  .pricing-plus {
    margin: 0 auto;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .pricing-note {
    font-size: 12px;
    line-height: 1.7;
  }
}

/* ========================================
   Pricing CTA
   ======================================== */

.pricing-cta {
  margin-top: 40px;
  text-align: center;
}


.pricing-cta-text {
  font-size: clamp(11px, 3.2vw, 16px);
  font-weight: 600;
  color: #24324a;
  margin-bottom: 20px;
}

/* ボタン横並び */
.pricing-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* 共通ボタン */
.cta-button {
  position: relative;
  display: inline-block;
  padding: 18px 32px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 9999px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* メイン（見積もり） */
.cta-primary {
  /* background: linear-gradient(135deg, #f1931d, #fa5858); */
  background: #fa5858;
  box-shadow: 0 12px 28px rgba(250, 88, 88, 0.25);
}

/* サブ（詳細） */
.cta-secondary {
  /* background: linear-gradient(135deg, #f1931d, #fa5858); */
  background:  #f1931d;
  opacity: 0.9;
  box-shadow: 0 10px 24px rgba(250, 88, 88, 0.18);
}

/* ホバー */
.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(250, 88, 88, 0.35);
  color: #ffe9cd !important;
}

/* キラッエフェクト */
.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
}

.cta-button:hover::before {
  animation: shine 0.8s ease;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 130%;
  }
}

/* ========================================
   Responsive
   ======================================== */

/* スマホ */
@media (max-width: 767px) {
  .pricing-cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .cta-button {
    width: 100%;
    font-size: 16px;
    padding: 16px;
  }
}

.js-pricing-cta-fade .cta-button {
  opacity: 0;
  transform: translateY(24px);
}

.js-pricing-cta-fade.is-visible .cta-button {
  animation: ctaFloatUp 0.8s ease forwards;
}

.js-pricing-cta-fade.is-visible .cta-button:nth-child(1) {
  animation-delay: 0.1s;
}

.js-pricing-cta-fade.is-visible .cta-button:nth-child(2) {
  animation-delay: 0.22s;
}

@keyframes ctaFloatUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Flow Section (Carousel)
   ======================================== */
.flow-section {
  /* padding: 80px 0; */
  padding: 2rem 0 3.5rem;
  background-color: #f9fafb;
}

.flow-carousel {
  position: relative;
  overflow: hidden;
}

.flow-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 24px;
}

.flow-card {
  flex-shrink: 0;
  width: 100%;
}

.flow-card-inner {
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 24px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
  height: 100% !important; /* 全てのカードを同じ高さに */
}

.flow-card-inner:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}


.flow-card-number {
  text-align: center;
  font-size: 56px;
  font-weight: 700;
  color: #FFB800;
  line-height: 1;
  margin-bottom: 16px;
}

.flow-card-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #383838;
  line-height: 1.4;
  min-height: 56px;
  margin-bottom: 24px;
}

.flow-card-image {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
   flex-grow: 1; /* 画像部分が伸び縮みして、高さを揃える役割をする */
    align-items: center;
  height: 0px !important;         /* ← ここの数値ですべてが決まります */
  min-height: 100px !important;
 }

 /* ========================================
   導入の流れ：文字の開始位置を統一
   ======================================== */

/* 画像エリアの高さを固定して、テキストの開始地点を揃える */

/* 画像自体のサイズを枠内に収める */
.flow-card-image img {
    max-height: 100% !important;
    width: auto !important;
    object-fit: contain !important;
}
  
  .flow-card-image img {
  width: 144px;
  height: 144px;
  object-fit: contain;
}

.flow-card-desc {
  flex: 1;
  font-size: 14px;
  color: #383838;
  line-height: 1.8;
  text-align: center;
  display: block !important;
  margin-top: 0 !important;         /* 上の余白をリセットして位置を固定 */
}

/* ========================================
   導入の流れ（Flow）：横スクロール完全修正版
   1024px以下の全デバイス（タブレット・スマホ）共通
   ======================================== */

@media screen and (max-width: 1024px) {
  /* 1. 外枠：はみ出したカードを隠さず、スワイプ可能にする */
  #flow-carousel {
    overflow-x: auto !important; /* 横スクロールを許可 */
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch; /* 指に吸い付くようなスクロール */
    padding: 20px 0 40px !important; /* スクロールバー用の下余白 */
  }

  /* 2. トラック：絶対に折り返さず、一列に強制する */
  #flow-track {
    display: flex !important; /* 横並びを強制 */
    flex-wrap: nowrap !important; /* 絶対に2行にしない */
    width: max-content !important; /* カード6枚分の幅を自動確保 */
    transform: none !important; /* JSの移動命令をリセット */
    gap: 10px !important;
    padding: 0 20px !important; /* 両端の余白 */
  }

  /* 3. 各カード：幅を固定し、06まで消さずに表示する */
  .flow-card {
    flex: 0 0 280px !important; /* 1枚を280pxで固定し、縮ませない */
    width: 280px !important;
    display: block !important;
    margin-bottom: 0 !important; /* 縦並び用の余白を削除 */
  }

  /* 5. 不要なボタンとドットをスマホでは隠す（スワイプ優先のため） */
  .flow-nav-btn,
  .flow-dots {
    display: none !important;
  }

  /* 6. スクロールバーをオレンジ色で見えやすくする */
  #flow-carousel::-webkit-scrollbar {
    height: 6px;
  }
  #flow-carousel::-webkit-scrollbar-thumb {
    background: #FFB800; /* BizMowオレンジ */
    border-radius: 10px;
  }
}

/* 画面のさらに狭いスマホ向けの微調整 */
@media screen and (max-width: 480px) {
  .flow-card {
    flex: 0 0 250px !important; /* 幅を250pxに少し縮める */
    width: 250px !important;
  }
}

/* Nav Buttons */
.flow-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FA5858 0%, #F1931D 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  z-index: 10;
  transition: opacity 0.3s ease;
}

.flow-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.flow-nav-prev {
  left: -8px;
}

.flow-nav-next {
  right: -8px;
}

.flow-nav-btn svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

/* Dots */
.flow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.flow-dot {
  height: 8px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #D1D5DB;
  width: 8px;
  padding: 0;
}

.flow-dot.active {
  background: linear-gradient(135deg, #FA5858 0%, #F1931D 100%);
  width: 32px;
}

/* ========================================
   FAQ Section (Q circle + expand)
   ======================================== */
.faq-section {
  /* padding: 80px 0; */
  padding: 2rem 0 3.5rem;
  background: linear-gradient(to bottom right, #fff7ed, #ffffff, #fefce8);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-expanded {
  margin-top: 48px;
}

.faq-qa-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.faq-qa-row {
  display: flex;
  gap: 16px;
}

.faq-q-circle {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FA5858 0%, #F1931D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-q-circle span {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.faq-qa-content {
  flex: 1;
}

.faq-q-text {
  font-size: 18px;
  font-weight: 700;
  color: #383838;
  margin-bottom: 12px;
}

.faq-a-text {
  font-size: 16px;
  color: #666666;
  line-height: 1.8;
}

/* ========================================
   FAQ Accordion Ver.
   ======================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.faq-item {
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: #ffffff;
  border: none;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  background: #fffdf7;
}

.faq-question-text {
  flex: 1;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
  color: #383838;
}

.faq-q-circle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #FA5858 0%, #F1931D 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;             /* ← これ超重要 */
  padding-top: 1px;   /* ← 微調整（好みで0〜2px） */
}

.faq-q-circle span {
  transform: translateY(-1px);
}

.faq-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  color: #FFB800;
  transition: transform 0.3s ease;
}

.faq-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: currentColor;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #fffdf7;
  border-top: 1px solid #fff2cc;
}

.faq-answer-inner {
  display: flex;
  gap: 16px;
  padding: 20px 24px 24px;
}

.faq-a-label {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 9999px;
  background: #FFB800; /* Aを#FFB800 */
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.faq-a-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #555555;
  flex: 1;
}

@media (max-width: 767px) {
  .faq-question {
    align-items: flex-start;
    padding: 18px 16px;
  }

  .faq-question-text {
    font-size: 14px;
  }

  .faq-answer-inner {
    padding: 16px;
  }

  .faq-q-circle,
  .faq-a-label {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 10px;
  }
}



/* ========================================
   Company Section
   ======================================== */
.company-section {
  padding: 64px 0;
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.company-info-list {
  display: flex;
  flex-direction: column;
}

.company-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
}

.company-row:last-child {
  border-bottom: none;
}

.company-label {
  font-size: 16px;
  font-weight: 600;
  color: #383838;
}

.company-value {
  font-size: 16px;
  color: #383838;
}

.company-link {
  color: #FA5858;
  transition: text-decoration 0.3s ease;
}

.company-link:hover {
  text-decoration: underline;
}


/* ========================================
   Responsive: Tablet (sm: 640px+)
   ======================================== */
@media (min-width: 640px) {
  .hero-cta-wrap {
    flex-direction: row;
  }

  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usecases-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-two-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .hide-sp {
    display: inline;
  }
}



/* ========================================
   Responsive: Tablet-Large (md: 768px+)
   ======================================== */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    order: 1;
  }

  .hero-image-wrap {
    order: 2;
  }

  .cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Flow: show 3 cards at once */
  .flow-card {
    width: calc((100% - 48px) / 3);
  }

  .flow-nav-prev {
    left: -24px;
  }

  .flow-nav-next {
    right: -24px;
  }

  .company-row {
    grid-template-columns: 30% 1fr;
    gap: 16px;
  }

  /* Reason cards: horizontal layout */
  .reason-card-inner {
    flex-direction: row;
    padding: 48px;
  }

  .reason-image-col {
    width: 40%;
    flex-shrink: 0;
  }

  .reason-text-col {
    width: 60%;
  }

  .reason-card-reverse {
    flex-direction: row-reverse;
  }
  
}

/* ========================================
   Responsive: Desktop (lg: 1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .solution-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .usecases-grid-3col {
    grid-template-columns: repeat(3, 1fr);
  }

}


/* ========================================
   Responsive: Mobile (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 18px;
  }

  .hero-description {
    font-size: 14px;
  }

  .reason-title {
    font-size: 1.4rem;
  }

  .reason-number {
    /* font-size: 60px; */
    font-size: clamp(45px, 15vw, 60px);
  }

  .cta-card {
    padding: 32px 24px;
  }

  .cta-col-icon {
    width: 144px;
    height: 144px;
  }

  .flow-card-title {
    font-size: clamp(14px, 4.2vw, 18px);
    min-height: 80px;
    margin-bottom: 20px;
  }

  .flow-card-number {
    font-size: 48px;
  }

  .flow-card-image img {
    width: 128px;
    height: 128px;
  }


  .problem-upper {
    padding: 2rem 0 0;
  }

  .service-name-wrap {
    padding: 0;
  }

  .solution-upper {
  padding: 30px 16px 64px;
}

.reason-list {
  margin-top: 3rem;
}

.cta-title {
  margin: 2rem auto 1rem;
}

.cta-two-col {
  margin-top: 2rem;
}

.usecases-section {
  padding: 3rem 0;

}

.case-studies-section {
  /* padding: 3rem 0; */
}

.flow-section {
  /* padding: 3rem 0; */
  
}

.faq-section {
  /* padding: 3rem 0; */
}
.company-section {
  padding: 3rem 0;
}

  .company-info-list {
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
  }

  .company-row {
    display: block; /* gridを解除して縦並びに */
    padding: 20px 16px;
    border-bottom: 1px solid #e5e7eb;
  }

  .company-label {
    display: block;
    font-size: 14px;
    color: #FA5858; /* ラベルをBizMowカラーに */
    margin-bottom: 8px;
    font-weight: 700;
  }

  .company-value {
    display: block;
    font-size: 16px;
    line-height: 1.6;
    padding-left: 0;
  }

  .flow-carousel-track {
    display: block; /* 横並びを解除 */
    width: 100% !important; /* スクリプトの計算を上書き */
    transform: none !important;
  }

  .flow-card {
    width: 100% !important;
    margin-bottom: 40px; /* カード同士の間隔 */
    padding: 0 16px;
  }

  /* ナビゲーションの矢印とドットをスマホでは隠す */
  .flow-nav-btn, .flow-dots {
    display: none !important;
  }

  .flow-card-inner {
    padding: 22px 20px;
    background: #ffffff;
    border: 1px solid #FFEBDD;
    box-shadow: 0 4px 20px rgba(243, 140, 37, 0.1);
    min-height: auto;
  }
  

  .flow-card-number {
    font-size: 40px;
    margin-bottom: 10px;
    text-align: center;
  }


  .flow-card-image img {
    margin: 0 auto 20px;
    display: block;
    max-width: 200px; /* 画像が大きすぎないように調整 */
  }
  
  
.faq-qa-card {
    padding: 20px 16px;
    margin-bottom: 16px;
  }

  .faq-q-circle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 18px;
  }

  .faq-q-text {
    font-size: 16px;
    line-height: 1.5;
    padding-top: 4px;
  }

  .faq-a-text {
    font-size: 14px;
    margin-top: 12px;
    padding-left: 0; /* Qの円の真下にテキストが来るように */
  }

  /* 「もっと見る」ボタンの幅 */
  .faq-section .outline-button {
    width: 90%;
    max-width: 300px;
}
 .sp-content {
  display: block;
 }
 .pc-content {
  display: none;
 }

}


@media (min-width: 768px) and (max-width: 1023px) {
  /* Flow: show 2 cards at once (タブレット) */
  .flow-card {
    width: calc((100% - 24px) / 2);
  }

  .flow-nav-prev {
    left: 0px;
  }

  .flow-nav-next {
    right: 0px;
  }

  .company-row {
    grid-template-columns: 1fr; /* タブレットは縦並び */
    gap: 8px;
  }
  
  .company-label {
    font-weight: 700;
    padding-bottom: 4px;
  }

   .sp-content {
  display: none;
 }
 .pc-content {
  display: block;
 }

   .usecases-p3-profile-circle {
  width: 234px;
  height: 234px;
}

}

@media (min-width: 1024px) {
  /* Flow: show 3 cards at once (PC) */
  .flow-card {
    width: calc((100% - 48px) / 3);
  }

  .flow-nav-prev {
    left: 0px;
  }

  .flow-nav-next {
    right: 0px;
  }

  .company-row {
    grid-template-columns: 200px 1fr; /* PCは横並び */
    gap: 24px;
  }
  
   .sp-content {
  display: none;
 }
 .pc-content {
  display: block;
 }

}

@media (min-width: 640px) and (max-width: 1099px) {
  .problem-grid {
    grid-template-columns: 1fr; /* 縦並びに */
  }
  .solution-grid {
    grid-template-columns: 1fr; /* 縦並びに */
  }
}

@media (min-width: 1100px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr); /* 1100px以上で3列 */
  }
  .solution-grid {
    grid-template-columns: repeat(3, 1fr); /* 1100px以上で3列 */
  }
}

/* ========================================
   Top Case Studies
======================================== */

#bizmow-front .cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 32px;
}

#bizmow-front .cases-grid .case-card {
  margin: 0;
}

#bizmow-front .cases-grid .case-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#bizmow-front .cases-grid .case-card-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

#bizmow-front .cases-grid .case-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#bizmow-front .cases-grid .case-card-body {
  padding-top: 16px !important;
}

/* タイトルは左寄せ */
#bizmow-front .cases-grid .case-card-title {
  display: block;
  width: 100%;
  text-align: left !important;
  padding-top: 16px !important;
  padding-bottom: 8.5px !important;
  margin: 0 0 8.5px !important;
  border-bottom: 1px solid #e5e5e5 !important;
  box-sizing: border-box;
}

/* 会社名と業種はセンター寄せ */
#bizmow-front .cases-grid .case-card-company,
#bizmow-front .cases-grid .case-card-industry {
  text-align: center !important;
}

#bizmow-front .cases-grid .case-card-company {
  margin: 0 0 4px !important;
}

#bizmow-front .cases-grid .case-card-industry {
  margin: 0 0 8px !important;
}

/* タグは左寄せ */
#bizmow-front .cases-grid .case-card-tags {
  text-align: left !important;
  justify-content: flex-start;
}

#bizmow-front .cases-grid .case-card-tags span {
  text-align: left !important;
}

#bizmow-front .cases-more-wrap {
  text-align: center;
  margin-top: 48px;
}

#bizmow-front .cases-more-wrap .outline-button {
  justify-content: center;
}

/* タブレット */
@media (max-width: 1023px) {
  #bizmow-front .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* SP */
@media (max-width: 767px) {
  #bizmow-front .cases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  #bizmow-front .cases-more-wrap {
    margin-top: 32px;
  }
}
