/* ===========================================
    recruit_r.css 〈スマホ最適化専用〉
    対象幅：0〜768px
=========================================== */
@media screen and (max-width: 768px) {

  /* -------------------------
        基本設定
  -------------------------- */
  body {
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.2px;
  }

  img {
    max-width: 100%;
    height: auto;
  }


  /* =========================
        HERO（トップ画像）
  ========================= */
  .recruit-hero {
    height: auto;
    padding: 40px 0 60px;
    background-position: center;
  }

  .hero-overlay h1 {
    font-size: 34px;
    margin-bottom: 20px;
  }

  .hero-copy-card {
    width: 90%;
    margin: 0 auto;
    padding: 26px 20px;
    background: rgba(255,255,255,0.82);
    /* border-radius: 16px; */
  }

  .hero-copy-card p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 12px;
  }

  .hero-copy-card .hero-em {
    font-size: 22px;
    font-weight: 700;
  }



  /* =========================
        WORK（説明）
  ========================= */
  .work-section h2 {
    font-size: 26px;
    line-height: 1.4;
    margin-bottom: 22px;
    text-align: center;
  }

  .work-inner {
    width: 90%;
    margin: 0 auto;
  }

  .work-list li {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .work-photo-button {
    text-align: center;
    margin: 20px auto 15px;
  }

  .work-btn {
    padding: 3px 15px;
    font-size: 10px;
  }



  /* =========================
        INTERVIEW
  ========================= */
  .interview-title {
    font-size: 30px;
    text-align: center;
    margin-bottom: 20px;
  }

  .interview-box {
    width: 92%;
    margin: 0 auto;
  }

  .interview-box summary {
    font-size: 17px;
    padding: 10px 0px;
  }

  .answer {
    padding: 12px 8px 25px;
    font-size: 15px;
    line-height: 1.8;
  }



  /* ==================================
        募集要項（タブ + 白カード）
  ================================== */

  /* 背景ミント */
  .recruit-bg {
    padding: 50px 0 70px;
  }

  /* 黒帯タイトル */
  .recruit-title-band h2 {
    color: #fff;
    font-size: 25px;
    letter-spacing: 2px;
    margin: 0;
    padding: 14px 0;
    font-weight: 500;
    text-align: center;
  }


  /* ========== タブ（2列×2行） ========== */
  .tabs {
    display: flex;
    flex-wrap: wrap;
    width: 92%;
    margin: 0 auto 6px;
    gap: 8px;
  }

  .tabs .tab {
    width: calc(50% - 4px);
    padding: 10px 4px;
    font-size: 10px;
    text-align: center;
    /* background: #d9d9d9; */
    border-radius: 12px 12px 0 0;
    border: none;
  }

  .tabs .tab.active {
    background: #ffffff;
    font-weight: 700;
  }


  /* ========== 白カード（コンテンツ） ========== */
  .recruit-info {
    width: 92%;
    margin: 0 auto;
    padding: 18px 20px 30px;
    border-radius: 0 0 16px 16px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  }

  .recruit-info ul li {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid #eee;
  }


  /* ========== タブ中身（個別枠） ========== */
  .tab-content {
    /* background: #fff; */
    border-radius: 0 0 10px 10px;
    padding: 20px 20px;
  }


  /* フッター */
  footer {
    padding-top: 20px !important;
  }
}

@media screen and (max-width: 430px) {
  .welfare-text {
    font-size: 10px;        /* ← 好きに微調整してOK */
    line-height: 1.7;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    padding: 0 10px;        /* ← スマホで読みやすくするための余白 */
  }
}

@media screen and (max-width: 430px) {
  .welfare-section p {
    white-space: normal !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
    word-break: break-word !important;
    padding: 0 10px;
  }
}

@media screen and (max-width: 430px) {
  .welfare-image {
    height: auto !important;   /* ← 高さ固定を解除 */
    object-fit: contain !important; /* ← 切れずに全体を表示 */
    max-height: none !important;
    width: 100%;
  }
}

@media screen and (max-width: 430px) {
  .welfare-section h2 {
    font-size: 18px !important;
    line-height: 1.4;
    margin-bottom: 20px;
    white-space: normal;
  }
}

@media screen and (max-width: 430px) {
  img.welfare-image {
    width: 100% !important;
    height: auto !important;
    max-height: 200px !important;  /* ← ここが重要 */
    object-fit: contain !important;
  }
}

@media screen and (max-width: 430px) {
  img.work-image {
    width: 100% !important;
    height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
  }
}


@media screen and (max-width: 430px) {
  .welfare-section {
    padding: 15px 5% 0px !important;
  }
}

@media screen and (max-width: 430px) {
  .interview {
    padding: 20px 0 50px !important;
  }
}

@media screen and (max-width: 430px) {
  .work-section h2 {
    font-size: 15px !important;
    line-height: 1.3;
    margin-bottom: 15px;
  }

  .work-list li {
    font-size: 13px !important;
    line-height: 1.6;
    margin-bottom: 6px;
  }

  .work-section {
    padding: 12px !important;   /* ← セクション自体も少し縮める */
  }

  .work-inner {
    width: 92% !important;         /* ← 枠を少し細くして読みやすく */
  }
}


@media screen and (max-width: 430px) {

  /* 見出しタイトル（伊藤商事の仕事とは？） */
  .work-section-title,
  .work-section h2 {
    font-size: 22px !important;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1dvh !important;   /* ← これが重なりを解消する */
    margin-bottom: 15px !important;
    text-align: center;
  }

  

  /* サブテキスト（楽しく一緒に仕事をしていく〜） */
  .work-section-subtitle {
    font-size: 14px !important;
    line-height: 1.6;
    opacity: 1 !important;
    text-align: center;
    display: block;
    margin-bottom: 20px;
  }

  /* hero の下余白補正（重なり防止） */
  .recruit-hero {
    margin-bottom: 0px !important;
  }
}


@media screen and (max-width: 430px) {

  /* --- RECRUIT 黒帯調整 --- */
  .recruit-hero h1 {
    font-size: 32px !important;
    padding: 18px 0 !important;
  }


  /* --- HERO 全体コンパクト化 --- */
  .recruit-hero {
    padding-top: 20px !important;
    padding-bottom: 30px !important;
    background-size: cover !important;   /* ← 伸び防止 */
    background-position: center top !important;
  }


  /* --- 白カード（文章ブロック） --- */
  .hero-copy-card {
    padding: 16px 16px !important;
    margin-top: 15px !important;
    /* border-radius: 12px !important; */
  }

  .hero-copy-card p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
  }

  .hero-copy-card .hero-em {
    font-size: 20px !important;
  }
}

@media screen and (max-width: 430px) {

  /* HERO 全体：高さ固定を解除 */
  .recruit-hero {
    height: auto !important;
    background-position: center center !important;
    padding-bottom: 40px;
  }

  /* 黒帯 RECRUIT の下の本来のテキスト位置ズレ対策 */
  .hero-overlay {
    position: relative !important;
    inset: auto !important;
    padding: 30px 20px !important;
    display: block !important;
    text-align: center !important;
  }

  /* 白カード → SP ではカードとして成立しないので縦ブロック化 */
  .hero-copy-card {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;

    padding: 20px !important;
    margin-top: 20px;

    background: rgba(255,255,255,0.85);
    box-sizing: border-box;
  }

  /* 白カード内の文章 */
  .hero-copy-card p {
    font-size: 18px !important;
    line-height: 1.6 !important;
    white-space: normal !important;
  }

  /* 強調部分 */
  .hero-em {
    font-size: 26px !important;
  }

  /* H1 タイトル（黒帯とは別のもの） */
  .hero-overlay h1 {
    font-size: 30px !important;
    margin-bottom: 10px;
    white-space: normal !important;
    position: static !important;
    line-height: 1.3;
  }
}

@media screen and (max-width: 430px) {

  /* RECRUIT 黒帯を全幅にする */
  .hero-overlay h1 {
    display: block;
    width: 100vw !important;
    margin-left: calc(50% - 50vw); /* ← スマホで中央起点から画面端へ伸ばす */
    background: #4d4c4c !important;
    padding: 14px 0 !important;   /* ← 高さ調整（12〜18で微調整可） */
    font-size: 32px !important;
    text-align: center;
  }

  /* 黒帯と白カードの間のバランス */
  .recruit-hero {
    padding-top: 10px !important;
  }
}

@media screen and (max-width: 430px) {

  .work-section {
    padding: 20px 5% !important;     /* 左右余白を確保 */
    margin: 0 auto !important;       /* 中央寄せ */
    width: 100% !important;          /* はみ出し防止 */
    box-sizing: border-box !important;
  }

  .work-inner {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 5% !important;        /* ← li が右に飛ばないための余白 */
  }
}

@media screen and (max-width: 430px) {
  .work-list li {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
}

@media screen and (max-width: 430px) {

  .work-list li {
    font-size: 14px !important;      /* ← 読みやすい最適値 */
    line-height: 1.5 !important;     /* ← 今より少し締める */
    margin-bottom: 12px !important;  /* 少しゆとり */
    padding-left: 6px !important;    /* ← 「・」の位置調整 */
    text-indent: -6px !important;    /* ← 「・」が揃うように */
  }

  /* 左右余白も少しだけ狭くして読みやすく */
  .work-inner {
    width: 94% !important;
  }
}

@media screen and (max-width: 430px) {

  .work-list {
    padding-left: 0 !important;
  }

  .work-list li {
    position: relative;
    padding-left: 1.2em !important; /* 左余白（ドットと字間） */
    text-indent: -1.2em !important; /* ← 1行目だけ左に戻す */
    line-height: 1.65 !important;
  }
}

@media screen and (max-width: 430px) {
  .work-list {
    padding: 0 !important;     /* ← 右の 40px を完全に消す */
  }
}

@media screen and (max-width: 430px) {
  /* SP — 黒帯RECRUITを表示 */
  .recruit-title-sp h1 {
    display: block;
    width: 100%;
    background: #4d4c4c;
    color: #fff;
    padding: 20px 0;
    font-size: 30px;
    margin: 0;
    text-align: center;
  }
  .hero-overlay h1 {
    display: none !important; /* ← SP ではもともとの H1 を消す */
  }
}

/* PC — 黒帯RECRUITを消す */
@media screen and (min-width: 431px) {
  .recruit-title-sp {
    display: none !important;
  }
}

@media screen and (max-width: 430px) {
  .recruit-title-sp h1 {
    padding: 3px 0 !important;
    font-size: 20px !important;
  }
}

@media screen and (max-width: 768px) {
  .recruit-title-sp {
    width: 100%;
    background: #4d4c4c;
    color: white;
    text-align: center;
    padding: 2px;
    font-size: 30px;
  }

  .recruit-title-sp h1 {
    margin: 0 !important;
    padding: 14px 0 !important;
    color: #fff !important;          /* ← 白文字 */
    font-size: 20px !important;
    font-weight: 500;
    letter-spacing: 1px;
    text-align: center !important;   /* ← 中央 */
  }
}

@media screen and (max-width: 430px) {
  .recruit-title-sp h1 {
    color: #ffffff !important;
  }
}


.recruit-hero {
  min-height: 900px; /* デスクトップ基準 */
}

@media screen and (max-width: 1000px) {
  .recruit-hero {
    min-height: 600px;
  }
}


/* ===============================
   768px以下：HERO完全終了
================================ */
@media screen and (max-width: 768px) {

  /* HERO 全部殺す */
  .recruit-hero,
  .hero-overlay,
  .hero-copy-card {
    display: none !important;
  }

  /* SP用 RECRUIT だけ表示 */
  .recruit-title-sp {
    display: block !important;
    width: 100%;
    background: #4d4c4c;
    color: #fff;
    text-align: center;
  }

  .recruit-title-sp h1 {
    margin: 0;
    padding: 14px 0;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 1px;
  }
}

@media screen and (max-width: 768px) {
  .work-section h2 {
    margin-top: 20px !important;
  }
}

.instagram-link {
  text-align: center;
}

.instagram-link a {
  display: inline-block;
  background-color: #ea5703;
  color: #fff;
  text-decoration: none;
  font-size: clamp(16px, 20.357px + -0.435vw, 12px);
  font-weight: bold;

  padding: clamp(5.2px, -0.028px + 0.522vw, 10px)
           clamp(10.4px, -0.057px + 1.045vw, 20px);

  border-radius: clamp(10.4px, -0.057px + 1.045vw, 20px);
  white-space: nowrap;
  line-height: 1.2;
  margin-bottom: clamp(10.4px, -0.057px + 1.045vw, 20px);
}