/* ============================================================
   logistics.css — 物流ページ固有スタイル
============================================================ */

/* ============================================================
   Page Hero
============================================================ */
.page-hero {
  margin-top: var(--header-height);
  background: var(--color-bg-gray);
  padding: 80px 0 72px;
}

.page-hero__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.page-hero__en {
  font-family: 'Manrope', sans-serif;
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 16px;
}

.page-hero__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.15em;
  line-height: 1;
  margin-bottom: 16px;
}

.page-hero__triangles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--color-primary);
  font-size: 12px;
}

/* ============================================================
   Shared Inner Container
============================================================ */
.l-inner {
  max-width: 848px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Section Head
============================================================ */
.l-section-head {
  text-align: center;
  margin-bottom: 64px;
}

.l-label {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  line-height: 1;
}

.l-label::before {
  content: '▶';
  font-size: 8px;
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
}

.l-section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.15em;
  line-height: 1.2;
}

/* ============================================================
   Sub-Section Block (Badge + Arrow + Heading)
============================================================ */
.l-sub-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.l-badge {
  background: var(--color-bg-gray);
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
  white-space: nowrap;
}

.l-badge-arrow {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--color-bg-gray);
  margin-top: 0;
  margin-bottom: 16px;
}

.l-sub-heading {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-primary);
  text-align: center;
  display: inline-block;
  padding: 13px 36px;
  background:
    linear-gradient(var(--color-primary), var(--color-primary)) top right,
    linear-gradient(var(--color-primary), var(--color-primary)) top right,
    linear-gradient(var(--color-primary), var(--color-primary)) bottom left,
    linear-gradient(var(--color-primary), var(--color-primary)) bottom left;
  background-size: 20px 1.5px, 1.5px 30px, 20px 1.5px, 1.5px 30px;
  background-repeat: no-repeat;
}

/* ============================================================
   H3 Heading with Divider
============================================================ */
.l-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.15em;
  line-height: 1.4;
  margin-top: 56px;
  margin-bottom: 12px;
}

.l-divider {
  height: 1px;
  background: rgba(0, 124, 54, 0.2);
  margin-bottom: 28px;
}

/* ============================================================
   Body Text
============================================================ */
.l-body {
  font-size: 18px;
  color: var(--color-text);
  line-height: 2;
  margin-bottom: 24px;
}

.l-body-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.l-body-block .l-body {
  margin-bottom: 0;
}

.l-body-block .l-body + .l-body {
  margin-top: 24px;
}

/* ============================================================
   Green Benefit Labels
============================================================ */
.l-benefit-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  margin-top: 40px;
  margin-bottom: 24px;
  display: block;
}

/* ============================================================
   Bullet List
============================================================ */
.l-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.l-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: var(--color-text);
  line-height: 1.6;
}

.l-bullets li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* ============================================================
   Japan Map
============================================================ */
.l-map-wrap {
  margin: 48px auto;
  text-align: center;
}

.l-map {
  width: 100%;
  max-width: 717px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ============================================================
   Sections
============================================================ */
.l-system {
  padding: 80px 0;
  background: var(--color-bg);
}

.l-quality {
  padding: 80px 0 0;
  background: var(--color-bg);
  /* 固定ヘッダー分のオフセット（アンカー遷移時に見出しが隠れないように） */
  scroll-margin-top: var(--header-height);
}

.l-products {
  padding: 0 0 100px;
  background: var(--color-bg);
}

/* ============================================================
   Step Flow (入庫〜配送の流れ)
============================================================ */
.l-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

.l-step {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.l-step__circle {
  width: 56px;
  min-width: 56px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  z-index: 1;
  margin-right: -28px;
  align-self: center;
}

.l-step__en {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  line-height: 1;
}

.l-step__num {
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.l-step__body {
  flex: 1;
  background: var(--color-bg-gray);
  border-radius: 8px;
  padding: 16px 16px 16px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 88px;
}

.l-step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  white-space: nowrap;
}

.l-step__text {
  font-size: 18px;
  color: var(--color-text);
  line-height: 1;
  white-space: nowrap;
}

.l-step-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 30px;
  padding-left: 20px;
}

.l-step-arrow::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--color-primary);
}

/* ============================================================
   Feature Box (計量納品)
============================================================ */
.l-feature-box {
  background: var(--color-bg-gray);
  border-radius: 8px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 40px 0;
}

.l-feature-box__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  line-height: 1;
}

.l-feature-box__text {
  font-size: 18px;
  color: var(--color-text);
  line-height: 2;
}

.l-feature-box__text strong {
  color: var(--color-primary);
  font-weight: 700;
}

.l-feature-box__text--green {
  color: var(--color-primary);
  font-weight: 700;
}

/* ============================================================
   Relay Chart (産地リレー)
============================================================ */
.l-relay-wrap {
  margin: 40px 0 0;
  overflow-x: auto;
}

.l-relay-chart {
  width: 100%;
  max-width: 792px;
  height: auto;
  display: block;
}

/* ============================================================
   Product Categories (取扱商品例)
============================================================ */
.l-product-category {
  margin-bottom: 40px;
}

.l-product-category__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.l-category-bullet {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.l-category-bullet::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--color-primary);
}

.l-category-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  line-height: 1;
}

.l-product-category__desc {
  font-size: 18px;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 12px;
}

/* グレー背景：コンテンツ幅全体、画像のアンカー */
.l-product-category__body {
  position: relative;
  background: var(--color-bg-gray);
  border-radius: 8px;
  overflow: visible;
}

/* テキストリスト：右側に画像スペース確保 */
.l-product-category__list {
  padding: 16px 270px 16px 16px;
  font-size: 18px;
  color: var(--color-text);
  line-height: 2;
}

/* 画像：グレー背景に重なる絶対配置 */
.l-product-category__img {
  position: absolute;
  border-radius: 4px;
  object-fit: cover;
}

/* ============================================================
   Header — Active link
============================================================ */
.header__nav-link--active {
  color: var(--color-primary);
}

/* ============================================================
   Tablet portrait (769–1024px)
============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  .l-inner {
    max-width: 720px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .page-hero__inner {
    max-width: 720px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .page-hero__en {
    font-size: 40px;
  }

  .l-badge {
    white-space: normal;
    text-align: center;
  }

  .l-step__title,
  .l-step__text {
    white-space: normal;
  }

  /* 取扱商品例：PC同様に上下はみ出し可 */
  .l-product-category__body {
    overflow: visible;
  }

  /* 全画像：タブレット用サイズ */
  .l-product-category__img {
    width: 150px !important;
    height: 112px !important;
    transform: none !important;
  }

  /* 全カテゴリ：テキスト右パディング（画像分） */
  .l-product-category__list {
    padding: 16px 170px 16px 16px;
    font-size: 16px;
  }

  /* 葉茎菜類（4番目）：2枚を上下＋左右ずらし */
  .l-product-category:nth-child(4) .l-product-category__img:nth-child(2) {
    right: -10px !important;
    left: auto !important;
    top: -45px !important;
  }
  .l-product-category:nth-child(4) .l-product-category__img:nth-child(3) {
    right: 46px !important;
    left: auto !important;
    top: auto !important;
    bottom: -22px !important;
  }

  /* 根菜類（5番目） */
  .l-product-category:nth-child(5) .l-product-category__img {
    right: -6px !important;
    left: auto !important;
    top: -38px !important;
  }

  /* 果菜類（6番目） */
  .l-product-category:nth-child(6) .l-product-category__img {
    right: 38px !important;
    left: auto !important;
    top: -30px !important;
  }

  /* その他野菜（7番目） */
  .l-product-category:nth-child(7) .l-product-category__img {
    right: -12px !important;
    left: auto !important;
    top: -42px !important;
  }

  /* 果物（8番目） */
  .l-product-category:nth-child(8) .l-product-category__img {
    right: 28px !important;
    left: auto !important;
    top: -35px !important;
  }

  .l-system {
    padding: 60px 0;
  }

  .l-quality {
    padding: 60px 0 0;
  }

  .l-products {
    padding: 0 0 60px;
  }

  .l-heading {
    margin-top: 40px;
  }
}

/* ============================================================
   Mobile (≤768px)
============================================================ */
@media (max-width: 768px) {
  .page-hero {
    padding: 52px 0 48px;
  }

  .page-hero__en {
    font-size: 40px;
  }

  .page-hero__title {
    font-size: 16px;
  }

  .page-hero__inner {
    padding: 0 20px;
  }

  .l-inner {
    padding: 0 20px;
  }

  .l-system {
    padding: 48px 0;
  }

  .l-quality {
    padding: 48px 0 0;
  }

  .l-products {
    padding: 0 0 48px;
  }

  .l-section-head {
    margin-bottom: 32px;
  }

  .l-label {
    font-size: 13px;
  }

  .l-section-title {
    font-size: 24px;
  }

  .l-heading {
    font-size: 20px;
    margin-top: 40px;
  }

  .l-body {
    font-size: 16px;
  }

  .l-badge {
    white-space: normal;
    font-size: 14px;
  }

  .l-sub-heading {
    font-size: 18px;
    gap: 12px;
  }

  .l-step__circle {
    width: 44px;
    min-width: 44px;
    height: 68px;
    margin-right: -22px;
  }

  .l-step__en {
    font-size: 8px;
  }

  .l-step__num {
    font-size: 22px;
  }

  .l-step__body {
    padding: 14px 14px 14px 40px;
    min-height: 68px;
  }

  .l-step__title,
  .l-step__text {
    font-size: 15px;
    white-space: normal;
  }

  .l-feature-box {
    padding: 24px 16px;
  }

  .l-feature-box__text {
    font-size: 15px;
  }

  /* 取扱商品例：SP でも画像を表示、背景下端にかかる形で配置 */
  .l-product-category {
    margin-bottom: 29px;
  }

  .l-product-category__body {
    overflow: visible;
    min-height: 90px;
  }

  .l-product-category__list {
    padding: 16px 120px 16px 16px;
    font-size: 15px;
  }

  .l-product-category__img {
    display: block;
    width: 153px !important;
    height: 112px !important;
    right: 4px !important;
    left: auto !important;
    bottom: -30px !important;
    top: auto !important;
    transform: none !important;
  }

  /* 2枚目は基本非表示、葉茎菜類のみ個別上書きで表示 */
  .l-product-category__img ~ .l-product-category__img {
    display: none;
  }

  /* 葉茎菜類: 上の画像が内側に入るためリスト幅を調整 */
  .l-product-category:nth-child(4) .l-product-category__list {
    padding-right: 123px;
  }

  /* 果菜類: 画像が内側のためリスト幅を調整 */
  .l-product-category:nth-child(6) .l-product-category__list {
    padding-right: 148px;
  }

  /* 果物: 画像が内側のためリスト幅を調整 */
  .l-product-category:nth-child(8) .l-product-category__list {
    padding-right: 170px;
  }

  /* 葉茎菜類: 2枚を縦並び・左右に少しずらして配置 */
  .l-product-category:nth-child(4) .l-product-category__img:nth-child(2) {
    right: 4px !important;
    bottom: -32px !important;
    width: 146px !important;
    height: 110px !important;
  }
  .l-product-category:nth-child(4) .l-product-category__img:nth-child(3) {
    display: block !important;
    right: -32px !important;
    left: auto !important;
    bottom: 86px !important;
    top: auto !important;
    width: 142px !important;
    height: 107px !important;
  }

  /* 根菜類: 右端から少しはみ出す */
  .l-product-category:nth-child(5) .l-product-category__img {
    right: -35px !important;
    bottom: -30px !important;
  }

  /* 果菜類: 少し内側 */
  .l-product-category:nth-child(6) .l-product-category__img {
    right: 22px !important;
    bottom: -26px !important;
  }

  /* その他野菜: 右端からはみ出す */
  .l-product-category:nth-child(7) .l-product-category__img {
    right: -33px !important;
    bottom: -34px !important;
  }

  /* 果物: 少し内側 */
  .l-product-category:nth-child(8) .l-product-category__img {
    right: 16px !important;
    bottom: -28px !important;
  }

  .l-category-name {
    font-size: 18px;
  }

  .l-map {
    max-width: 100%;
  }

  .l-relay-chart {
    min-width: 600px;
  }
}
