/* ============================================================
   RESPONSIVE STYLES — style_1024.css
   Breakpoint: max-width 1024px
   使用ページ: index.html / asbestos.html / service.html（グリッド1列化・ステップカード縦並び）
   ============================================================ */

@media (max-width: 1024px) {
  :root { --gutter: 32px; }

  .en-label { font-size: 44px; }
  .hero__title { font-size: 56px; }
  .about__heading { font-size: 28px; }
  .service-card__title { font-size: 28px; }
  .cta-split__heading { font-size: 36px; }

  .about { padding-block: 80px; }
  .service, .news, .company, .blog { padding-block: 80px; }
  .cta-split__panel { padding-block: 80px; }
  .hero__body {
    padding-inline-start: 64px;
    padding-block-end: 64px;
  }

  .header__logo img { width: 240px; height: auto; }

  .about__inner { gap: 48px; }
  .blog__inner  { gap: 32px; }
  .news__inner  { gap: 40px; }

  .about__inner,
  .service__header,
  .company__header { grid-template-columns: 1fr; }

  .about__right { padding-block-start: 0; }
  .service__header-right,
  .company__header-right { padding-block-start: 0; }

  .service__cards { grid-template-columns: 1fr 1fr; }

  /* Asbestos page */
  .page-hero__label-group { left: 64px; top: 180px; }
  .page-hero__content     { left: 64px; }

  .p-breadcrumb .container { padding-inline-start: 60px; }
  .p-news__inner,
  .p-article__container,
  .p-privacy__inner { padding-inline: 60px; }
  /* .p-company__inner { padding-inline: 60px; } */

  /* 6-image gallery: columns become flexible */
  .asb-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  /* padding-top hack: 203/262 = 77.48% */
  .asb-gallery__item { width: 100%; height: 0; padding-top: 77.48%; position: relative; overflow: hidden; }
  .asb-gallery__item img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

  /* ステップカード → 1024px から縦並び・全幅 */
  .asb-steps {
    flex-direction: column;
    align-items: stretch;
    padding-top: 48px;
  }

  .asb-step {
    width: 100% !important;
    height: auto;
    min-height: 100px;
    padding-top: 56px;
  }

  /* 縦並び矢印 → 下向き（次cardのcircleと重ならないよう下マージン確保） */
  .asb-step__arrow {
    align-self: center;
    transform: rotate(90deg);
    margin-block: 16px 52px;
    position: relative;
    z-index: 2;
  }

  /* ===== CSR/社会貢献 PAGE ===== */
  .p-csr-social__title-ja { font-size: 42px; }
  .p-csr-social__head { padding-left: 80px; }
  .p-csr-social__body { padding-left: 80px; }
  .p-csr-social__lead { font-size: 16px; }
  .p-csr-social__photo img { width: 320px; height: 224px; }
  .p-csr-cards__item { padding: 40px 28px 40px 36px; }
  .p-csr-cards__img { width: 140px; height: 140px; margin-right: 28px; }
  .p-csr-cards__title { font-size: 18px; }
  .p-csr-cards__text { font-size: 14px; }

  /* ===== SDGs PAGE ===== */
  .p-sdgs__title-ja { font-size: 42px; }
  .p-sdgs__section-heading { font-size: 22px; }
  .p-sdgs__sub-heading { font-size: 22px; }
  .p-sdgs-item__img { width: 140px; height: 140px; }
  .p-sdgs-item__title { font-size: 15px; }
  .p-sdgs-item__text { font-size: 13px; }

  /* ===== ACTION PLAN PAGE（行動計画） ===== */
  .p-action-plan__title-ja { font-size: 42px; }
  .p-action-plan__subtitle { font-size: 24px; }
  .p-action-plan__intro { font-size: 16px; }
  .p-action-plan__body { padding-left: 60px; }

  /* ===== KODOMO CAFETERIA PAGE（こども食堂） ===== */
  .p-kodomo__breadcrumb .container { padding-inline: 60px; }
  .p-kodomo__inner { padding-inline: 60px; }
  .p-kodomo__title-ja { font-size: 42px; }
  .p-kodomo__body { padding-left: 60px; }
  .p-kodomo__subtitle { font-size: 24px; }
  .p-kodomo__text { font-size: 16px; }
  .p-kodomo__images { gap: 32px; }
  .p-kodomo__img-item { width: 430px; height: 573px; }

  /* ===== VOLUNTEER PAGE（ボランティア活動） ===== */
  .p-volunteer__breadcrumb .container { padding-inline: 60px; }
  .p-volunteer__inner { padding-inline: 60px; }
  .p-volunteer__title-ja { font-size: 42px; }
  .p-volunteer__body { padding-left: 40px; }
  .p-volunteer__subtitle { font-size: 24px; }
  .p-volunteer__text { font-size: 16px; }
  .p-volunteer__divider { margin-left: 40px; }
  .p-volunteer__images { margin-left: 40px; gap: 32px 32px; }

  /* ===== SERVICE TOP PAGE ===== */
  .p-service-intro { padding-block: 80px 60px; }
  .p-service-intro__inner {
    grid-template-columns: 1fr;
    padding-inline: 60px;
    gap: 32px;
  }
  .p-service-intro__en { font-size: 44px; }
  .p-service-intro__catch { font-size: 20px; margin-top: 36px; }
  /* PC2カラム時の右列オフセット用margin-topをリセット */
  .p-service-intro__text { margin-top: 0; }
  .p-service-section__inner { padding-inline: 60px; padding-block: 72px 80px; }
  .p-service-section__cat-ja { font-size: 28px; }
  .p-service-section__catch { font-size: 18px; margin-top: 16px; }
  .p-service-section__desc { font-size: 15px; }
  /* catch + desc の横並びgap・margin を縮小 */
  .p-service-section__waku,
  .p-service-section__waku2,
  .p-service-section__waku3 {
    gap: 60px;
    margin: 60px 0;
  }
  .p-service-hero { height: 440px; }
  .p-service-row { height: auto; min-height: 240px; }
  .p-service-item { padding: 0 15px; gap: 24px; }
  .p-service-item__img { width: 140px; height: 140px; }
  .p-service-item__label { font-size: 18px; }
  .p-service-item__text { font-size: 13px; }

  /* ===== 施工管理試験 PAGE ===== */
  .p-shikoku__heading { font-size: 26px; }
  .p-shikoku-photos { gap: 16px; }
}

/* ---- recruit.html ---- */
@media (max-width: 1024px) {
  .p-recruit__worklife-label {
    font-size: 17px;
    padding: 12px 24px;
    white-space: normal;
  }
  .p-recruit__slider-item {
    width: 260px;
    height: 195px;
  }
  .p-recruit__person-card {
    width: 260px;
  }
  .p-recruit__person-img-wrap img {
    height: 320px;
  }
  .p-recruit__req-table th {
    width: 160px;
    font-size: 15px;
  }
  .p-recruit__req-table td {
    font-size: 15px;
  }
  /* タブボタン */
  .p-recruit__tabs {
    max-width: 100%;
    gap: 12px;
  }
  .p-recruit__tab-btn {
    flex: 1;
    height: 88px;
    font-size: 20px;
    grid-template-columns: 36px 1fr 36px;
    padding: 0 16px;
  }
  .p-recruit__tab-icon svg {
    width: 36px;
    height: 36px;
  }
  /* ヒーローキャッチ */
  .p-recruit__hero-catch {
    font-size: 54px;
  }
  /* 募集要項 */
  .p-recruit__requirements {
    padding: 140px 0 60px;
  }
}
