@charset "UTF-8";

/* ==========================================================================
   [Food Design] Hero Section (food_products.cssと共通設計)
   ========================================================================== */
.p-page-hero {
  position: relative;
  width: 100%;
  height: 510px;
  margin-top: 0;
  background-color: var(--bg-gray-light);
  display: flex;
  align-items: center;
}

.p-page-hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.p-page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center; /* 右側のパッケージが見えやすいように調整 */
}

/*
.p-page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
} 

.p-page-hero__content {
  width: 50%;
  padding-right: 5%;
}

.p-page-hero__deco {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 20px;
  z-index: 1;
}

.p-page-hero__badge {
  display: inline-block;
  background-color: var(--primary);
  color: var(--bg-white);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 50px;
  position: relative;
  z-index: 2;
}

.p-page-hero__circles {
  height: 40px;
  width: auto;
  margin-left: -1rem;
  position: relative;
  z-index: 1;
}

.p-page-hero__title {
  font-family: var(--font-en);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.p-page-hero__desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
  font-weight: 500;
}
*/
/* ==========================================================================
   [Food Design] Service Menu Section
   ========================================================================== */
.p-fd-service {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.p-fd-service__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.p-fd-service__card {
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 40px 30px 30px;
  background-color: var(--bg-white);
  display: flex;
  flex-direction: column;
}

.p-fd-service__card-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.p-fd-service__card-icon {
  width: 48px; /* サイズを指定 */
  height: 48px; /* サイズを指定 */
  padding: 10px; /* 内側に余白 */
  background-color: #ebf5f4; /* 薄い黄緑色の背景 */
  border-radius: 8px; /* 角丸8px */
  margin-right: 15px;
  object-fit: contain;
}

.p-fd-service__card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.p-fd-service__card-title-sub {
  font-size: 14px;
  font-weight: 500;
}

.p-fd-service__list {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.p-fd-service__list li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

/* リストの緑の四角アイコン */
.p-fd-service__list li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 1px;
}

.p-fd-service__list-note {
  font-size: 12px;
  color: var(--text-sub);
}

.p-fd-service__card-img {
  margin-top: auto; /* 下部に寄せる */
  border-radius: 10px;
  overflow: hidden;
}
.p-fd-service__card-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   [Food Design] Flow & Tab Section
   ========================================================================== */
.p-fd-flow {
  padding-bottom: 120px;
  background-color: var(--bg-white);
}

/* タブボタン群 */
.p-fd-tabs-wrap {
  text-align: center;
  margin-bottom: 40px; /* ユーザー修正反映 */
  position: relative;
  z-index: 10;
  padding: 0 20px; /* SPで端に寄らないように */
}

.p-fd-tabs {
  display: inline-flex;
  justify-content: center;
  background-color: #f4f5f7; /* 全体を囲う薄いグレー背景 */
  border-radius: 50px;
  padding: 5px;
}

.p-fd-tabs__btn {
  background-color: transparent; /* 非アクティブ時は背景なし */
  color: #808080; /* 薄いグレーのテキスト */
  border: none;
  border-radius: 50px;
  padding: 15px 40px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-ja);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
}

.p-fd-tabs__btn:hover {
  opacity: 0.8;
}

.p-fd-tabs__btn.is-active {
  background-color: var(--primary); /* アクティブ時のみ緑色 */
  color: var(--bg-white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* タブコンテンツ群 */
.p-fd-tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.p-fd-tab-content.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* フローのグレーコンテナ */
.p-fd-flow__container {
  background-color: var(--bg-gray);
  border-radius: 30px;
  padding: 80px 50px 60px; /* 上部パディングを広めに確保 */
}

/* ステップ一覧 */
.p-fd-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 50px;
  padding-top: 40px; /* 丸が上に飛び出るスペースを確保 */
}

/* PC時のステップ間をつなぐ横線 */
.p-fd-steps::before {
  content: "";
  position: absolute;
  top: calc(50% + 20px); /* カード本体の高さ方向の中央付近 */
  left: 9%;
  right: 9%;
  height: 1px;
  background-color: var(--primary);
  z-index: 1;
}

/* 各ステップのカード */
.p-fd-step {
  width: 18%; /* 5列なので少し隙間を空けて18% */
  background-color: var(--bg-white);
  border-radius: 20px;
  padding: 50px 20px 30px; /* 上部に丸が入るスペースを確保 */
  position: relative;
  z-index: 2; /* 線の前に出す */
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

.p-fd-step__num-wrap {
  position: absolute;
  top: -35px; /* 上に半円分飛び出るように設定 */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.p-fd-step__label {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 5px;
  background-color: var(--bg-gray);
}

.p-fd-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  background-color: var(--bg-white);
  color: var(--primary);
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
}

.p-fd-step__title {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.4;
  height: 3em; /* 高さを固定して説明文の開始位置を揃える */
  display: flex;
  align-items: center; /* タイトルを領域内で上下中央に配置 */
  justify-content: center;
}

.p-fd-step__text {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
  text-align: left; /* ワイヤーに合わせて左揃えにし、ガタつきをなくす */
}

/* 追加: フロー内のリスト（箇条書き）スタイル */
.p-fd-step__list {
  list-style: none;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
  text-align: left;
}

.p-fd-step__list li {
  position: relative;
  padding-left: 1em;
  text-indent: -1em; /* 2行目以降も頭が綺麗に揃うようにする */
  margin-bottom: 4px;
}

.p-fd-step__list li::before {
  content: "・";
}

/* ボタンエリア */
.p-fd-flow__action {
  text-align: center;
}

/* ==========================================================================
   Responsive (SP)
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .p-fd-service__cards {
    gap: 20px;
  }
  .p-fd-service__card {
    padding: 30px 20px;
  }
  .p-fd-step {
    padding: 40px 10px 20px;
  }
  .p-fd-step__num-wrap {
    top: -45px; 
  }
  .p-fd-step__title {
    font-size: 13px;
    height: 3.2em; /* 狭い画面用に少し余裕を持たせる */
  }
}

@media screen and (max-width: 767px) {
  /* Hero SP Layout */
  .p-page-hero {
    margin-top: 0;
    height: auto;
    display: block;
    background-color: transparent;
  }
  .p-page-hero__bg {
    position: relative;
    width: 100%;
    height: auto;
  }
  .p-page-hero__bg img {
    width: 100%;
    height: auto;
    display: block;
  }
/*  .p-page-hero__inner {
    position: absolute;
    top: 110px;
    left: 0;
    align-items: flex-start;
  }
  .p-page-hero__content {
    width: 100%;
    padding-right: 0;
  }
  .p-page-hero__title {
    font-size: 42px;
  }
  .p-page-hero__desc {
    font-size: 14px;
  }*/

  /* Service Menu SP Layout */
  .p-fd-service {
    padding: 60px 0;
  }
  .p-fd-service__cards {
    grid-template-columns: 1fr; /* 1列にする */
    gap: 30px;
  }

  /* Flow & Tab SP Layout */
  .p-fd-tabs {
    flex-direction: row; /* 横並び維持 */
    gap: 0;
    width: 100%; /* 全幅に広げる */
    display: flex;
  }
  .p-fd-tabs__btn {
    padding: 12px 10px;
    font-size: 12px;
    flex: 1; /* ボタン幅を半分ずつにする */
    text-align: center;
  }

  .p-fd-flow__container {
    padding: 60px 20px 40px;
    border-radius: 20px;
  }

  .p-fd-steps {
    flex-direction: column; /* 縦積みに変更 */
    gap: 60px; /* カード間に縦線が見えるスペースを確保 */
  }
  
  /* SP時は縦線を画面中央に貫くように配置 (ユーザー修正反映) */
  .p-fd-steps::before {
    display: block; 
    width: 1px;
    height: 80%;
    left: 50%;
    top: 50%;
    right: auto;
    transform: translate(-50% , -50%);
  }

  .p-fd-step {
    width: 100%;
    padding: 40px 20px 30px; 
    display: flex;
    flex-direction: column;
    justify-content: center; /* 中身を上下中央に配置 */
    min-height: 100px; /* カードボックスの高さをいい感じに揃える (ユーザー修正反映) */
  }

  .p-fd-step__num-wrap {
    top: -35px; /* 縦方向に半分飛び出る位置 */
    left: 50%; /* 横方向は左から50% */
    transform: translateX(-50%);
  }

  .p-fd-step__title {
    text-align: center; /* センター揃えに戻す */
    font-size: 15px; /* ご指定のフォントサイズ */
    min-height: auto;
    margin-top: 0;
    margin-bottom: 12px;
  }

  .p-fd-step__text {
    text-align: center; /* センター揃えに戻す */
  }

  /* 追加: スマホ時のリストの調整 */
  .p-fd-step__list {
    text-align: left; /* テキスト自体は左揃えを維持（・がガタガタしないように） */
    display: inline-block; /* 幅を中身に合わせる */
    margin: 0 auto; /* ブロックごと中央に配置 */
  }
    .p-fd-flow__container .c-btn{
        font-size:clamp(13px, 1.4vw, 15px) ;
        width: 100%;
        max-width: 450px;
    }
}