/* 自動生成: style.css を役割別に分割 (STEP2). 手動編集は各パーシャルで. */

/* ---- 共通セクション ---- */

.sec { padding: 80px 0; }

/* ---- 会社概要テーブル ---- */

.info { width: 100%; }

.info__row {
  display: flex;
  align-items: center;
  padding: 16px 0 16px 20px;
  border-bottom: 1px solid #e4e4e4;
  font-size: 14px;
  line-height: 1.7;
  color: var(--black);
}

.info__row dt { width: 248px; flex-shrink: 0; }

.info__row dd { flex: 1; }

.info__block + .info__block { margin-top: 24px; }

.info__asof { margin-left: 4px; font-size: 12px; color: #666; }

.info__asof--block { display: block; margin: 8px 0 0; text-align: right; }

/* ---- グループ拠点情報（大榮の強みの拠点マップを流用） ---- */

.sec--group { padding-top: 0; }

.group-map { width: 100%; }

.group-map img { width: 100%; height: auto; display: block; }

/* ---- 車種別トラック台数（会社概要テーブル内） ---- */

.fleet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "sm md lg"
    "tr md total";
  gap: 10px;
  align-items: start;
}

.fleet__group {
  padding: 12px 14px;
  background: var(--senary);
  border-radius: 8px;
}

.fleet__group--sm { grid-area: sm; }
.fleet__group--md { grid-area: md; }
.fleet__group--lg { grid-area: lg; }
.fleet__group--tr { grid-area: tr; }

.fleet__cat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 7px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
}

.fleet__cat small { font-size: 11px; font-weight: 500; color: #777; }

.fleet__items { display: flex; flex-direction: column; gap: 4px; }

.fleet__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 8px;
  padding: 4px 10px;
  background: #fff;
  border-radius: 5px;
  font-size: 13px;
  line-height: 1.6;
}

.fleet__num {
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-left: auto;
}

.fleet__num + span { font-size: 12px; }

.fleet__item small {
  flex: 0 0 100%;
  font-size: 11px;
  line-height: 1.5;
  color: #777;
}

.fleet__total {
  grid-area: total;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  align-self: stretch;
  padding: 12px 14px;
  background: var(--secondary);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.fleet__total .fleet__num { font-size: 24px; margin-left: 0; }

/* ---- 荷役設備（フォークリフト・天井クレーン） ---- */

.equip { display: flex; flex-wrap: wrap; gap: 8px; }

.equip .fleet__item { min-width: 200px; background: var(--senary); }

/* ---- 拠点情報 ---- */

.loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 66px; }

.loc__img { border-radius: 10px; overflow: hidden; aspect-ratio: 488 / 328; }

.loc__img img { width: 100%; height: 100%; object-fit: cover; }

.loc__name { font-size: 24px; font-weight: 600; line-height: 1.4; margin: 24px 0 8px; }

.loc__addr { font-size: 14px; line-height: 1.7; color: var(--black); }

.gmap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 264px;
  max-width: 100%;
  height: 39px;
  padding: 0 16px;
  margin-top: 32px;
  background: #fff;
  border: 2px solid #d9d9d9;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  transition: background .25s, border-color .25s, color .25s;
}

.gmap:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ホバーで反転 */

.gmap:hover .gmap__pin { color: #fff; }

.gmap__pin { width: 20px; height: 24px; color: var(--primary); flex-shrink: 0; transition: color .25s; }

/* ---- 全幅バナー ---- */

.fullbanner { width: 100%; }

.fullbanner img { display: block; width: 100%; height: clamp(180px, 30vw, 442px); object-fit: cover; }

/* ---- フォトギャラリー ---- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 11px; }

.gallery__item { display: block; aspect-ratio: 339 / 325; border-radius: 10px; overflow: hidden; }

.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }

.gallery__item:hover img { transform: scale(1.05); }

@media (max-width: 768px) {
  .sec { padding: 56px 0; }
  /* 会社概要：ラベルと値を縦積み */
  .info__row { flex-direction: column; align-items: flex-start; gap: 6px; padding-left: 0; }
  .info__row dt { width: auto; font-weight: 700; }
  /* 車種別トラック台数：1カラム */
  .fleet { grid-template-columns: 1fr; grid-template-areas: none; gap: 8px; }
  .fleet__group, .fleet__total { grid-area: auto; }
  .fleet__item { font-size: 13px; }
  .equip .fleet__item { min-width: 0; flex: 1 1 100%; }
  /* 拠点情報：1カラム */
  .loc-grid { grid-template-columns: 1fr; gap: 40px; }
  .loc__name { font-size: 20px; }
  /* ギャラリー：2カラム */
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 460px) {
  .gmap { min-width: 0; width: 100%; }
}

/* ---- フォトギャラリー ライトボックス ---- */

.gallery__item { cursor: pointer; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, .85);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__img {
  max-width: min(1000px, 90vw);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
}

.lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background .2s;
}

.lightbox__btn:hover { background: rgba(255, 255, 255, .28); }

.lightbox__btn svg { width: 24px; height: 24px; pointer-events: none; }

.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; }

.lightbox__nav--prev { left: 24px; }

.lightbox__nav--next { right: 24px; }

.lightbox__close { top: 24px; right: 24px; width: 46px; height: 46px; }

.lightbox__count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  font-family: var(--font-num);
  letter-spacing: .05em;
}

@media (max-width: 768px) {
  .lightbox { padding: 16px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
  .lightbox__close { top: 12px; right: 12px; }
}
