/* ============================================================
   RESPONSIVE STYLES — style_800.css
   Breakpoint: max-width 800px
   使用ページ: asbestos.html / service.html（ギャラリー2列・サイドバー縮小）
   ============================================================ */

@media (max-width: 800px) {
  /* Asbestos hero */
  .page-hero { height: 400px; }
  .page-hero__en    { font-size: 40px; }
  .page-hero__title { font-size: 22px; }
  .asb-quote        { font-size: 22px; }
  .page-hero__label-group { left: var(--gutter); top: 140px; }
  .page-hero__content     { left: var(--gutter); bottom: 16px; }

  .p-breadcrumb .container { padding-inline-start: 48px; }
  .p-news__inner,
  .p-article__container,
  .p-privacy__inner,
  .p-security__inner,
  .p-greeting__inner,
  .p-plan__inner { padding-inline-start: 48px; }
  .p-company__inner { padding-inline: 48px var(--gutter); }

  /* Asbestos components */
  .asb-cta-box      { padding: 24px; }
  .asb-address-box  { padding: 20px; }
  .asb-speed__header { font-size: 15px; }
  .asb-send__heading { font-size: 16px; }

  /* サイドバーを右に残しつつ幅を縮小 */
  .page-layout__inner {
    grid-template-columns: 1fr 170px;
    gap: 20px;
  }

  /* サイドバー高さ制限（縦スクロール） */
  .sidebar-nav {
    max-height: 400px;
    overflow-y: auto;
  }

  .sidebar-nav__link   { font-size: 12px; padding: 9px 12px; }
  .sidebar-nav__header { font-size: 12px; padding: 9px 12px; }

  /* 6-image gallery → 2列 */
  .asb-gallery { grid-template-columns: repeat(2, 1fr); }
  .asb-gallery__item { width: 100%; height: auto; aspect-ratio: 262 / 203; }

  /* 2列ギャラリー → 1列 */
  .asb-gallery2 { grid-template-columns: 1fr; gap: 24px; }

  /* 3列ギャラリー → 2列 */
  .asb-gallery3 { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Notice box */
  .asb-notice-box { padding: 24px 20px; }

  .asb-courses      { grid-template-columns: 1fr; }
  .asb-examples__list { grid-template-columns: 1fr; }

  .asb-cta-box__btns {
    flex-direction: column;
    align-items: center;
  }

  .btn-asb--green {
    min-width: auto;
    width: 100%;
    max-width: 400px;
  }

  .asb-qualifications__heading { font-size: 26px; }
  .asb-qualifications__lead    { font-size: 16px; }

  /* ===== CSR/社会貢献 PAGE ===== */
  .p-csr-social__title-ja { font-size: 36px; }
  .p-csr-social__body { padding-left: 40px; }
  .p-csr-social__lead { font-size: 15px; line-height: 2; }
  .p-csr-social__photo img { width: 100%; height: auto; }
  .p-csr-cards { grid-template-columns: 1fr; }
  .p-csr-cards__item { padding: 36px 28px; }
  .p-csr-cards__img { width: 120px; height: 120px; margin-right: 24px; }
  .p-csr-cards__title { font-size: 18px; }
  .p-csr-cards__text { font-size: 14px; }

  /* ===== ACTION PLAN PAGE（行動計画） ===== */
  .p-action-plan__title-ja { font-size: 36px; }
  .p-action-plan__subtitle { font-size: 22px; }
  .p-action-plan__intro { font-size: 15px; line-height: 2; }
  .p-action-plan__body { padding-left: 40px; }

  /* ===== KODOMO CAFETERIA PAGE（こども食堂） ===== */
  .p-kodomo__breadcrumb .container { padding-inline: 48px; }
  .p-kodomo__inner { padding-inline: 48px; }
  .p-kodomo__title-ja { font-size: 36px; }
  .p-kodomo__body { padding-left: 40px; margin-bottom: 60px; }
  .p-kodomo__subtitle { font-size: 22px; }
  .p-kodomo__text { font-size: 15px; line-height: 2; }
  .p-kodomo__images { gap: 24px; }
  .p-kodomo__img-item { width: 340px; height: 453px; }

  /* ===== VOLUNTEER PAGE（ボランティア活動） ===== */
  .p-volunteer__breadcrumb .container { padding-inline: 48px; }
  .p-volunteer__inner { padding-inline: 48px; }
  .p-volunteer__title-ja { font-size: 36px; }
  .p-volunteer__body { padding-left: 24px; margin-bottom: 40px; }
  .p-volunteer__subtitle { font-size: 22px; }
  .p-volunteer__text { font-size: 15px; line-height: 2; }
  .p-volunteer__divider { margin-left: 24px; margin-top: 40px; margin-bottom: 40px; }
  .p-volunteer__images { margin-left: 24px; gap: 24px 24px; }

  /* ===== SERVICE TOP PAGE ===== */
  .p-service-intro__inner { padding-inline: 48px; gap: 24px; }
  .p-service-intro__en { font-size: 40px; }
  .p-service-intro__catch { font-size: 18px; }
  .p-service-section__inner { padding-inline: 48px; padding-block: 60px 72px; }
  .p-service-section__cat-ja { font-size: 26px; }
  .p-service-section__waku,
  .p-service-section__waku2,
  .p-service-section__waku3 {
    gap: 40px;
    margin: 48px 0;
  }
  .p-service-hero { height: 360px; }
  .p-service-row { height: auto; min-height: 105px; }
  .p-service-item { padding: 0 15px; gap: 20px; }
  .p-service-item__img { width: 120px; height: 120px; }
  .p-service-item__label { font-size: 16px; }
  .p-service-item__text { font-size: 12px; }
  .p-service-section__head { margin-bottom: 40px; }

  /* ===== 補償業務 PAGE ===== */
  .p-hosho-survey__row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .p-hosho-survey__row--single { max-width: none; }
  .p-hosho-survey { gap: 32px; }
  .p-hosho-table__header,
  .p-hosho-table__body {
    grid-template-columns: 1fr;
  }
  .p-hosho-table__sep,
  .p-hosho-table__divider {
    width: 100%;
    height: 1px;
    align-self: auto;
  }
  .p-hosho__heading { font-size: 26px; }
}
