/* =========================================================
   みんなの社食 採用LP / style-mobile.css （〜1200px）
   ========================================================= */

@media (max-width: 1200px) {
  :root { --header-h: 64px; }

  /* 横スクロール防止（fv__visualの+20px等によるbody幅漏れを塞ぐ） */
  html, body { overflow-x: hidden; }

  /* PCのみの改行はSPで無効化 */
  .pc-br { display: none; }
  .sp-br { display: inline; }

  /* カードを1つずつではなくセクションまとめてフェードイン */
  .reveal { transition-delay: 0ms !important; }

  /* 代表メッセージ：1カラムに */
  .message__grid { grid-template-columns: 1fr; gap: 36px; }
  .message__photos { gap: 14px; }
  .message__photos-col { gap: 14px; }
  .message__photos-col--down { margin-top: 32px; }

  .section { padding: 52px 0; }
  .section__inner { padding: 0 20px; }
  .section__head { margin-bottom: 16px; }
  .section__label { font-size: 16px; }
  .section__title { font-size: 28px; }
  .section__desc { font-size: 15px; }

  /* Header */
  .site-header__nav { display: none; }
  .site-header__tagline { display: none; }
  .header-sp-label { display: block; font-size: 10px; margin-left: 8px; font-weight: 800; line-height: 1.15; }
  .site-header__inner { gap: 0; padding: 0 0 0 16px; }
  .site-header__logo-img { height: 44px; }
  .logo-text { font-size: 19px; }
  .site-header__cta { display: none; }
  .hamburger-btn { display: flex; margin-left: auto; height: var(--header-h); width: var(--header-h); }

  /* デックウィジェット: モバイルは非表示（メニュー内に埋め込み） */
  .deck-widget { display: none !important; }

  /* FV */
  .fv { min-height: auto; padding: calc(var(--header-h) + 32px) 20px 24px; }
  .message__photos { margin-top: 0; }
  .fv__inner { grid-template-columns: 1fr; gap: 32px; padding-left: 0; }
  .fv__visual { order: -1; width: calc(100% + 20px); margin-right: -20px; }
  .fv__copy { padding: 0; }
  .fv__catch { font-size: 34px; white-space: normal; margin-bottom: 16px; }
  .fv__lead { font-size: 16px; }
  .fv__cta { display: none; }
  .placeholder--fv,
  .fv__video { aspect-ratio: 1/1; min-height: 0; height: auto; border-radius: var(--radius-card) 0 0 var(--radius-card); }
  .fv__scroll { display: none; }

  /* Message */
  .message__bg { left: 50%; transform: translateX(-50%); font-size: 24vw; }
  .message__body { grid-template-columns: 1fr; gap: 32px; }
  .message__photo { position: static; max-width: 280px; margin: 0 auto; }
  .message__catch { font-size: 24px; margin-bottom: 24px; }
  .message__sign { text-align: right; }
  .message__text p { font-size: 16px; margin-bottom: 1em; }

  /* note: 横スワイプ */
  .note .section__inner { overflow: visible; }
  .note__grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 16px; padding: 8px 20px 32px; margin: -8px -20px 0;
    scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .note__grid::-webkit-scrollbar { display: none; }
  .note-card { flex-shrink: 0; width: 76vw; scroll-snap-align: start; }
  .note__more { margin-top: 8px; }

  /* message__photos: 横無限ループ */
  .message__photos { overflow: hidden; display: block; }
  .message__photos-track {
    display: flex; width: max-content;
    animation: messageScroll 14s linear infinite;
  }
  .message__photos-track .photo {
    flex-shrink: 0; width: 160px; height: 160px; margin-right: 12px;
    border-radius: 16px; overflow: hidden; aspect-ratio: 1 / 1;
  }
  .message__photos-track .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  @keyframes messageScroll {
    to { transform: translateX(-50%); }
  }

  /* Business */
  .business__video { margin-bottom: 32px; }

  /* sanpo 横スクロール（noteカードと同じ） */
  .business .section__inner { overflow: visible; }
  .sanpo-list {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 16px; padding: 8px 20px 40px; margin: -8px -20px 0;
    scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .sanpo-list::-webkit-scrollbar { display: none; }

  /* Sanpo → why-card と完全一致 */
  .sanpo {
    display: flex; flex-direction: column;
    background: #fff; border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 28px 24px; gap: 0; margin-bottom: 0;
    flex-shrink: 0; width: 82vw; scroll-snap-align: start;
  }
  .sanpo--img-left { flex-direction: column; }
  .sanpo__image {
    order: -1; width: 100%; aspect-ratio: 3 / 2;
    border-radius: 14px; overflow: hidden; margin-bottom: 24px;
    position: relative;
  }
  .sanpo__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .sanpo__image .framed-photo,
  .sanpo__image .placeholder--framed {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    aspect-ratio: unset; border-radius: 0;
  }
  .sanpo__image--left { order: -1; }
  .sanpo__text,
  .sanpo--img-left .sanpo__text { padding: 0; }
  .sanpo__title { font-size: 21px; margin-bottom: 16px; line-height: 1.5; }
  .sanpo__text p { font-size: 16px; }

  /* セクション背景の角丸 */
  .section--teal,
  .section--orange { border-radius: 24px; }
  .recruit.section--teal { border-radius: 24px 24px 0 0; }

  .proof { grid-template-columns: 1fr; gap: 40px; }
  .proof__logo-grid { grid-template-columns: repeat(2, 1fr); }

  /* Why now 横スクロール */
  .why-now .section__inner { overflow: visible; }
  .why-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 16px; padding: 8px 20px 40px; margin: -8px -20px 0;
    scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    grid-template-columns: unset; align-items: unset;
  }
  .why-grid::-webkit-scrollbar { display: none; }
  .why-card {
    padding: 28px 24px;
    flex-shrink: 0; width: 82vw; scroll-snap-align: start;
  }
  .why-card__title { font-size: 21px; }

  /* Culture カルーセル：フルブリード解除 */
  .culture-carousel { width: auto; margin-left: 0; }

  /* Culture カルーセル：矢印・ドット非表示 */
  .culture-carousel__arrow { display: none; }
  .culture-carousel__dots { display: none; }

  /* Culture 横スクロール（JS カルーセル無効化後） */
  .culture .section__inner { overflow: visible; }
  .culture-carousel__viewport {
    display: flex;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 8px 20px 40px; margin: -8px -20px 0;
    scroll-padding-left: 20px;
  }
  .culture-carousel__viewport::-webkit-scrollbar { display: none; }
  .culture-carousel__track { transform: none !important; transition: none !important; gap: 16px; flex-shrink: 0; }

  /* Culture カルーセル → why-card と完全一致 */
  .culture-slide { flex: 0 0 82vw; scroll-snap-align: start; }
  .culture-slide { align-self: stretch; }
  .culture-card {
    display: flex; flex-direction: column;
    grid-template-columns: unset; min-height: auto;
    padding: 28px 24px; overflow: hidden; height: 100%;
    box-sizing: border-box;
  }
  .culture-card__photo {
    display: block;
    order: -1; width: 100%; aspect-ratio: 3 / 2;
    border-radius: 14px; overflow: hidden;
    margin: 0 0 24px; min-height: 0; flex-shrink: 0;
  }
  .culture-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .culture-card__body { padding: 0; display: block; }
  .culture-card__title { font-size: 21px; margin-bottom: 12px; }
  .culture-card__text { font-size: 16px; }

  /* Culture */
  .culture__halves { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .culture__half { padding: 28px 24px; }
  .culture__half h3 { font-size: 21px; }
  .benefits { padding: 32px 22px; }
  .benefits__list { grid-template-columns: 1fr; }

  /* Recruit */
  .job-grid { grid-template-columns: 1fr; }
  .recruit__positions { grid-template-columns: 1fr; gap: 20px; }
  .position-card { padding: 28px 24px; }
  .recruit__casual { padding: 32px 22px; }

  /* Footer */
  .site-footer__brand { width: 100%; text-align: center; }
  .footer-logo { height: 60px; margin: 0 auto; }
  .site-footer__nav { column-gap: 16px; row-gap: 4px; justify-content: center; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }

  /* Floating CTA 表示 */
  .floating-cta { display: flex; }
  .site-footer__copy { padding-bottom: 63px; flex-direction: column; align-items: center; gap: 4px; }
  .site-footer__copy-credit { text-align: center; white-space: normal; }

  /* トップへ戻るボタン：SP は floating CTA の上 */
  .back-to-top { right: 16px; bottom: 80px; }
}

@media (max-width: 600px) {
  .fv__catch { font-size: 32px; }
  .section__title { font-size: 24px; }
  .proof__logo-grid { grid-template-columns: repeat(2, 1fr); }
  .btn--lg { padding: 16px 28px; font-size: 16px; }
  .floating-cta { font-size: 14px; }
}
