@charset "utf-8";




 body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  background: linear-gradient(to bottom right, #e0f7fa, #fff0f5);
  color: #333;
  background-attachment: fixed;
}


.flow-section {
    text-align: center;
    padding: 100px 20px;
}




.flow-title {
    font-size: 2rem;
    margin-bottom: 50px;
    letter-spacing: 0.05em;
}




.flow-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}




.flow-item {
    display: flex;
    align-items: center;
    justify-content: space-between; /* ← テキストと矢印を左右に配置 */
    padding: 15px 20px;
    border: 1px solid #ccc;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;

    /* ★ 1行必須 */
    white-space: nowrap;

    /* ★ 内容に合わせて横幅が自動で広がる */
    width: auto;

    /* ★ 文字が長くても矢印まできちんと見える */
    max-width: 90vw;   /* 画面よりはみ出さないように制限 */
}

.arrow {
    width: 30px;
    height: 30px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    line-height: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    margin-left: 15px; /* ←少し空けて見やすく */
    flex-shrink: 0;    /* ←矢印が潰されない */
}



.flow-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}





/* STEP 詳細カード（Aデザイン） */
.flow-detail {
    position: relative;
    background: #ffffff;
    margin: 0 auto 60px auto;
    border-radius: 20px;
    max-width: 800px;

    /* 余白最適化 */
    padding: 80px 40px;

    /* 文字を中央揃え */
    text-align: center;

    /* カードの影を強めてリッチに */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);

    /* スクロール位置調整 */
    scroll-margin-top: 150px;
}

/* ==== ここがAデザインのポイント！ ==== */
/* 大きなSTEP番号（薄い背景テキスト） */
.flow-detail::before {
    content: attr(data-step); /* HTML側からSTEP番号を受け取る */
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 90px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.06);  /* 超薄く */
    z-index: 0;
    pointer-events: none; /* 背景扱い */
}
/* ===================================== */

.flow-detail h2 {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.flow-detail p {
    position: relative;
    z-index: 2;
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.8;
    color: #444;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .flow-detail {
      padding: 60px 20px;
  }
  .flow-detail::before {
      font-size: 60px;
      top: 5%;
  }
}





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




/* STEPの配置 */
.step-block {
 position: relative;
 left: -50px;
 top: 50px; /* ← 高さリセット */


}


/* STEP番号デザイン */
.step-number {
 position: absolute;
 left: 150px; /* ← 白ボックスの左に出す距離。好みで調整 */
 top: 100%; /* ← boxの上端に揃える */
 transform: translateY(-50%); /* ←縦位置リセット */
 font-size: 50px;
 font-weight: bold;
 color: #444444c5;
;
 text-align: center;
 line-height: 1.2;
 z-index: 5  ;
 display: flex;
 flex-direction: column;
 align-items: center;
}

/* PC・スマホ両方に効果あり（読みやすい段落行長） */
.flow-detail p {
  line-height: 1.9;            /* 行間を少し広げる */
  word-break: keep-all;        /* 日本語を不自然に分割しない */
  overflow-wrap: break-word;   /* 長文を自然に折り返す */
  letter-spacing: 0.03em;      /* 微調整：詰まり防止 */
  max-width: 38em;             /* 1行の長さを一定にして読みやすく */
  margin: 0 auto 30px;         /* 文章上下の余白 */
}

/* PC用・スマホ用 表示制御 */
.pc-only { display: block; }
.sp-only { display: none; }
@media (max-width: 600px)
 {
     .flow-item {
     width: 90%;
     height: 50%;
     }
 
  /*以下スクロール先の詳細部分*/
html {    
    scroll-behavior: smooth;
}

  .flow-detail {
    width:  90%;
    
    padding: 50px 20px 30px;  /* モバイルは左右パディング小さめ */
  }
  .flow-detail h2{
    margin: 0px 0 0px;
  }
  .step-number{
    font-size: 30px;
    top: -5px;
    position: relative;
  }
   .pc-only { display: none; }
  .sp-only { display: block; }

}

