 .problem-section {
   padding: 60px 20px;
   background-color:transparent;
   display: flex;
   justify-content: center;
 }


 .wrapper {
   background-color: #ffffff;
   border: 2px solid #ddd;
   border-radius: 20px;
   padding: 40px;
   max-width: 1200px;
   width: 100%;
   box-shadow: 0 8px 24px rgba(0,0,0,0.08);
 }


 .wrapper h1 {
   font-size: 2rem;
   margin-bottom: 40px;
   text-align: center;
   color: #222;
 }


 .content {
   display: flex;
   flex-wrap: wrap;
   gap: 40px;
   justify-content: center;
 }


.bubbles {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 20px 30px; /* 吹き出し間の間隔（上下・左右） */
 max-width: 800px;
 margin: 0 -80px;
 padding: 40px 0;
}


.bubble {
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 30px;
  padding: 18px 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-size: 16px;
  color: #333;

  /* ← ここが重要！はみ出し防止 */
  max-width: 280px;       
  width: 100%;             /* 親の幅に合わせる（破綻を防止） */

  line-height: 1.6;

  /* ★ flexを修正（これが全ての元凶） */
  flex: 1 1 280px;         /* 理想は280pxで、足りなければ自動で折り返す */

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  position: relative;

  /* はみ出し完全防止 */
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
}





/* スマホ対応 */
@media (max-width: 768px) {
 .bubble {
   flex: 1 1 100%;
   max-width: 90%;
   transform: none !important; /* モバイルではズレをリセット */
 }
}






 .solution {
   flex: 1;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
 }


 .character {
   width: 180px;
   height: 180px;
   background-color: #f9f4f4;
   border-radius: 12px;
   margin-bottom: 20px;
   background-image: url(ALL-MAILLON-logo.jpg);  /* ←ここに会社ロゴの画像URLを指定 */
   background-size: contain;
   background-repeat: no-repeat;
   background-position: center;
   box-shadow: 0 4px 12px rgba(0,0,0,0.1);
 }


 .message {
   background-color: #3e3d3d;
   color: white;
   font-size: 1.2rem;
   padding: 20px 30px;
   border-radius: 30px;
   box-shadow: 0 6px 20px rgba(0,0,0,0.15);
   text-align: center;
 }
 .arrow-css {
   width: 0;
   height: 0;
   border-top: 30px solid transparent;
   border-bottom: 30px solid transparent;
   border-left: 40px solid #005baa;
   margin: 0 20px;
 }
 .arrow {
   display: flex;
   align-items: center;
   justify-content: center;
   min-width: 120px;
   animation: pulse 2s infinite;
 }


 .arrow-icon {
   width: 80px;
   height: 80px;
   transition: transform 0.3s ease;
 }


 .arrow:hover .arrow-icon {
   transform: scale(1.2);
 }


 /* ゆるやかな鼓動アニメーション */
 @keyframes pulse {
   0% { transform: scale(1); opacity: 1; }
   50% { transform: scale(1.1); opacity: 0.8; }
   100% { transform: scale(1); opacity: 1; }
 }


 /* セクション間のイメージ */
 .divider-image img {
     width: 50%;       /* 横幅を60%に縮小 */
     height: auto;     /* 高さは自動調整で縦横比維持 */
     display: block;
     margin: 0px auto; /* 上下余白を入れ、中央寄せ */
 }
 body .hero {
   margin-top: 250px !important;
   padding-top: 60px !important;
   background-color: transparent !important;
 }
 body .hero p{
     margin-top: 40px;
    
 }


 .number {
   color: #5b5b5b !important; /* ← お好きな色コードに変更可能 */
 }


 @media (max-width: 768px) {
 .problem-section {
   padding: 30px 15px; /* 余白を少し縮小 */
 }


 .content {
   flex-direction: column; /* 横並びを縦並びに */
   gap: 30px;              /* 縦方向の余白 */
   align-items: center;    /* 中央寄せ */
 }


 .bubbles,
 .solution {
   flex: none;       /* flex比率を解除 */
   width: 100%;      /* 横幅いっぱい */
   max-width: 100%;  /* はみ出し防止 */
 }


 .bubble {
   max-width: 100%;  /* 吹き出しも画面幅に合わせる */
   font-size: 0.95rem;
 }


 .character {
   width: 140px;
   height: 140px;    /* ロゴを少し小さめに */
 }


 .message {
   font-size: 1rem;
   padding: 15px 20px;
 }


 .arrow {
   display: none; /* スマホでは矢印を非表示にする場合 */
 }
}





