@charset "UTF-8";
/* ==========================================================================
   Project: Hero Section (.p-hero)
   ========================================================================== */
/* --- Desktop Base Styles (PCファースト) --- */
.p-hero {
  background: url('../img/bg_hero-main.png') center right / cover no-repeat;
  padding: 30px 20px 50px;
  overflow: hidden;
}
.p-hero__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
/* Left Content Area */
.p-hero__content {
  flex: 1;
  max-width: 540px;
}
/* ★追加：バッジとロゴのまとまりを中央揃えにする */
.p-hero__logo-header {
  display: inline-block; /* ロゴの幅に合わせるための設定 */
  text-align: center; /* 中身（バッジとロゴ）を中央揃え */
}
/* バッジのスタイル（前回追加したものに少し調整） */
.p-hero__sub-title {
  display: inline-block;
  background-color: #404089;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 16px;
  border-radius: 4px;
  margin-bottom: 0px; /* ロゴとの間隔 */
  letter-spacing: 0.05em;
}
.p-hero__main-copy {
  font-size: 1.85rem; 
  font-weight: 700;
  color: #0170B9;
  line-height: 1.4;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
/* ★追加：リードコピー（小さくする文字）のスタイル */
.p-hero__lead-copy {
  font-size: 1.15rem; /* メインコピーより小さく設定 */
  font-weight: 500; /* メインコピーより少し細くしてメリハリをつける */
  color: #555555; /* 真っ黒ではなく濃いグレーにして圧迫感を減らす */
  line-height: 1.7;
  margin-bottom: 24px;
}
.p-hero__logo {
  margin-bottom: 0; /* 余白は p-hero__logo-header 側で取るためゼロに */
}
.p-hero__logo img {
  max-width: 340px;
  height: auto;
  display: block;
}
.p-hero__btn-wrap {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap; /* 画面幅が狭い時は折り返す */
  gap: 16px; /* ボタン同士の間隔 */
}
/* Right Media Area */
.p-hero__media {
  flex: 1;
  max-width: 500px; /* イラストとバッジが少し大きく見えるように全体の枠を少し拡張 */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.p-hero__figure {
  width: 100%;
  margin-bottom: 0; /* バッジを重ねるため、下の余白をリセット */
  text-align: center;
}
.p-hero__img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
/* --- 案A：カードなしスタイル --- */
.p-hero__features {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0px;
  list-style: none;
  padding: 0;
  margin: -60px 0 0 0; /* イラストとの重なり具合を少し浅めに調整 */
  position: relative;
  z-index: 2;
}
.p-hero__feature-item {
  background-color: transparent; /* 背景色を透明に */
  box-shadow: none; /* 影をなくす */
  padding: 10px 5px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.p-hero__feature-icon {
  width: 120px; /* 丸型アイコンを大きく */
  height: 120px;
  object-fit: contain;
  margin-bottom: 12px;
}
.p-hero__feature-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #333333;
  line-height: 1.4;
}
/* ==========================================================================
   Common Section Styles (共通部品)
   ========================================================================== */
.inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.c-section-lead-top {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0170B9;
  margin-bottom: 20px;
}
.c-section-header {
  text-align: center;
  margin-bottom: 50px;
}
.c-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0170B9;
  line-height: 1.4;
  margin-bottom: 16px;
}
.c-section-lead {
  font-size: 1.125rem;
  color: #333333;
  line-height: 1.6;
}
/* 下向き矢印（CSSで描画） */
.c-arrow-down {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 30px solid #FFFFFF;
  margin: 0 auto;
}
/* ==========================================================================
   Project: Trouble Section (.p-trouble)
   ========================================================================== */
.p-trouble {
  background-color: #FFFFFF; /* 背景色を少し調整 */
  padding: 80px 0 60px;
  position: relative;
}
/* 悩み画像（1枚絵）の配置 */
.p-trouble__image-wrap {
  text-align: center;
  margin-bottom: 20px;
}
.p-trouble__solution-img {
  max-width: 100%;
  height: auto;
  width: 100%;
  max-width: 800px;
}
/* カードリスト全体：上にはみ出る番号バッジ分の余白を確保 */
.p-trouble__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0 0; /* 番号が上のテキストに重ならないよう上マージンを追加 */
}
/* --- 課題セクションのセパレーター（繋ぎ要素） --- */
.p-trouble__separator {
  text-align: center;
  margin-bottom: 40px;
}
.p-trouble__separator-text {
  font-size: 1.5rem;
  color: #333333;
  line-height: 1.6;
}
.p-trouble__separator-text strong {
  color: #F39800; /* 強調色 */
}
/* 矢印下のリード文（既に実装済みの場合は調整用） */
.p-trouble__lead {
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  color: #333333;
  margin-top: 0px;
  margin-bottom: 24px; /* ★追加：下のサブタイトルとの余白を広げる */
}
.p-trouble__lead-accent {
  color: #F39800; /* オレンジのアクセントカラー（適宜変更してください） */
}
/* 画像を中心寄せして配置するスタイル */
.p-trouble__separator-arrow {
  display: block;
  margin: 0 auto 24px; /* 中央揃え ＆ 下のテキストとの余白 */
  width: 70px; /* 矢印画像の横幅（見栄えに合わせて調整してください） */
  height: auto;
  /* ※ 以前あった background-color や border などの記述は不要になります */
}
/* カード本体 */
.p-trouble__card {
  position: relative; /* 番号バッジ（absolute）の基準点 */
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  /* 上部パディングを広げて番号とタイトルの被りを防止 */
  padding: 16px 8px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
/* ★番号バッジ：カードの上枠にはみ出させる設定 */
.p-trouble__number {
  position: absolute;
  top: -18px; /* 半分カード枠の上にはみ出させる */
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background-color: #ebf4fb;
  color: #0170B9;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 2;
}
/* イラスト枠 */
.p-trouble__img-wrap {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f8f8fb;
  padding: 10px;
}
.p-trouble__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* はみ出さずに全体を表示 */
}
/* タイトル（文字） */
.p-trouble__title {
  font-size: 1rem;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 16px;
}
.p-trouble__arrow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
/* ==========================================================================
   Project: Merit Section (.p-merit)
   ========================================================================== */
.p-merit {
  background-color: #eaf4fb;
  padding: 60px 0; /* 上下の余白を少し小さく調整 */
}
.p-merit__list {
  /* gridからflexに変更し、上3下2のレイアウトを作る */
  display: flex;
  flex-wrap: wrap; /* 横幅がいっぱいになったら折り返す */
  justify-content: center; /* 2段目に落ちたカードを中央に寄せる */
  gap: 24px; /* カード間の余白（少し広げて24pxにしています） */
  margin-top: 24px;
}

.p-merit__card {
  /* ★追加：余白（padding）を含めて横幅をぴったり1/3にする設定 */
  box-sizing: border-box; 
  width: calc((100% - 48px) / 3); 
  
  /* 以下は既存のまま */
  position: relative; 
  background-color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 16px 6px 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
}
/* ★追加：カード上部のヘッダー領域 */
.p-merit__header {
  display: flex;
  flex-direction: column; /* 番号が上、タイトルが下の縦積み */
  align-items: center;
  margin-bottom: 16px; /* 下の画像との余白 */
}
/* ナンバーバッジ */
.p-merit__number {
  position: absolute;
  top: -18px; /* 半分カードの上にはみ出させる */
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background-color: #ebf4fb;
  color: #0170B9;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); /* 浮き出ている感を補強 */
  z-index: 2;
}
.p-merit__figure {
  margin: 0 -6px 12px; /* ネガティブマージンでカード左右のpadding分まで画像を広げる */
  height: 120px; /* 画像表示域の高さをしっかり確保 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.p-merit__figure img {
  width: 100%;
  max-width: 100%; /* カード幅いっぱいに拡大 */
  height: 100%;
  max-height: 120px;
  object-fit: contain; /* アスペクト比を崩さず領域いっぱいにフィット */
}
.p-merit__title {
  font-size: 1rem;
  /* 追加：文字間を少し詰めて、意図しない改行を防ぐ */
  letter-spacing: -0.05em;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0;
  line-height: 1.4;
}
/* 説明文エリア */
.p-merit__body {
  margin-top: auto; /* 下揃え */
}
.p-merit__desc {
  font-size: 0.75rem;
  letter-spacing: -0.03em;
  color: #555555;
  line-height: 1.4;
  margin: 0;
}
.p-merit__cta {
  text-align: center;
  margin-top: 50px;
}
/* ==========================================================================
   Project: Flow Section (.p-flow)
   ========================================================================== */
.p-flow {
  background-color: #ffffff;
  padding: 80px 0;
}
/* 3ステップ図解（PCでは横並び＋矢印） */
.p-flow__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  list-style: none;
  padding: 0;
  /* 修正：上にはみ出るバッジのスペース（24px）を確保 */
  margin: 24px 0 50px;
}
.p-flow__step {
  position: relative; /* ★バッジの絶対配置の基準点にする */
  background-color: #ffffff;
  border-radius: 12px;
  /* 修正：バッジが上部に来るため、上のパディング（内側の余白）を広くする */
  padding: 36px 20px 24px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}
/* ステップ間の矢印（1, 2の右側に配置） */
.p-flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  border-top: 3px solid #0170B9;
  border-right: 3px solid #0170B9;
  z-index: 1;
}
.p-flow__step-head {
  margin-bottom: 12px;
}
.p-flow__step-num {
  position: absolute;
  top: -16px; /* ★カード上枠から半分はみ出させる */
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0170B9;
  background-color: #eaf4fb;
  padding: 6px 24px; /* 横幅に少しゆとりを持たせる */
  border-radius: 20px;
  margin-bottom: 0; /* 既存のマージンをリセット */
  box-shadow: 0 2px 6px rgba(1, 112, 185, 0.1); /* 少しだけ影をつけて浮き出させる */
}
.p-flow__step-title {
  font-size: 1.1rem; /* 1.15remから微調整して改行時のバランスを確保 */
  font-weight: 700;
  color: #333333;
  margin: 0;
  line-height: 1.45;
}
.p-flow__step-desc {
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.6;
  margin: 0;
  text-align: center; /* 中央揃え（読みやすさに応じて left にしても可） */
}
/* システム構成図 */
.p-flow__diagram {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.p-flow__diagram img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: inline-block;
}
/* ★追加：構成図の下の注記 */
.p-flow__step-note {
  font-size: 0.75rem;
  color: #0170B9;
  vertical-align: top;
  font-weight: 700;
}
/* ==========================================================================
   Responsive Overrides (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .hidden-pc {
    display: none;
  }
  .p-hero {
    padding: 30px 16px 40px;
  }
  .p-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 0; /* gapはorderで並び替えるため、個別のmarginで調整します */
  }
  /* .p-hero__content の箱を無くし、子要素を直列のflexアイテムとして扱う */
  .p-hero__content {
    display: contents;
  }
  /* --- 順序（order）の指定 --- */
  .p-hero__sub-title {
    font-size: 0.85rem;
    padding: 4px 16px;
    margin-bottom: 0px;
  }
  .p-hero__logo {
    order: 2; /* サブタイトルの下に配置 */
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
  }
  .p-hero__logo img {
    max-width: 280px;
  }
  .p-hero__main-copy {
    order: 3;
    font-size: 1.35rem;
    line-height: 1.45;
    margin-bottom: 12px;
    text-align: center;
  }
  /* ★追加：スマホ用のリードコピー調整 */
  .p-hero__lead-copy {
    order: 4; /* メインコピーの次に配置 */
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 30px;
  }
  .p-hero__media {
    order: 4; /* メインコピーの下（ボタンの上）に配置 */
    max-width: 100%;
    width: 100%;
    margin-bottom: 30px; /* 一番下のボタンとの余白 */
  }
  .p-hero__btn-wrap {
    order: 5;
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    align-items: center;
    width: 100%;
    margin-top: 0;
    gap: 16px;
  }
	
	/* SP表示の時はボタンの幅を広げる */
  .p-hero__btn-wrap .c-btn {
    width: 100%;
    max-width: 340px; /* 大きくなりすぎないように制限 */
  }
  /* --- 画像・バッジの調整 --- */
  .p-hero__figure {
    margin-bottom: 0;
  }
  .p-hero__img {
    max-width: 90%;
  }
  .p-hero__features {
    gap: 5px;
    margin: -35px 0 0 0; /* SPサイズに合わせて重なり具合を調整 */
  }
  .p-hero__feature-item {
    padding: 5px 2px;
  }
  .p-hero__feature-icon {
    width: 75px; /* バッジアイコンを大きく修正 */
    height: 75px;
    margin-bottom: 8px;
  }
  .p-hero__feature-text {
    font-size: 0.75rem; /* テキストも少し大きく */
    line-height: 1.3;
  }
  /* 課題セクション */
  .c-section-lead-top {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  .c-section-title {
    font-size: 1.5rem;
  }
  .p-trouble__list {
    grid-template-columns: repeat(2, 1fr); /* スマホでは2列 */
    gap: 16px;
  }
  .p-trouble__card {
    padding: 16px 12px;
  }
  .p-trouble__img-wrap {
    max-width: 100px; /* スマホではさらに小さく */
    margin-bottom: 12px;
  }
  .p-trouble__title {
    font-size: 0.85rem;
  }
  .p-trouble__separator-text {
    font-size: 1rem;
  }
  .p-trouble__lead {
    font-size: 1rem;
    margin-bottom: 16px; /* SPでも狭く */
  }
  /* メリットセクション */
  .p-merit__list {
    flex-direction: column; /* 縦積み */
    align-items: center;
    gap: 32px; /* 縦の余白 */
  }

  /* 1. ボタンが画面からはみ出るのを防ぐ設定 */
  .p-merit__cta .c-btn,
  .c-btn {
    width: 100% !important;        /* 親要素の幅いっぱいにフィットさせる */
    max-width: 100% !important;     /* 画面幅を超えないように制限 */
    box-sizing: border-box !important; /* paddingを幅の計算内に含める */
    padding: 14px 16px !important;  /* スマホ用に左右の内側余白を少し詰める */
  }

  /* ボタン内の文字のサイズと折り返し調整 */
  .c-btn__main,
  .p-merit__cta .c-btn span {
    font-size: 0.95rem !important;  /* スマホ用に文字サイズを調整 */
    white-space: normal !important; /* 画面幅が狭い場合も綺麗に折り返す */
    text-align: center;
  }

  /* 2. カード類が画面からはみ出るのを防ぐ設定 */
  .p-merit__card {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;    /* 400pxなどの固定値を100%に上書き */
  }
  .p-merit__title {
    font-size: 1.1rem;
  }
  .p-merit__desc {
    font-size: 0.9rem;
  }
  /* 運用フロー */
  .p-flow {
    padding: 60px 0;
  }
  .p-flow__steps {
    grid-template-columns: 1fr;
    gap: 40px; /* ★縦積み時にバッジが被らないよう隙間を広くする */
    margin-bottom: 40px;
  }
  .p-flow__step {
    padding: 36px 16px 24px;
  }
  /* SP用の下向き矢印の位置も調整 */
  .p-flow__step:not(:last-child)::after {
    top: auto;
    bottom: -24px; /* gapを広げた分、矢印も少し下にずらす */
    right: 50%;
    transform: translateX(50%) rotate(135deg);
  }
  .p-flow__step {
    padding: 20px 16px;
  }
  .p-flow__diagram {
    padding: 16px; /* SP用にpaddingを少し狭くしている場合 */
  }
  .p-flow__note {
    text-align: left; /* SPでは読みやすいように左寄せ（お好みで変更可） */
    font-size: 0.75rem;
    line-height: 1.4;
  }
  .p-flow__diagram {
    padding: 12px;
  }
}