/* ===============================
   事業内容ページ共通
   =============================== */

/* ページ全体のラッパー：背景とは切り離して「中身の幅」だけ管理 */
.page-service .service-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0; /* ← ヒーローとの余白をなくす */
}

/* PCだけ改行させたい br */
.u-pc {
  display: inline;
}

/* 各セクションの共通枠（背景画像はここには持たせない） */
.service-block {
  position: relative;       /* 背景用 ::before の基準 */
  padding: 60px 40px;
  margin: 0;                /* セクション同士をぴったりくっつける */
  background: none;
}

/* セクション共通タイトル（個別で上書きあり） */
.service-block__title {
  font-size: 40px;
  text-align: center;
  margin: 0 0 40px;
}

/* テキスト＋画像の2カラム（汎用） */
.service-block__body {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.service-block__text {
  flex: 1;
  font-size: 16px;
  line-height: 1.8;
}

.service-block__images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-block__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* キャリアサポート以降のサブ行 layout（汎用） */
.service-row {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.service-row__text {
  flex: 1;
}

.service-row__image {
  flex: 1;
}

.service-row__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 丸ボタン風（汎用） */
.service-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.service-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 56px;
  border-radius: 28px;
  border: 1px solid #000;
  background-color: #FFF;
  font-size: 16px;
  text-decoration: none;
  color: #000;
}

/* ===============================
   SPレイアウト共通
   =============================== */

@media (max-width: 767px) {

  /* SPでは PC 用改行 br を非表示 */
  .u-pc {
    display: none;
  }

  .service-block {
    padding: 40px 20px;
  }

  .service-block__body,
  .service-row {
    flex-direction: column;
  }

  .service-buttons {
    flex-direction: column;
  }

  .service-button {
    width: 100%;
  }
}

/* ===============================
   営業代行ブロック専用
   =============================== */

/* 背景画像を画面幅いっぱいに（PC/SP 切替はメディアクエリ側で） */
.service-block--sales::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;  /* 画面幅いっぱい */
  background-image: url('../../images/service/bg-sales_pc.jpg'); /* PC用 */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: -1;
}

/* 営業代行ブロック */
.service-block--sales {
  padding-top: 100px;
  padding-bottom: 120px;
}

.service-title--sales {
  font-size: 40px;
  display: block;  /* テキスト分の幅だけにする */
  width: fit-content;
  margin: 0 auto 40px;    /* ブロックとして中央寄せ */
  text-align: center;     /* 文字も中央 */
}

/* 1つ分の「テキスト＋画像」行 */
.sales-item {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 0 20px;
}

/* テキスト側 */
.sales-item__text {
  flex: 1;
  min-width: 0;
}

/* 小見出し：32px */
.sales-item__heading {
  font-size: 32px;
  margin: 0 0 16px;
}

/* 本文：22px */
.sales-item__body {
  font-size: 22px;
  line-height: 1.6;
  margin: 0;
}

/* 画像側（右） */
.sales-item__image {
  flex: 0 0 auto;
}

/* 画像サイズ：PC 320px 幅想定 */
.sales-item__image img {
  display: block;
  width: 320px;
  height: auto;
}

/* 区切り線：#777 / 3px */
.sales-divider {
  border: 0;
  border-top: 3px solid #777777;
  margin: 20px 0;
}


/* ===============================
   1025〜1400：2カラムを“塊で中央寄せ”
   =============================== */
@media (max-width: 1400px) and (min-width: 1025px){

  .sales-items{
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .sales-divider{
    width: 100%;
    margin: 20px auto;
  }

  .sales-item{
    display: grid;

    /* ★右列を「300px固定」→「画像幅(auto)」にする */
    grid-template-columns: minmax(0, 1fr) auto;

    /* ★gapを少しだけ締める（折り返し対策に効く） */
    column-gap: clamp(12px, 1.6vw, 20px);

    align-items: start;
    justify-content: center;
  }

  /* ★ここで “縮小” を効かせる（1040付近の主目的） */
  .sales-item__heading{
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1.35;
  }
  .sales-item__body{
    font-size: clamp(16px, 1.5vw, 22px);
    line-height: 1.75;
  }

  /* ★右列がautoになったので end は不要（余白増の原因になりやすい） */
  .sales-item__image{
    justify-self: start;
  }

  /* 画像は今まで通り300px固定でOK */
  .sales-item__image img{
    width: 300px;
    display: block;
  }
}


/* ===============================
   1025〜1100：狭くなったら“塊を右寄せ”
   =============================== */
@media (max-width: 1100px) and (min-width: 1025px){
  .sales-item{
    justify-content: end;
    padding-right: 8px;
  }
  
  .sales-item__image img{
    width: clamp(260px, 24vw, 300px);
  }
}


/* ===============================
   〜1024：タブレットは縦並びに統一（箱幅を固定）
   =============================== */
@media (max-width: 1024px){

  .u-pc{ display:none; }

  /* ★タブレット帯の「中身の箱」を固定幅にする（iPad Pro/Air/miniを揃える） */
  .sales-items{
    width: min(660px, calc(100% - 32px)); /* ← 720px は好みで 680/720/760 あたり */
    margin: 0 auto;
  }

  .sales-item{
    display: flex;              /* grid解除の明示（保険） */
    flex-direction: column;
    align-items: center;
    gap: 20px;

    /* ★sales-items が箱になるので、sales-item 側の左右paddingは不要 */
    padding: 0;
  }

  /* ★テキストブロックも箱幅に合わせて整える */
  .sales-item__text{
    width: 100%;
  }

  .sales-item__heading{
    font-size: clamp(16px, 3.4vw, 18px);
    margin: 0 0 12px;
  }

  .sales-item__body{
    font-size: clamp(14px, 2.6vw, 16px);
    line-height: 1.75;
  }

  .sales-item__image{
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* ★画像もタブレットで大きめに（横長感を減らす） */
  .sales-item__image img{
    width: min(520px, 100%); /* ← 480/520/560 あたりで調整 */
    height: auto;
    display: block;
  }

  .sales-divider{
    margin: 28px 0;
  }
}


/* =========================================
   営業代行（SP：〜767px / Figma準拠）
   ========================================= */
@media (max-width: 767px) {

  /* PC用改行をSPでは無効化 */
  .u-pc {
    display: none;
  }

  /* 背景画像をSP用に切り替え */
  .service-block--sales::before {
    background-image: url('../../images/service/bg-sales_sp.jpg');
    background-position: center top;
  }

  /* セクション全体の余白（Figma寄せ） */
  .service-block--sales {
    padding: 60px 0px 60px;
  }

  /* h2：営業代行 → 24px */
  .service-title--sales {
    font-size: 24px;
    margin: 0 auto 24px;
  }

  /* 1項目を縦並び（テキスト → 画像） */
  .sales-item {
    flex-direction: column;
    gap: 16px;          /* ← 24px → 詰める */
    padding: 0;
    margin-bottom: 16px;
  }

  /* h3：18px */
  .sales-item__heading {
    font-size: clamp(15px, 4.2vw, 18px);
    margin: 0 0 10px;
  }

  /* 本文：14px */
  .sales-item__body {
    font-size: 14px;
    line-height: 1.7;
  }

  /* 画像：280×173 をそのまま表示＆中央 */
  .sales-item__image {
    width: 100%;
    display: flex;
    justify-content: center; /* 横方向ど真ん中 */
    padding: 0;              /* 念のため余白リセット */
  }

  .sales-item__image img {
    width: 280px;
    height: 173px;
    object-fit: cover;
    margin: 0;
  }

  /* 区切り線：今のまま（指定どおり維持） */
  .sales-divider {
    margin: 20px 0;
  }
}


/* ===============================
   キャリアサポート事業
   =============================== */

/* 背景画像を画面幅いっぱいに */
.service-block--career::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background-image: url('../../images/service/bg-career_pc.jpg'); /* PC用 */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: -1;
}

.service-block--career {
  padding-top: 100px;
  padding-bottom: 120px;
  text-align: center;
}

/* タイトル：40px・左寄せ */
.service-block--career .service-block__title{
  font-size: 40px;
  margin: 0 0 40px;
}

.career-items {
  max-width: 1170px;
  margin: 0 auto;
}

/* 各行のレイアウト */
.career-item {
  display: flex;
  gap: 0px;
  align-items: flex-start;
}

/* 2行目だけ左右反転させる用（写真左・テキスト右） */
.career-item--reverse {
  flex-direction: row-reverse;
}

/* テキストカラム・画像カラム：どちらも 585px 固定 */
.career-item__text,
.career-item__image {
  flex: 0 0 585px;
}

/* テキスト内側のインナー（ここで中央寄せ＋横幅調整） */
.career-item__inner {
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}

/* 各行ごとに “見せたい幅” を指定 */
.career-item__inner--support { width: 500px; }  /* 1行目 */
.career-item__inner--dev     { width: 510px; }  /* 2行目 */
.career-item__inner--ai      { width: 480px; }  /* 3行目 */

/* 見出し h3：30px */
.career-item__heading {
  font-size: 30px;
  margin: 0 0 16px;
  text-align: left;
}

.career-item__heading--support{
  width: 340px;
  margin-left: 0;  /* ★auto → 0 */
  margin-right: 0; /* ★auto → 0 */
}

.career-item__heading--dev{
  width: 570px;
  margin-left: 0;
  margin-right: 0;
}

.career-item__heading--ai{
  width: 470px;
  margin-left: 0;
  margin-right: 0;
}

/* 本文：21px */
.career-item__body {
  font-size: 21px;
  line-height: 1.8;
  margin: 0;
  text-align: left;
}


/* 画像サイズ：PC 540×310 想定 */
.career-item__image img {
  display: block;
  width: 585px;      /* ここで幅を固定 */
  max-width: 585px;
  height: auto;
}

/* ボタン周り */
.career-buttons {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 900px;  /* ← ボタン2つが広がる最大幅を指定 */
  margin-left: auto;
  margin-right: auto;
}

/* ボタン文字：32px・白塗り＋黒フチ 3px */
.career-buttons .btn {
  font-size: 32px;
  font-weight: 100; /* 塗りの白を太く見せる */
  border-width: 3px;
  text-align: center;
  line-height: 1.3;
  
  color: #FFFFFF; /* 塗り白 */
  -webkit-text-stroke: 5px #000000; /* フチを3pxで統一 */
          text-stroke: 5px #000000;

  paint-order: stroke fill; /* フチ → 塗りの順で描画 */
}

/* ボタン内のテキストを中央寄せ */
.career-button span {
  display: inline-block;
}

/* hover */
.career-button:hover {
  opacity: 0.7;
}


/* ===============================
   1250〜1025：交互2カラム維持（可変幅にして崩れ防止）
   =============================== */
@media (max-width: 1250px) and (min-width: 1025px){

  /* まず全体幅を画面に追従させる（左右に30px余白） */
  .career-items{
    max-width: calc(100% - 60px);
  }

  /* 行は2カラム維持・境界はくっつける */
  .career-item{
    gap: 0;
    align-items: stretch; /* 高さを揃えて“角がくっつく”見え方を安定 */
  }

  /* ★固定585pxを捨てて可変にする（ここが本質） */
  .career-item__text,
  .career-item__image{
    flex: 1 1 50%;
    min-width: 0; /* はみ出し防止（重要） */
  }

  /* 画像は列幅いっぱいに */
  .career-item__image img{
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* テキスト側の中身幅：固定値 → 列内で収まるように */
  .career-item__inner{
    margin-top: 18px; /* 少し詰める（好みで） */
    margin-left: auto;
    margin-right: auto;
    padding-left: 25px;
    width: min(520px, 100%); /* ←列幅を超えない */
  }

  /* 既存の行別 width 指定は“上限”として残す */
  .career-item__inner--support { width: min(500px, 100%); }
  .career-item__inner--dev     { width: min(510px, 100%); }
  .career-item__inner--ai      { width: min(480px, 100%); }

  /* 見出し幅の固定も同様に上限化 */
  .career-item__heading--support { width: min(340px, 100%); }
  .career-item__heading--dev     { width: min(570px, 100%); }
  .career-item__heading--ai      { width: min(470px, 100%); }

  /* 文字サイズをclampで微調整（営業代行と同じ思想） */
  .career-item__heading{
    font-size: clamp(21px, 2.0vw, 26px);
  }

  .career-item__body{
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.85;
  }

  .career-buttons{
    max-width: 900px;
    justify-content: center;
    gap: clamp(16px, 3vw, 40px); /* ←矢印部分が徐々に狭くなる */
  }
}


/* ===============================
   〜1024：縦並び（タブレット）
   =============================== */
@media (max-width: 1024px){

  .u-pc{ display:none; }

  .career-item,
  .career-item--reverse{
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  
  /* h2：下の余白をなくす */
  .service-block--career .service-block__title{
    margin-bottom: 0;
  }

  /* h3：上にしっかり余白を取る */
  .career-item__heading{
    margin-top: 50px;
  }  

  /* 固定585を解除して自然に */
  .career-item__text,
  .career-item__image{
    flex: none;
    width: min(720px, calc(100% - 60px)); /* ←箱幅固定（後で調整） */
    max-width: min(720px, calc(100% - 60px));
  }

  .career-item__image img{
    width: 100%;
    max-width: 100%;
  }

  .career-item__inner{
    width: 100%;
  }
}


/* ===============================
   1024〜768：タブレット用 ボタン調整
   =============================== */
@media (max-width: 1024px) and (min-width: 768px){

  .career-buttons{
    justify-content: center;       /* 中央寄せで安定 */
    gap: clamp(16px, 3vw, 28px);   /* PCより狭く、自動で変化 */
    max-width: 760px;              /* PC(900)よりコンパクトに */
  }

  .career-buttons .btn{
    width: 304px;                  /* PCより少し小さく */
    height: 122px;
    font-size: 28px;               /* PC 32 → 26 */
    border-width: 3px;             /* フチも軽く */
    -webkit-text-stroke: 4px #000000;
            text-stroke: 4px #000000;
    line-height: 1.25;
  }
}


/* ===============================
   SP（〜767px）：キャリアサポート事業
   =============================== */
@media (max-width: 767px){

  /* PC用改行を無効化（営業代行と同じ） */
  .u-pc{ display: none; }

  /* セクション余白（必要なら微調整） */
  .service-block--career{
    padding-top: 60px;
    padding-bottom: 80px;
    text-align: center;
  }

  /* 背景画像：SP用 */
  .service-block--career::before{
    background-image: url('../../images/service/bg-career_sp.jpg');
  }

  /* ===== タイトル ===== */
  .service-block--career .service-block__title{
    font-size: 24px;     /* Figma指定 */
    margin-bottom: -30px;
  }

  /* ===== 各ブロック：縦積み ===== */
  .career-item,
  .career-item--reverse{
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  /* 画像はSP幅に追従 */
  .career-item__text,
  .career-item__image{
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  /* ===== 見出し h3 ===== */
  .career-item__heading{
    font-size: clamp(15px, 4.0vw, 18px); /* 営業代行と同じ */
    margin-top: 50px;
    margin-bottom: 12px;
    text-align: left;
  }

  /* PC用の幅指定はSPでは解除 */
  .career-item__heading--support,
  .career-item__heading--dev,
  .career-item__heading--ai{
    width: auto;
  }

  /* ===== 本文 ===== */
  .career-item__body{
    font-size: 14px;     /* Figma指定 */
    line-height: 1.8;
    text-align: left;
  }

  /* innerの固定幅はSPでは使わない */
  .career-item__inner--support,
  .career-item__inner--dev,
  .career-item__inner--ai{
    width: 100%;
    margin: 0 auto;
  }

  /* ===== 画像 ===== */
  .career-item__image img{
    width: 302px;       /* Figma指定 */
    height: auto;
    margin: 0 auto;     /* 中央配置 */
    display: block;
  }

  /* ===== ボタン ===== */
  .career-buttons{
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .career-buttons .btn{
    width: 210px;
    height: 100px;
    font-size: 20px;        /* 指定どおり */
    border-width: 2px;
    -webkit-text-stroke: 2px #000000;
            text-stroke: 2px #000000;
    line-height: 1.3;
  }
}


/* ===============================
   プロデュース事業（背景画像なし）
   =============================== */

.service-block--produce {
  padding-top: 70px;   /* 「プロデュース事業」h2の上だけ余白 */
  padding-bottom: 120px;
  margin: 0;
}

/* セクションタイトル：左寄せ＆40px */
.service-title--produce {
  font-size: 40px;
  margin: 0 auto 40px;
}

/* ===============================
   エンタメ（プロデュース事業） PC
   =============================== */
/* タイトル全体の横位置を決めるラッパー */
.produce-heading-wrap {
  max-width: 1175px;
  margin: 40px auto 0; /* 上に少し余白をあけて中央に配置 */
  text-align: left;
  padding-left: 150px;
}

/* 船舶事業の h2 見出し */
.produce-heading {
  font-size: 40px;
  margin: 0 0 32px;
}

.produce-group--ent {
  position: relative;
  max-width: 1175px;   /* 850 + 500 が入る幅 */
  margin-bottom: 60px;
  overflow: visible;
}

/* 白背景カード（エンタメ） */
.produce-card--ent {
  position: relative;
  width: 750px;
  min-height: 475px;
  padding: 20px 20px;
  box-sizing: border-box;
  z-index: 1;
}

/* 白パネル画像（エンタメ） */
.produce-card--ent::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../../images/service/produce-panel_pc.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 15px;
  z-index: -1;
}

/* テキスト（エンタメ専用） */
.produce-card--ent .produce-card__heading {
  font-size: 32px;
  margin: 0 0 24px;
  text-align: center;
}

.produce-card--ent .produce-card__lead {
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.produce-card--ent .produce-card__body {
  font-size: 24px;
  line-height: 1.5;
  margin: 0 0 24px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.produce-card--ent .produce-sns-row {
  display: flex;
  justify-content: center;   /* 白パネルの中央に寄せる */
  align-items: center;
  gap: 4px;                 /* テキストとアイコンの間隔 */
  margin-top: 24px;
}

.produce-card--ent .produce-card__sns {
  font-size: 24px;
  margin: 0;
}

.produce-card--ent .sns-arrow {
  width: 22px;
  height: 22px;
  display: block;
}

/* Instagram（エンタメ） */
.produce-card--ent .produce-instagram {
  width: 48px;
  margin: 0;
}

.produce-card--ent .produce-instagram img {
  display: block;
  width: 100%;
  height: auto;
}

/* 写真（エンタメ） */
.produce-photo--ent {
  position: absolute;
  right: 0;
  top: -50px;
  z-index: 0;
}

.produce-photo--ent img {
  display: block;
  width: 500px;    /* PC：500×400 想定 */
  height: auto;
  border-radius: 30px;
}

/* ===============================
   船舶事業 PC
   =============================== */
/* タイトル全体の横位置を決めるラッパー */
.ship-heading-wrap {
  max-width: 1175px;   /* .produce-group--ent / .ship-group と同じ幅 */
  margin-bottom: 0;
  text-align: right;
  padding-right: 150px;
}

/* 船舶事業の h2 見出し */
.ship-heading {
  font-size: 40px;
  margin: 0 0 32px;
}

/* 白背景＋写真セット（船舶） */
.ship-group {
  position: relative;
  max-width: 1175px;
  margin-top: -130px;
  margin-bottom: 50px;
  overflow: visible;
}

/* 白背景カード（船舶） */
.ship-card {
  position: relative;
  width: 750px;
  min-height: 475px;
  padding: 20px 20px;
  box-sizing: border-box;
  z-index: 1;
}

/* 白パネル画像（船舶） */
.ship-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../../images/service/produce-panel_pc.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 15px;
  z-index: -1;
}

/* テキスト（船舶専用） */
.ship-card .ship-card__heading {
  font-size: 32px;
  margin: 0 0 24px;
  text-align: center;
}

.ship-card .ship-card__lead {
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.ship-card .ship-card__body {
  font-size: 24px;
  line-height: 1.5;
  margin: 0 0 24px;
  max-width: 530px;
  margin-left: auto;
  margin-right: auto;
}

.ship-card .ship-card__note {
  font-size: 18px;
  line-height: 1.5;
  margin: 24px 0 32px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}


/* ボタン（船舶専用） */
.ship-card__btn {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.ship-card__btn .btn--rect.btn--fill-rect-gray {
  font-size: 20px;
  font-weight: 100;
  border-color: #000000;
  border-width: 1px;
  color: #000000;           /* 塗り：黒 */
  -webkit-text-stroke: 1px #FFFFFF; /* 白いフチ */
  text-stroke: 1px #FFFFFF;
  paint-order: stroke fill;
}

/* 船の写真 */
.ship-photo {
  position: absolute;
  right: 0;
  bottom: -50px;
  z-index: 0;
}

.ship-photo img {
  display: block;
  width: 500px;
  height: auto;
  border-radius: 30px;
}


@media (max-width: 1199px) and (min-width: 1100px){
  .ship-heading-wrap{
    margin-right: -70px;
  }
}


/* ===============================
   Tablet（950〜1099）：Produce & Ship
   - PCとSPの中間（PCの重ね構造を維持して縮小）
   =============================== */
@media (max-width: 1099px) and (min-width: 950px){

  /* セクション全体は少し詰める */
  .service-block--produce{
    padding-top: 60px;
    padding-bottom: 100px;
  }

  /* h2：PC(40)→中間(32)くらい */
  .service-title--produce{
    font-size: 32px;
    margin: 0 auto 28px;
  }

  /* =========================
     Produce：タイトル（左寄せ）
     ========================= */
  .produce-heading-wrap{
    max-width: 980px;
    padding-left: 80px;     /* PC150 → 中間 */
    margin: 30px auto 0;
  }

  /* =========================
     Ship：タイトル（右寄せ）
     1199〜1100で微調整してるので、
     1099〜768は “中間の余白” にする
     ========================= */
  .ship-heading-wrap{
    max-width: 980px;
    padding-right: 80px;   /* PC150 → 中間 */
    margin: 0 auto 0;
    text-align: right;
  }

  .ship-heading{
    font-size: 32px;
    margin: 0 0 24px;
  }

  /* =========================
     共通：グループ幅（中間）
     ========================= */
  .produce-group--ent,
  .ship-group{
    max-width: 980px;      /* PC1175 → 中間 */
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
  }
  
  .produce-group--ent {
    margin-bottom: 10px;
}

  /* Ship の上方向かぶせは弱める（PC:-130 → 中間:-80） */
  .ship-group{
    margin-top: -80px;
    margin-bottom: 40px;
  }

  /* =========================
     白カード：サイズ中間
     ========================= */
  .produce-card--ent,
  .ship-card{
    width: 640px;          /* PC750 → 中間 */
    min-height: 420px;     /* PC475 → 中間 */
    padding: 18px 18px;
  }

  /* 背景パネルはPCを使い続ける */
  .produce-card--ent::before,
  .ship-card::before{
    background-image: url('../../images/service/produce-panel_pc.jpg');
    border-radius: 15px;
  }

  /* =========================
     文字：PC→中間に落とす
     ========================= */
  .produce-card--ent .produce-card__heading,
  .ship-card .ship-card__heading{
    font-size: 26px;        /* PC32 → 中間 */
    margin: 0 0 18px;
    text-align: center;
  }

  .produce-card--ent .produce-card__lead,
  .ship-card .ship-card__lead{
    font-size: 16px;        /* PC20 → 中間 */
    line-height: 1.6;
    margin: 0 0 18px;
    max-width: 520px;       /* PC640 → 中間 */
    margin-left: auto;
    margin-right: auto;
  }

  .produce-card--ent .produce-card__body{
    font-size: 18px;        /* PC24 → 中間 */
    line-height: 1.6;
    margin: 0 0 18px;
    max-width: 520px;       /* PC620 → 中間 */
    margin-left: auto;
    margin-right: auto;
  }

  .ship-card .ship-card__body{
    font-size: 18px;        /* PC24 → 中間 */
    line-height: 1.6;
    margin: 0 0 18px;
    max-width: 460px;       /* PC530 → 中間 */
    margin-left: auto;
    margin-right: auto;
  }

  .ship-card .ship-card__note{
    font-size: 14px;        /* PC18 → 中間 */
    line-height: 1.6;
    margin: 18px 0 24px;
    max-width: 520px;       /* PC620 → 中間 */
    margin-left: auto;
    margin-right: auto;
  }


  /* =========================
     SNS行：中間
     ========================= */
  .produce-card--ent .produce-card__sns{
    font-size: 18px;        /* PC24 → 中間 */
  }

  .produce-card--ent .sns-arrow{
    width: 18px;
    height: 18px;
  }

  .produce-card--ent .produce-instagram{
    width: 40px;            /* PC48 → 中間 */
  }

  /* =========================
     写真：中間（absoluteのまま）
     ========================= */
  .produce-photo--ent{
    right: 0;
    top: -30px;             /* PC:-50 → 中間 */
  }

  .ship-photo{
    right: 0;
    bottom: -30px;          /* PC:-50 → 中間 */
  }

  .produce-photo--ent img,
  .ship-photo img{
    width: 380px;           /* PC500 → 中間 */
    border-radius: 26px;    /* PC30 → 中間 */
  }

  /* =========================
     船舶ボタン：中間
     ========================= */
  .ship-card__btn .btn--rect.btn--fill-rect-gray{
    font-size: 16px;        /* PC20 → 中間 */
    -webkit-text-stroke: 1px #FFFFFF;
    text-stroke: 1px #FFFFFF;
  }
}


/* ===============================
   Tablet（768〜949）：Produce & Ship
   - PCとSPの中間（テキストをさらに縮小）
   =============================== */
@media (max-width: 949px) and (min-width: 768px){

  /* セクション全体は少し詰める */
  .service-block--produce{
    padding-top: 60px;
    padding-bottom: 60px;
  }

  /* h2：PC(40)→(32)→28 */
  .service-title--produce{
    font-size: 28px;
    margin: 0 auto 28px;
  }

  /* =========================
     Produce：タイトル（左寄せ）
     ========================= */
  .produce-heading-wrap{
    max-width: 980px;
    padding-left: 60px;     /* PC150 → 中間 */
    margin: 30px auto 0;
  }

  /* =========================
     Ship：タイトル（右寄せ）
     1199〜1100で微調整してるので、
     1099〜768は “中間の余白” にする
     ========================= */
  .ship-heading-wrap{
    max-width: 980px;
    padding-right: 30px;   /* PC150 → 中間 */
    margin: 0 auto 0;
    text-align: right;
  }

  .ship-heading{
    font-size: 28px;
    margin: 0 0 24px;
  }

  /* =========================
     共通：グループ幅（中間）
     ========================= */
  .produce-group--ent,
  .ship-group{
    max-width: 980px;      /* PC1175 → 中間 */
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
  }
  
  .produce-group--ent {
    margin-bottom: 10px;
}

  /* Ship の上方向かぶせは弱める（PC:-130 → 中間:-80） */
  .ship-group{
    margin-top: -80px;
    margin-bottom: 40px;
  }

  /* =========================
     白カード：サイズ中間
     ========================= */
  .produce-card--ent,
  .ship-card{
    width: 520px;          /* PC750 → 中間 */
    min-height: 280px;     /* PC475 → 中間 */
    padding: 18px 18px;
  }

  /* 背景パネルはPCを使い続ける */
  .produce-card--ent::before,
  .ship-card::before{
    background-image: url('../../images/service/produce-panel_pc.jpg');
    border-radius: 15px;
  }

  /* =========================
     文字：PC→中間に落とす
     ========================= */
  .produce-card--ent .produce-card__heading,
  .ship-card .ship-card__heading{
    font-size: 22px;        /* PC32 → 26 → 22 */
    margin: 0 0 18px;
    text-align: center;
  }

  .produce-card--ent .produce-card__lead,
  .ship-card .ship-card__lead{
    font-size: 14px;        /* PC20 → 16 → 14 */
    line-height: 1.6;
    margin: 0 0 18px;
    max-width: 440px;       /* PC640 → 中間 */
    margin-left: auto;
    margin-right: auto;
  }

  .produce-card--ent .produce-card__body{
    font-size: 14px;        /* PC24 → 18 → 14 */
    line-height: 1.6;
    margin: 0 0 18px;
    max-width: 320px;       /* PC620 → 中間 */
    margin-left: auto;
    margin-right: auto;
  }

  .ship-card .ship-card__body{
    font-size: 14px;        /* PC24 → 18 → 14 */
    line-height: 1.6;
    margin: 0 0 18px;
    max-width: 320px;       /* PC530 → 中間 */
    margin-left: auto;
    margin-right: auto;
  }

  .ship-card .ship-card__note{
    font-size: 14px;        /* PC18 → 中間 */
    line-height: 1.6;
    margin: 18px 0 24px;
    max-width: 480px;       /* PC620 → 中間 */
    margin-left: auto;
    margin-right: auto;
  }

  /* =========================
     SNS行：中間
     ========================= */
  .produce-card--ent .produce-card__sns{
    font-size: 18px;        /* PC24 → 中間 */
  }

  .produce-card--ent .sns-arrow{
    width: 18px;
    height: 18px;
  }

  .produce-card--ent .produce-instagram{
    width: 40px;            /* PC48 → 中間 */
  }

  /* =========================
     写真：中間（absoluteのまま）
     ========================= */
  .produce-photo--ent{
    right: 0;
    top: -30px;             /* PC:-50 → 中間 */
  }

  .ship-photo{
    right: 0;
    bottom: -30px;          /* PC:-50 → 中間 */
  }

  .produce-photo--ent img,
  .ship-photo img{
    width: 380px;           /* PC500 → 中間 */
    border-radius: 26px;    /* PC30 → 中間 */
  }

  /* =========================
     船舶ボタン：中間
     ========================= */
  .ship-card__btn .btn--rect.btn--fill-rect-gray{
    font-size: 16px;        /* PC20 → 中間 */
    -webkit-text-stroke: 1px #FFFFFF;
    text-stroke: 1px #FFFFFF;
  }
}


/* ===============================
   Produce & Ship（SP完成版：〜767）
   =============================== */
@media (max-width: 767px){

  .u-pc{ display:none; }

  /* セクション全体 */
  .service-block--produce{
    padding-top: 60px;
    padding-bottom: 80px;
    margin: 0;
  }

  /* =========================================================
     2つのブロック共通
     - 456〜767：中央に寄せる“箱幅”を持たせる（=余白が増える）
     - 〜455：後述の追加メディアで width:100% に切り替えて余白ゼロ
     ========================================================= */
  .produce-group--ent,
  .ship-group{
    position: relative;
    width: min(430px, 100%); /* ← ここは好みで 390/414/430 等に変更OK */
    margin: 0 auto 10px;     /* ← 456〜767は中央寄せで余白が自然に増える */
    overflow: visible;
    box-sizing: border-box;
  }

  /* 船舶は上にかぶせたいのでここで調整 */
  .ship-group{
    margin-top: -100px; /* 必要なら微調整 */
  }

  /* ===============================
     h2（Figma：24）
     =============================== */
  .produce-heading-wrap{
    max-width: none;
    margin: 0 auto 16px;
    padding-left: 0;
    text-align: center;
  }

  .service-title--produce{
    font-size: 24px;
    margin: 0 auto 30px;
    text-align: center;
  }

  .ship-heading-wrap{
    width: min(430px, 100%);  /* ←この430が “赤線の位置” になる */
    margin: 0 auto 16px;      /* ←箱自体は中央 */
    padding-right: 0;
    text-align: right;        /* ←箱の中で右寄せ */
  }

  .ship-heading{
    font-size: clamp(16px, 5.1vw, 24px);
    margin: 0 0 20px;
    text-align: right;
  }

  /* ===============================
     白いカード（テキスト背景）共通
     =============================== */
  .produce-card--ent,
  .ship-card{
    position: relative;
    width: 230px;
    min-height: 275px;
    padding: 14px;
    box-sizing: border-box;

    margin-left: 0;
    margin-right: auto;

    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center; /* ←中身ブロックを“配置として”中央に */
  }

  /* 背景パネル画像（共通） */
  .produce-card--ent::before,
  .ship-card::before{
    content:"";
    position:absolute;
    inset:0;
    background-image: url('../../images/service/produce-panel_sp.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 15px;
    z-index:-1;
  }

  /* =========================================================
     テキスト：文章は左揃え / ブロックは中央配置
     - “max-width + margin:0 auto” で中央に見せる
     ========================================================= */
  .produce-card--ent .produce-card__heading,
  .produce-card--ent .produce-card__lead,
  .produce-card--ent .produce-card__body,
  .ship-card .ship-card__heading,
  .ship-card .ship-card__lead,
  .ship-card .ship-card__body,
  .ship-card .ship-card__note{
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;   /* ←文章は左 */
  }

  /* “中央に見える幅” */
  .produce-card--ent .produce-card__heading,
  .produce-card--ent .produce-card__lead{
    max-width: 190px;
  }

  .produce-card--ent .produce-card__body{
    max-width: 200px;
  }

  .ship-card .ship-card__heading,
  .ship-card .ship-card__lead,
  .ship-card .ship-card__note{
    max-width: 190px;
  }

  .ship-card .ship-card__body{
    max-width: 160px;
  }

  /* h3：16 */
  .produce-card--ent .produce-card__heading,
  .ship-card .ship-card__heading{
    font-size: 16px;
    margin: 0 0 10px;
    line-height: 1.4;
  }

  /* lead：11 */
  .produce-card--ent .produce-card__lead,
  .ship-card .ship-card__lead{
    font-size: 11px;
    line-height: 1.6;
    margin: 0 0 10px;
  }

  /* body：10 */
  .produce-card--ent .produce-card__body,
  .ship-card .ship-card__body{
    font-size: 10px;
    line-height: 1.6;
    margin: 0 0 10px;
  }

  /* note：10（船舶のみ） */
  .ship-card .ship-card__note{
    font-size: 10px;
    line-height: 1.6;
    margin: 0;
  }

  /* ===============================
     Produce（SP）：SNS行
     =============================== */
  .produce-card--ent .produce-sns-row{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
  }

  .produce-card--ent .produce-card__sns{
    font-size: 12px;
    margin: 0;
  }

  .produce-card--ent .sns-arrow{
    width: 14px;
    height: 14px;
    display: block;
  }

  .produce-card--ent .produce-instagram{
    width: 32px;
    height: 32px;
    display: block;
    margin: 0;
  }

  .produce-card--ent .produce-instagram img{
    width: 100%;
    height: 100%;
    display: block;
  }

  /* ===============================
     写真：210×240（右寄り＆カード下側に重なる）
     =============================== */
  .produce-photo--ent,
  .ship-photo{
    position: absolute;
    right: 0;
    z-index: 1;
  }

  .produce-photo--ent{ top: -20px; }
  .ship-photo{ bottom: -20px; }

  .produce-photo--ent img,
  .ship-photo img{
    width: 210px;
    height: 240px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
  }

  /* ===============================
     船舶：ボタン
     =============================== */
  .ship-card__btn{
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
  }

  .ship-card__btn .btn--rect.btn--fill-rect-gray{
    font-size: 14px;
    line-height: 20px;
  }
}

/* =========================================================
   ★実機スマホ帯（〜455px）は左右余白ゼロにする
   - これで「常に両サイド20px」の挙動が消えます
   ========================================================= */
@media (max-width: 455px){
  .produce-group--ent,
  .ship-group{
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* 375以下の微調整（必要なら） */
@media (max-width: 375px){
  .ship-heading-wrap{
    margin-right: 0px;
  }
}
