/* ============================================================
   RESPONSIVE STYLES — style_800.css
   Breakpoint: max-width 800px
   使用ページ: asbestos.html / service.html / shikoku-kanri.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 { padding-inline: 48px; }
  /* .p-company__inner { padding-inline: 48px; } */

  /* 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); }
  /* 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%; }

  /* 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__head { padding-left: 40px; }
  .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-shikoku__heading { font-size: 24px; }
  .p-shikoku__subheading { font-size: 17px; }
  .p-shikoku__lead { font-size: 14px; line-height: 2; }
  /* 800px以下で写真を2列に変更 */
  .p-shikoku-photos {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .p-shikoku-photos__label { font-size: 14px; }

  /* ===== 補償業務 PAGE ===== */
  .p-hosho__heading { font-size: 26px; }
  .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 {
    grid-template-columns: 1fr;
  }
  .p-hosho-table__sep {
    width: 100%;
    height: 1px;
  }
}

/* ---- recruit.html ---- */
@media (max-width: 800px) {
  .p-recruit__worklife-body {
    padding: 48px 24px 40px;
  }
  .p-recruit__worklife-label {
    font-size: 15px;
    padding: 10px 20px;
  }
  .p-recruit__worklife-text {
    font-size: 15px;
    line-height: 2.2;
  }
  .p-recruit__slider-item {
    width: 220px;
    height: 165px;
  }
  .p-recruit__numbers {
    padding: 60px 24px;
  }
  .p-recruit__numbers-head {
    margin-left: 60px;
    margin-bottom: 40px;
  }
  .p-recruit__numbers-head .p-recruit__section-label {
    font-size: 28px;
  }
  .p-recruit__numbers-head .p-recruit__section-label_bg {
    font-size: 48px;
  }
  .p-recruit__numbers-head .p-recruit__section-title {
    font-size: 18px;
  }
  .p-recruit__numbers-grid {
    gap: 24px;
  }
  .p-recruit__chart-row {
    gap: 20px;
  }
  /* 棒グラフ：800px以下で縦並び */
  .p-recruit__chart-row--bars .p-recruit__stat-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  /* ドーナツ：800px以下でも3列を維持（カード幅を縮小） */
  .p-recruit__chart-row--donuts .p-recruit__stat-card {
    flex: 1 1 180px;
    max-width: 280px;
  }
  .p-recruit__donut-wrap {
    height: 240px;
  }
  .p-recruit__people-bg {
    padding: 60px 24px 80px;
  }
  .p-recruit__people-head {
    margin-left: 60px;
    margin-bottom: 40px;
  }
  .p-recruit__people-head .p-recruit__section-label {
    font-size: 28px;
  }
  .p-recruit__people-head .p-recruit__section-label_bg {
    font-size: 48px;
  }
  .p-recruit__people-head .p-recruit__section-title {
    font-size: 18px;
  }
  .p-recruit__people-grid {
    gap: 24px;
  }
  .p-recruit__person-card {
    width: calc(50% - 12px);
    min-width: 140px;
  }
  .p-recruit__person-num {
    font-size: 48px;
  }
  .p-recruit__person-name {
    font-size: 12px;
    padding: 8px 10px;
  }
  .p-recruit__culture-photo {
    width: 150px;
    height: 209px;
  }
  /* タブボタン */
  .p-recruit__tabs {
    max-width: 100%;
    gap: 10px;
  }
  .p-recruit__tab-btn {
    flex: 1;
    height: 80px;
    font-size: 18px;
    grid-template-columns: 32px 1fr 32px;
    padding: 0 14px;
  }
  .p-recruit__tab-icon svg {
    width: 32px;
    height: 32px;
  }
  /* ヒーローキャッチ */
  .p-recruit__hero-catch {
    font-size: 44px;
  }
  /* 募集要項 */
  .p-recruit__requirements {
    padding: 140px 0 60px;
  }
  .p-recruit__schools-list {
    grid-template-columns: 100px 1fr;
    font-size: 14px;
  }
}
