/* fix-top: トップページ用 の修正用CSS */

@media (max-width: 767px) {
  /* ---- FV: h1を広く・注記のはみ出し解消（高さを中身に追従） ---- */
  .FV .overlap-wrapper {
    height: auto;
  }
  .FV .overlap {
    height: auto;
    min-height: calc(460 / 760 * 100vw);
    display: flex;
    align-items: center;
  }
  .FV .spWrapper {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    padding: 12px 0;
  }
  .FV .div-2 {
    width: 100%;
  }

  /* ---- 実績ボタン(T1): 矢印を文字の高さ中央に追従 ---- */
  .resultsection .overlap-group-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(26 / 760 * 100vw);
    padding-left: calc(41 / 760 * 100vw);
  }
  .resultsection .text-wrapper-3 {
    white-space: nowrap;
  }
  .resultsection .vector {
    position: static;
    flex: 0 0 auto;
  }
  .resultsection .vector img {
    display: block;
  }

  /* ---- 1,500円の説明文: nbがflex項目になって崩れるのを防ぐ ---- */
  .service .content-wrapper-3 .text {
    display: block;
  }

  /* ---- 画像内の小さい文字: 横スクロールで約12px相当に ---- */
  .skil .skilImgWrapper .skilImg {
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }
  .skil .skilImgWrapper .skilImg img {
    width: 760px;
    height: auto;
  }
  .plan .plan-figure .imgArea.aim-scroll-x img {
    width: 1060px;
    height: auto;
  }
  .plan .div-2.aim-scroll-x .imgArea {
    display: block;
  }
  .plan .div-2.aim-scroll-x .imgArea img {
    width: 1150px;
    height: auto;
  }
  .result .graf.aim-scroll-x img {
    width: 600px;
    height: auto;
  }
  .resultsection .glaf-wrapper-container.aim-scroll-x {
    justify-content: flex-start;
  }
  .resultsection .glaf-wrapper-container.aim-scroll-x .glaf-wrapper {
    width: 780px;
    flex: 0 0 auto;
  }
  .resultsection .glaf-wrapper-container.aim-scroll-x .glaf {
    width: 260px;
  }

  /* ---- 想い: 2カラム → DOM順の1カラム ---- */
  .message .text-area {
    overflow: visible;
  }
  .message .right {
    position: static;
    width: 100%;
    height: auto;
    margin-top: calc(40 / 760 * 100vw);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .message .image {
    position: static;
    width: calc(280 / 760 * 100vw);
  }
  .message .all-in-motions-CEO-wrapper {
    position: static;
    margin-top: calc(16 / 760 * 100vw);
  }
  /* AIM-JUDGE: CEO名の文字を元の16/760vwから24/760vwに拡大（375pxで7.9px→11.8px） */
  .message .all-in-motions-CEO {
    font-size: calc(24 / 760 * 100vw);
  }
  /* /AIM-JUDGE */

  /* AIM-JUDGE: サービスボタン(T2)は元CSSでSP非表示のため高さ0。表示して中央に収める */
  .service .button-wrapper {
    display: flex;
    align-items: center;
    padding: calc(40 / 760 * 100vw) 0 0;
    width: 100%;
  }
  .service .button-wrapper .button {
    width: calc(450 / 760 * 100vw);
  }
  .service .button-wrapper .text-area-wrapper {
    position: static;
    height: 100%;
  }
  .service .button-wrapper .text-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(26 / 760 * 100vw);
    height: 100%;
  }
  .service .button-wrapper .text {
    display: block;
  }
  .service .button-wrapper .text-wrapper-9 {
    font-size: calc(22 / 760 * 100vw);
    margin-top: 0;
  }
  .service .button-wrapper .vector {
    position: static;
    width: calc(15 / 760 * 100vw);
  }
  .service .button-wrapper .vector img {
    display: block;
  }
  /* /AIM-JUDGE */
}

/* ==========================================================================
   PC（768px以上）。値は元CSSと同じ calc(N / 1440 * 100vw)。色・文言・写真・順序は変えない。
   ========================================================================== */
@media (min-width: 768px) {
  /* 1. 「受講生の成果」見出し: .pc が display:none のまま戻っていない */
  .result .text-wrapper.pc {
    display: block;
    height: calc(98 / 1440 * 100vw);
  }

  /* 2. ¥323,900: グラフ画像が高さ固定で cover に切り取られる。縦横比どおりに戻す */
  .result .graf img {
    height: auto;
  }

  /* 3. FAQ「＋」: 固定 top を行の中央寄せに（SPと同じ方式） */
  .question .vector {
    top: 50%;
    transform: translateY(-50%);
  }
  .question .vector img {
    display: block;
  }

  /* AIM-JUDGE: 4. 講師陣の写真: 右カラムを右へ寄せ幅を縮め、重なりをなくす（右端は元と同じ）。右写真が約10.6%小さくなる */
  .service .content-right {
    left: calc(533 / 1440 * 100vw);
    width: calc(530 / 1440 * 100vw);
  }
  .service .img {
    width: calc(530 / 1440 * 100vw);
  }
  .service .text-3 {
    left: calc(16 / 1440 * 100vw);
  }
  /* /AIM-JUDGE */

  /* AIM-JUDGE: 6. 「ランサーズ認／定）。」: .text が inline-flex で .nb が flex 項目として縮み、途中で折れていた。
     block にして .nb を inline-block（一塊）にする（「参加が可能です。」は front-page.php で .nb に入れた）。折り返し位置が変わる（行頭の字下げも消える） */
  .service .content-wrapper-3 .text {
    display: block;
  }
  .service .content-wrapper-3 .text .nb {
    display: inline-block;
  }
  /* /AIM-JUDGE */

  /* AIM-JUDGE: 「想い」の背景帯 .left を text-area の右端まで伸ばす（元は1039/1440で止まり、右の写真の途中で終わる）。
     帯の長さは元デザインの意図かもしれないので、先方の裁定待ち */
  .message .left {
    width: 100%;
  }
  /* /AIM-JUDGE */
}
