/* 株式会社光進ガードシステム トップページ（T 案）
   PC を基本に書き、幅 959px 以下をスマホの形に切り替える */

:root {
  --navy: #12203f;
  --accent: #f5b82e;
  --accent-dark: #c48d10;
  --mist: #56617c;
  --line: #dfe3ea;
  --navy-line: #2c3b60;
  --pale: #c3cbdd;
  --photo-bg: linear-gradient(135deg, #dfe4ec 0%, #c3ccd9 100%);
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --num: "Oswald", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--navy);
  background: #ffffff;
  line-height: 1.8;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { display: block; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
ul { list-style: none; padding: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.vert { writing-mode: vertical-rl; }
.sp-only { display: none; }
.nb { display: inline-block; }

/* 写真の枠 */
.photo { position: relative; overflow: hidden; background: var(--photo-bg); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* 写真の下の札 */
.caption-figure figcaption {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}
.bar { flex: none; width: 18px; height: 3px; background: var(--accent); }

/* 見出し（番号＋題） */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: 22px; }
.sec-num {
  font-family: var(--num);
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  border-bottom: 6px solid var(--accent);
  padding-bottom: 2px;
}
.sec-head h2 { font-weight: 900; font-size: 34px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { text-decoration: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.brand-logo { width: 52px; height: 52px; }
.brand-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.brand-name { font-weight: 900; font-size: 21px; letter-spacing: .04em; }
.brand-en { font-family: var(--num); font-weight: 500; font-size: 13px; letter-spacing: .14em; color: var(--mist); }

.site-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 26px; font-weight: 700; font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--mist); }
.site-nav-contact { border-bottom: 3px solid var(--accent); }
.site-nav-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--num);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .04em;
}
.header-actions { display: none; }

/* ---------- トップ ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px auto;
  grid-template-rows: 1fr auto auto auto;
  grid-template-areas:
    "next  photo title"
    "tag   photo title"
    "lead  photo title"
    "cta   photo title";
  column-gap: 48px;
  row-gap: 22px;
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 48px;
}
.hero-next { grid-area: next; align-self: center; width: 100%; max-width: 440px; height: auto; }
.hero-tag { grid-area: tag; font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.hero-lead { grid-area: lead; font-size: 17px; line-height: 2; }
.hero-cta { grid-area: cta; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-photo { grid-area: photo; min-width: 0; }
.hero-title {
  grid-area: title;
  font-weight: 900;
  font-size: clamp(40px, 5.8vw, 74px);
  line-height: 1.28;
  letter-spacing: .04em;
}
.hero-title span { display: block; white-space: nowrap; }

/* 写真の後ろの山吹の板 */
.framed { position: relative; padding: 0 0 18px 18px; }
.framed::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; right: 18px; bottom: 0;
  background: var(--accent);
}
.hero-photo .photo { height: 562px; }
.hero-photo img { object-position: 50% 0; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}
.btn-primary:hover { background: #1e3163; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 2px;
}

/* ---------- 01 事業内容 ---------- */
.section { padding-top: 88px; }
#service.section { padding-top: 80px; }

.service-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  border-top: 2px solid var(--navy);
  padding-top: 24px;
}
.photo-service { aspect-ratio: 358 / 230; }
/* 施設警備は見本どおり 1.3 倍に寄せ、隊員が右寄りに入る範囲を見せる。
   拡大の基準点は枠の中に置き、拡大後も写真が枠いっぱいに残るようにする */
.photo-facility img { object-position: 100% 0; transform: scale(1.3); transform-origin: 77.1% 14.5%; }

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: 28px;
}
.service-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 24px 24px 26px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.service-list li:nth-child(3n) { border-right: 0; }
.service-list svg { width: 30px; height: 30px; }
.service-list h3 { min-width: 0; font-weight: 900; font-size: 19px; line-height: 1.4; }
.service-list p { grid-column: 1 / -1; margin-top: 8px; font-size: 14px; color: var(--mist); }

/* ---------- 02 数字で見る光進 ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--navy);
  padding-top: 20px;
}
.number { min-width: 0; padding: 8px 28px 12px; border-right: 1px solid var(--line); }
.number:last-child { border-right: 0; }
.number-value { font-family: var(--num); font-weight: 600; font-size: 128px; line-height: 1; }
.number-value span { font-family: var(--sans); font-weight: 900; font-size: 20px; margin-left: 8px; white-space: nowrap; }
.number-note { margin-top: 10px; font-size: 14px; color: var(--mist); }

/* ---------- 03 採用情報 ---------- */
.recruit { background: var(--navy); color: #ffffff; margin-top: 96px; }
.recruit-inner { padding-top: 80px; padding-bottom: 80px; }
.recruit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px auto;
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "head  photo copy"
    "intro photo copy"
    "list  photo copy";
  column-gap: 44px;
}
.recruit-head { grid-area: head; margin-bottom: 8px; }
.recruit .sec-num { color: var(--accent); border-bottom: 0; padding-bottom: 0; }
.recruit-intro { grid-area: intro; margin-bottom: 20px; color: var(--pale); }
.recruit-photo {
  grid-area: photo;
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a3a60 0%, #1c2a4a 100%);
}
.recruit-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.recruit-copy {
  grid-area: copy;
  font-weight: 900;
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.3;
  letter-spacing: .08em;
  white-space: nowrap;
  color: var(--accent);
}

.benefits { grid-area: list; border-top: 2px solid #ffffff; }
.benefits li { display: flex; align-items: center; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--navy-line); }
.benefits li > div { min-width: 0; }
.benefit-num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 19px;
}
.benefits strong { display: block; font-weight: 900; font-size: 21px; line-height: 1.5; }
.benefits li span:not(.benefit-num) { font-size: 15px; color: var(--pale); }

.btn-apply {
  margin-top: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 84px;
  padding: 0 44px 0 56px;
  background: var(--accent);
  color: var(--navy);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .04em;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--accent-dark);
}
.btn-apply:hover { background: #f8c650; }

/* ---------- 04 会社概要・拠点 ---------- */
.map { border-top: 2px solid var(--navy); padding-top: 24px; }
.map-frame { position: relative; height: 340px; overflow: hidden; background: #e8edf3; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-open { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.map-open svg { display: none; }

.company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 8px;
}
.profile { display: grid; grid-template-columns: 110px minmax(0, 1fr); font-size: 15px; min-width: 0; }
.profile dt, .profile dd { padding: 13px 0; border-bottom: 1px solid var(--line); }
.profile dt { font-weight: 700; }
.profile dt:last-of-type, .profile dd:last-of-type { border-bottom: 0; }
.profile-license { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.plate-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.offices-wrap { min-width: 0; }
.offices-title {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.offices li { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.offices li:last-child { border-bottom: 0; }
.offices strong { flex: 0 0 96px; font-weight: 900; }
.office-body { flex: 1 1 240px; font-size: 14px; }
.office-address { display: block; }
.office-tel { color: var(--mist); }
.office-tel a { text-decoration: none; }
.office-tel a:hover { text-decoration: underline; }
.office-tel svg { display: none; }
.office-fax::before { content: " ／ "; }

/* ---------- お問い合わせ ---------- */
.contact { padding-top: 96px; padding-bottom: 88px; text-align: center; }
.contact-title { font-weight: 900; font-size: 22px; }
.contact-tel {
  display: inline-block;
  font-family: var(--num);
  font-weight: 600;
  font-size: clamp(42px, 9vw, 112px);
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 6px solid var(--accent);
}
.contact-hours { margin-top: 14px; color: var(--mist); }

/* ---------- フッター ---------- */
.site-footer { border-top: 3px solid var(--navy); }
.footer-inner {
  padding-top: 28px;
  padding-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--mist);
}
.footer-logo { width: 56px; height: 56px; }
.footer-text { line-height: 1.6; }
.footer-text strong { display: block; font-weight: 900; font-size: 16px; color: var(--navy); }

/* =========================================================
   スマホ・タブレット（幅 959px 以下）
   ========================================================= */
@media (max-width: 959px) {
  body { line-height: 1.75; }
  /* タブレットの幅でも 1 列の形が間延びしないよう、中身の幅を抑える */
  .wrap { max-width: 672px; padding: 0 16px; }
  .pc-only { display: none; }
  .sp-only { display: revert; }
  br.sp-only { display: inline; }

  .sec-head { gap: 14px; margin-bottom: 16px; flex-wrap: nowrap; }
  .sec-num { font-size: 44px; border-bottom-width: 5px; }
  .sec-head h2 { font-size: 24px; }

  /* ヘッダー */
  .site-header { max-width: 672px; padding: 10px 16px; flex-wrap: nowrap; }
  .brand { min-width: 0; flex-wrap: nowrap; gap: 10px; }
  .brand-logo { flex: none; width: 40px; height: 40px; }
  .brand-text { min-width: 0; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.35; }
  .brand-name { font-size: 17px; white-space: nowrap; }
  .brand-en { font-size: 10px; }

  .header-actions { flex: none; display: flex; gap: 8px; }
  .header-tel {
    width: 48px;
    height: 48px;
    border: 2px solid var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .menu-button {
    width: 56px;
    height: 48px;
    padding: 0;
    border: 0;
    background: var(--navy);
    color: #ffffff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-family: inherit;
    font-weight: 700;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
  }
  .menu-icon-close { display: none; }
  .menu-button[aria-expanded="true"] .menu-icon-open { display: none; }
  .menu-button[aria-expanded="true"] .menu-icon-close { display: block; }

  /* 開いたメニュー（ヘッダーの下に重ねる） */
  .site-nav {
    display: none;
    position: absolute;
    z-index: 10;
    left: 0;
    right: 0;
    top: 100%;
    padding: 4px 16px 12px;
    background: var(--navy);
    box-shadow: 0 10px 24px rgba(18, 32, 63, .25);
    font-size: 16px;
  }
  .site-header.is-open .site-nav { display: block; }
  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 56px;
    color: #ffffff;
    border-bottom: 1px solid var(--navy-line);
  }
  .site-nav a:last-of-type { border-bottom: 0; }
  .site-nav a:hover { color: var(--accent); }
  .site-nav-contact { border-bottom: 1px solid var(--navy-line); }
  .site-nav-tel { display: none !important; }

  /* トップ */
  .hero {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: none;
    grid-template-areas:
      "tag   tag"
      "photo title"
      "next  next"
      "lead  lead"
      "cta   cta";
    column-gap: 12px;
    row-gap: 0;
    align-items: start;
    padding: 18px 0 32px;
  }
  .hero-tag { margin-bottom: 14px; font-size: 12px; }
  .hero-title { font-size: 32px; line-height: 1.3; }
  .framed { padding: 0 0 14px 14px; }
  .framed::before { top: 14px; right: 14px; }
  .hero-photo .photo { height: 380px; }
  .hero-next { align-self: auto; justify-self: center; max-width: 320px; margin-top: 24px; }
  .hero-lead { margin-top: 20px; font-size: 15px; line-height: 1.9; }
  .hero-cta { margin-top: 22px; flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-primary, .link-arrow { min-height: 56px; font-size: 16px; padding: 0; }
  .link-arrow { border: 2px solid var(--navy); }

  /* 事業内容 */
  .section { padding-top: 64px; }
  #service.section { padding-top: 56px; }
  .service-photos { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .service-photos figcaption { margin-top: 6px; }
  .service-list { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .service-list li { grid-template-columns: 28px minmax(0, 1fr); padding: 14px 0; border-right: 0; }
  .service-list svg { width: 28px; height: 28px; }
  .service-list h3 { font-size: 17px; }
  .service-list p { grid-column: 2; margin-top: 4px; font-size: 13px; }

  /* 数字 */
  .numbers { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .number { padding: 18px 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .number:last-child { border-bottom: 1px solid var(--line); }
  .number-value { font-size: 84px; }
  .number-value span { font-size: 18px; }
  .number-note { margin-top: 8px; font-size: 13px; }

  /* 採用情報 */
  .recruit { margin-top: 64px; }
  .recruit-inner { padding-top: 56px; padding-bottom: 56px; }
  /* 写真と縦書きをひとまとまりにして左に寄せる。写真の列は 385px まで広がり、残りは 3 列目が受ける。
     見出し・説明文・一覧は 3 列にまたがって幅いっぱい。
     列の間は 0 にして、写真と縦書きの間の 12px は縦書きの margin で取る（空の 3 列目の前に間を作らないため） */
  .recruit-grid {
    grid-template-columns: minmax(0, 385px) auto minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "head  head  head"
      "intro intro intro"
      "photo copy  ."
      "list  list  list";
    column-gap: 0;
    align-items: start;
  }
  .recruit-intro { margin-bottom: 0; font-size: 14px; }
  .recruit-photo, .recruit-copy { margin: 22px 0 24px; }
  .recruit-copy { margin-left: 12px; }
  /* 高さは幅に合わせて比率で決める（幅 390px で 273×340px）。広い幅では高さ 480px で止める */
  .recruit-photo { min-height: 0; height: auto; aspect-ratio: 273 / 340; max-height: 480px; }
  .recruit-photo img { object-position: 50% 40%; }
  .recruit-copy { font-size: 28px; }
  .benefits li { gap: 14px; padding: 14px 0; }
  .benefit-num { width: 40px; height: 40px; font-size: 17px; }
  .benefits strong { font-size: 18px; }
  .benefits li span:not(.benefit-num) { font-size: 13px; }
  .btn-apply {
    margin-top: 28px;
    display: flex;
    min-height: 58px;
    padding: 0;
    font-size: 17px;
    letter-spacing: 0;
    box-shadow: none;
  }
  .btn-apply svg { display: none; }

  /* 会社概要・拠点 */
  .map { padding-top: 16px; }
  .map-frame { height: 240px; }
  .map figcaption { margin-top: 2px; white-space: nowrap; letter-spacing: 0; }
  .map .bar { width: 14px; }
  .map-open { min-height: 44px; font-size: 12px; }
  .map-open svg { display: block; }

  .company { display: block; border-top: 0; margin-top: 12px; padding-top: 0; }
  .profile { grid-template-columns: 92px minmax(0, 1fr); font-size: 14px; border-top: 1px solid var(--line); }
  .profile dt, .profile dd { padding: 12px 0; }
  .profile dt:last-of-type, .profile dd:last-of-type { border-bottom: 1px solid var(--line); }
  .profile-license { display: block; padding-bottom: 4px !important; }
  .profile-license > span { display: block; }
  .plate-link { min-height: 44px; font-size: inherit; border-bottom: 0; }
  .plate-link span { border-bottom: 2px solid var(--accent); }

  .offices-title {
    position: static; width: auto; height: auto; margin: 32px 0 4px; overflow: visible; clip: auto; white-space: normal;
    font-weight: 900; font-size: 18px;
  }
  .offices { border-top: 2px solid var(--navy); }
  .offices li { display: block; padding: 14px 0; }
  .offices strong { display: block; font-size: 16px; }
  .office-body { font-size: 14px; }
  .office-tel {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    font-size: 13px;
  }
  .office-tel a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--navy);
    font-family: var(--num);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: .03em;
    border-bottom: 2px solid var(--accent);
  }
  .office-tel a:hover { text-decoration: none; }
  .office-tel svg { display: block; }
  .office-fax::before { content: none; }

  /* お問い合わせ */
  .contact { padding-top: 64px; padding-bottom: 56px; }
  .contact-title { font-size: 18px; }
  .contact-tel { margin-top: 4px; font-size: 48px; line-height: 1.2; border-bottom-width: 5px; }
  .contact-hours { margin-top: 10px; font-size: 14px; }
  .contact-call {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    background: var(--navy);
    color: #ffffff;
    font-weight: 900;
    font-size: 16px;
    text-decoration: none;
  }

  /* フッター */
  .footer-inner { padding-top: 24px; padding-bottom: 32px; gap: 12px; font-size: 12px; }
  .footer-logo { flex: none; width: 44px; height: 44px; }
  .footer-text strong { font-size: 14px; }
}
