/* ============================================================
   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,
  .p-security__inner,
  .p-greeting__inner,
  .p-plan__inner { padding-inline-start: 60px; }
  .p-company__inner { padding-inline: 60px var(--gutter); }

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

  .asb-gallery__item { width: 100%; height: auto; aspect-ratio: 262 / 203; }

  /* ステップカード → 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__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; }
}
