/* ============================================================
   株式会社 FORLIFE — style.css
   Dark navy × gold — building maintenance premium site
   ============================================================ */

:root {
  --navy:       #090D18;
  --navy-mid:   #111827;
  --navy-light: #1C2740;
  --white:      #F2F0EB;
  --off-white:  #E8E5DE;
  --gold:       #C4954A;
  --gold-light: #D9B070;
  --gold-dim:   rgba(196,149,74,0.15);
  --gray:       #7A8090;
  --border:     rgba(196,149,74,0.2);

  --font-jp:   'Noto Serif JP', 'Georgia', serif;
  --font-serif:'Noto Serif JP', 'Georgia', serif;
  --font-en:   'Marcellus', 'Georgia', serif;

  --header-h:  72px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-jp);
  background: var(--navy);
  color: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Section padding ── */
.section-pad { padding-block: 100px; }

/* ── Label ── */
.label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ── Section title ── */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

/* ── Divider line ── */
.gold-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-block: 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 36px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold-dim); }

/* ── Arrow icon ── */
.arrow {
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -4px;
  width: 8px; height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ── Reveal animation (triggered by JS) ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}


/* ========================================================
   HEADER
   ======================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(9,13,24,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand text */
.brand-text {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--white);
  white-space: nowrap;
}

/* Logo mark */
.logo-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-mark img {
  height: 46px;
  width: auto;
}

/* Desktop nav */
.main-nav {
  display: none;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--off-white);
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a.active { opacity: 1; color: var(--gold); }

/* Menu trigger: hamburger icon + MENU label */
.menu-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  border: none;
  z-index: 110;
}
.menu-trigger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.menu-trigger-icon span {
  display: block;
  height: 1px;
  background: var(--off-white);
  transition: all 0.3s var(--ease);
}
.menu-trigger-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
}

/* Overlay backdrop */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  z-index: 105;
}
.menu-backdrop.open { opacity: 1; visibility: visible; }

/* Slide-in panel from right */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(78vw, 340px);
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  border-left: 1px solid var(--border);
  z-index: 106;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: var(--header-h) 40px 24px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  position: relative;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid rgba(196, 149, 74, 0.12);
  transition: color 0.25s, padding-left 0.25s var(--ease);
}
.mobile-nav a::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.mobile-nav a:hover { color: var(--gold); padding-left: 16px; }
.mobile-nav a:hover::before { width: 8px; }

/* Close (×) button — top right of panel */
.menu-close {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 1px;
  background: var(--off-white);
  transition: background 0.25s;
}
.menu-close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.menu-close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.menu-close:hover span { background: var(--gold); }


/* ========================================================
   HERO
   ======================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

/* Background: dark gradient with subtle texture */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(196,149,74,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(28,39,64,0.8) 0%, transparent 50%),
    linear-gradient(175deg, #090D18 0%, #0F1A2E 60%, #0A1020 100%);
}

/* Subtle grid lines */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196,149,74,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,149,74,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-inline: 24px;
}

/* Animated title */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 40px;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: wordUp 0.9s var(--ease) forwards;
}
.hero-title .word:nth-child(1) { animation-delay: 0.2s; }
.hero-title .word:nth-child(2) { animation-delay: 0.55s; }
.hero-title .word:nth-child(3) { animation-delay: 0.9s; }
.hero-title .word:nth-child(4) { animation-delay: 1.25s; }

@keyframes wordUp {
  to { opacity: 1; transform: none; }
}

.hero-sub {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: fadeIn 1s var(--ease) 2s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--gray);
}
.scroll-bar {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.4s ease infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}


/* ========================================================
   VISUAL SECTION (photo + video)
   ======================================================== */
.visual-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.visual-photo {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2535 0%, #0f1c30 40%, #1e2d1e 100%);
}

/* Placeholder building silhouette via CSS */
.visual-photo::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background:
    linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.visual-photo-label {
  position: absolute;
  bottom: 32px;
  left: 40px;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white);
  line-height: 1.4;
}

/* Building silhouette decorative SVG fill */
.visual-photo-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0.25;
}
.visual-photo-art svg {
  width: 100%;
  max-width: 700px;
}

.visual-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--navy-mid);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d1520 0%, #162030 50%, #0a1018 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.video-placeholder-icon {
  width: 72px;
  height: 72px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--gold);
  margin-left: 4px;
}
.video-placeholder p {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gray);
  text-transform: uppercase;
}


/* ========================================================
   ABOUT SECTION
   ======================================================== */
.about-section {
  background: var(--navy-mid);
  padding-block: 100px;
}

.about-inner {
  display: grid;
  gap: 60px;
}

.about-catch {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--white);
}

.about-text {
  font-size: 0.95rem;
  color: rgba(242,240,235,0.7);
  line-height: 2;
  max-width: 560px;
}

.about-num-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 16px;
}

.about-num {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.about-num-val {
  font-family: var(--font-en);
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.about-num-val em {
  font-size: 1.2rem;
  font-style: normal;
}
.about-num-label {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.06em;
  margin-top: 6px;
}


/* ========================================================
   NAV CARDS (会社概要・事業内容・採用情報)
   ======================================================== */
.nav-cards-section {
  background: var(--navy-light);
}

.nav-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.nav-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 36px;
  min-height: 280px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: background 0.4s var(--ease);
}

.nav-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(196,149,74,0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.nav-card:hover::before { opacity: 1; }

.nav-card-num {
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  transition: color 0.3s;
}
.nav-card:hover .nav-card-num { color: var(--gold-dim); }

.nav-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 16px;
}

.nav-card-en {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: gap 0.3s;
}
.nav-card:hover .nav-card-en { gap: 20px; }

.nav-card-en::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-card:hover .nav-card-en::after { width: 48px; }

/* Decorative number background */
.nav-card-bg-num {
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--font-en);
  font-size: 9rem;
  font-weight: 700;
  color: rgba(196,149,74,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}


/* ========================================================
   PAGE HERO (sub pages)
   ======================================================== */
.page-hero {
  height: 40vh;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  padding-top: var(--header-h);
  background:
    linear-gradient(to bottom, var(--navy) 0%, var(--navy-mid) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--white);
}


/* ========================================================
   COMPANY PAGE
   ======================================================== */
.company-section {
  background: var(--navy-mid);
  padding-block: 100px;
}

.company-grid {
  display: grid;
  gap: 60px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table th,
.company-table td {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.7;
}
.company-table th {
  width: 140px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 500;
  padding-right: 24px;
  vertical-align: top;
}
.company-table td {
  color: var(--off-white);
}

.company-map {
  aspect-ratio: 16/9;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.company-map p {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gray);
}
.company-map-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
}


/* ========================================================
   BUSINESS PAGE
   ======================================================== */
.business-section {
  background: var(--navy-mid);
  padding-block: 100px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 60px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s var(--ease);
}
.service-item:hover { padding-left: 8px; }

.service-num {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  min-width: 32px;
}

.service-name {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 400;
  color: var(--white);
  flex: 1;
  letter-spacing: 0.04em;
}

.service-arrow {
  width: 32px;
  height: 1px;
  background: var(--gold);
  position: relative;
  opacity: 0;
  transition: opacity 0.3s, width 0.3s;
}
.service-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -4px;
  width: 8px; height: 8px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: rotate(45deg);
}
.service-item:hover .service-arrow { opacity: 1; width: 48px; }

/* 施工実績 スライダー */
.works-section {
  background: var(--navy);
  padding-block: 100px;
}

.works-slider-wrap {
  position: relative;
  margin-top: 60px;
}

.works-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  cursor: grab;
}
.works-slider:active { cursor: grabbing; }

/* Hide scrollbar */
.works-slider::-webkit-scrollbar { height: 2px; }
.works-slider::-webkit-scrollbar-track { background: var(--navy-light); }
.works-slider::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

.work-slide {
  flex: 0 0 calc(85vw - 48px);
  scroll-snap-align: start;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.work-slide:hover { border-color: var(--gold); }

.work-slide-thumb {
  aspect-ratio: 4/3;
  background: var(--navy-mid);
  position: relative;
  overflow: hidden;
}

/* Placeholder gradients for work slides */
.work-slide:nth-child(1) .work-slide-thumb { background: linear-gradient(135deg, #1a2535 0%, #2a1f0f 100%); }
.work-slide:nth-child(2) .work-slide-thumb { background: linear-gradient(135deg, #0f1c30 0%, #1c2a1a 100%); }
.work-slide:nth-child(3) .work-slide-thumb { background: linear-gradient(135deg, #1c1a2a 0%, #2a1a15 100%); }
.work-slide:nth-child(4) .work-slide-thumb { background: linear-gradient(135deg, #0f2020 0%, #201f0f 100%); }
.work-slide:nth-child(5) .work-slide-thumb { background: linear-gradient(135deg, #20100f 0%, #0f1a20 100%); }
.work-slide:nth-child(6) .work-slide-thumb { background: linear-gradient(135deg, #1a200f 0%, #1a0f20 100%); }

.work-slide-thumb-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-slide-thumb-label span {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(242,240,235,0.25);
  text-transform: uppercase;
}

.work-slide-info {
  padding: 20px 22px 24px;
}
.work-slide-cat {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.work-slide-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.5;
}

/* Slider controls */
.slider-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.slider-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.slider-btn svg { width: 16px; height: 16px; }

.slider-dots {
  display: flex;
  gap: 6px;
}
.slider-dot {
  width: 24px;
  height: 2px;
  background: var(--navy-light);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.slider-dot.active {
  width: 40px;
  background: var(--gold);
  border-color: var(--gold);
}

.works-add-note {
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px dashed var(--border);
  border-radius: 2px;
}
.works-add-note p {
  font-size: 0.82rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}
.works-add-note span { color: var(--gold); }


/* ========================================================
   RECRUIT PAGE
   ======================================================== */
.recruit-section {
  background: var(--navy-mid);
  padding-block: 100px;
}

.recruit-status {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 48px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--navy-light);
  max-width: 640px;
}
.recruit-status + .recruit-status { margin-top: 24px; }

/* スマホ：アイコンを上に縦積みし、本文の幅を確保 */
@media (max-width: 599px) {
  .recruit-status { flex-direction: column; gap: 20px; padding: 32px 24px; }
}

/* 協力業者募集：募集職種タグ */
.partner-trades-label {
  margin-top: 18px;
  color: var(--gold) !important;
  letter-spacing: 0.08em;
}
.partner-trades {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
}
.partner-trades li {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 18px;
}

.recruit-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  flex-shrink: 0;
}

.recruit-text h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.recruit-text p {
  font-size: 0.9rem;
  color: rgba(242,240,235,0.65);
  line-height: 1.85;
}

.recruit-future {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
}

.recruit-future p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.9;
  max-width: 560px;
}


/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding-block: 60px;
}

.footer-inner {
  display: grid;
  gap: 40px;
}

.footer-logo-text {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-address {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.9;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copyright {
  font-size: 0.7rem;
  color: #444;
  letter-spacing: 0.06em;
}


/* ========================================================
   RESPONSIVE — 768px+
   ======================================================== */
@media (min-width: 768px) {
  .container { padding-inline: 48px; }

  .visual-section {
    grid-template-columns: 1fr 1fr;
  }
  .visual-photo, .visual-video-wrap { aspect-ratio: 4/3; }

  .about-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
  }

  .about-num-row { grid-template-columns: repeat(2, 1fr); }

  .nav-cards-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-card { border-bottom: none; border-right: 1px solid var(--border); }
  .nav-card:last-child { border-right: none; }

  .company-grid { grid-template-columns: 1fr 1fr; }

  .services-grid { grid-template-columns: 1fr; }

  .work-slide { flex: 0 0 380px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}


/* ========================================================
   RESPONSIVE — 1024px+
   ======================================================== */
@media (min-width: 1024px) {
  .container { padding-inline: 80px; }

  /* Header */
  .menu-trigger { display: none; }
  .mobile-nav { display: none !important; }
  .menu-backdrop { display: none !important; }
  .main-nav { display: flex; }

  .nav-cards-grid { grid-template-columns: repeat(3, 1fr); }

  .work-slide { flex: 0 0 420px; }
}


/* ========================================================
   CLIENT IMAGE SWAP  （クライアント差し替え用）
   images/ ・ video/ に指定名でファイルを置くと写真/動画が反映。
   ファイルが無い場合は onerror で削除され、元のプレースホルダーが残る。
   ======================================================== */

/* 差し替え画像は枠いっぱいに敷き、上に乗せる */
.swap-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* メイン写真：下部グラデーションと文字は写真より前面に */
.visual-photo::before { z-index: 2; }
.visual-photo-label { z-index: 3; }

/* 施工実績スライダーのサムネ：写真がプレースホルダー文字を覆う */
.work-slide-thumb { position: relative; }
.work-slide-thumb-label { z-index: 0; }

/* 動画：枠いっぱいに表示し、読み込めたらプレースホルダーを隠す */
.swap-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* スマホ用ヘッダー並べ替え：ハンバーガー(左) → 会社名 → ロゴ(右) */
@media (max-width: 1023px) {
  .site-header .menu-trigger { order: 1; }
  .site-header .brand-text   { order: 2; }
  .site-header .logo-mark    { order: 3; margin-left: auto; }
}

/* 施工実績への導線：矢印付きサービス項目（リンク） */
a.service-item { text-decoration: none; color: inherit; }

/* 施工実績スライダー・TOPスライドショー：写真を数秒ごとにクロスフェード */
.work-slide-thumb .fade-img,
.visual-video-wrap .fade-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 1;
}
.work-slide-thumb .fade-img.show,
.visual-video-wrap .fade-img.show { opacity: 1; }
/* TOPスライドショーは1枚ずつの逐次フェード（JSのTOP_FADEと同じ時間に） */
.visual-video-wrap .fade-img { transition: opacity 0.6s ease; }

/* ===== 施工実績ギャラリー（works.html） ===== */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}
.gfilter {
  padding: 9px 18px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gray);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.gfilter:hover { color: var(--white); border-color: var(--gold); }
.gfilter.active { background: var(--gold); color: var(--navy); border-color: var(--gold); font-weight: 500; }

.gallery-current {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 28px;
}
.gallery-current span { color: var(--gold); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: linear-gradient(135deg, #1a2535 0%, #0f1c30 100%);
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 14px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--white);
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
}
.gallery-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
}
.gallery-back { margin-top: 48px; }

@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .gallery-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Googleマップ埋め込み */
/* スマホ：aspect-ratioとmin-heightの衝突で横にはみ出すため、高さ固定・幅は画面内に収める */
.company-map {
  padding: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: auto;
  height: 300px;
  width: 100%;
  max-width: 100%;
}
/* 地図列がテキストを持たず潰れるのを防ぐ（列を等幅固定） */
@media (min-width: 768px) {
  .company-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .company-map { height: auto; aspect-ratio: 16/9; min-height: 300px; }
}
.company-map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.3) contrast(1.05);
}
.company-map-note {
  margin-top: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--gray);
}
.company-map-link {
  display: inline-block;
  margin-left: 12px;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}
.company-map-link:hover { border-color: var(--gold); }

/* ヒーロー背景写真（任意）：暗いオーバーレイで文字の視認性を確保 */
.hero-photo { z-index: 1; opacity: 0.55; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(175deg, rgba(9,13,24,0.55) 0%, rgba(9,13,24,0.75) 100%);
}
.hero .hero-content { z-index: 3; }
.hero .hero-scroll  { z-index: 3; }


/* ========================================================
   CONTACT PAGE
   ======================================================== */
.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }

.contact-section {
  background: var(--navy-mid);
  padding-block: 100px;
}

.contact-lead {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 48px;
}

.contact-grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 72px; align-items: start; }
}

/* フォーム */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--off-white);
}
.req {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.68rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 1px 8px;
  vertical-align: 1px;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-jp);
  font-size: 0.92rem;
  color: var(--white);
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 13px 16px;
  outline: none;
  width: 100%;
  transition: border-color 0.25s;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(242,240,235,0.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--navy-light); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 150px; }

.contact-form .btn-gold { margin-top: 8px; align-self: flex-start; }
.form-note {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.04em;
}

/* 電話・所在地 */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--navy-light);
  height: fit-content;
}
.contact-info-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 8px;
}
.contact-tel {
  font-family: var(--font-en);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  color: var(--white);
}
.contact-tel:hover { color: var(--gold); }
.contact-info-sub {
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 6px;
}
.contact-info-value {
  font-size: 0.9rem;
  color: var(--off-white);
  line-height: 1.8;
}

/* 協力業者募集 → お問い合わせ導線ボタン */
.partner-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 32px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  background: var(--gold);
  border-radius: 2px;
  transition: background 0.25s;
}
.partner-cta:hover { background: var(--gold-light); }


/* ===== 求人情報（recruit.html） ===== */
.recruit-open { border-color: rgba(196,149,74,0.45); }

.recruit-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--navy);
  background: var(--gold);
  border-radius: 100px;
}

/* 募集要項の定義リスト */
.job-detail {
  margin-top: 24px;
  border-top: 1px solid var(--border);
}
.job-detail dt {
  padding-top: 16px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.job-detail dd {
  margin: 6px 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--off-white);
  line-height: 1.8;
}
.job-detail dd:last-child { border-bottom: none; }

.job-note {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.7;
}

.job-salary {
  display: block;
  font-family: var(--font-en);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--white);
}

/* 募集職種のリスト */
.job-positions {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.job-positions li {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(255,255,255,0.02);
}
.job-position-name {
  display: block;
  font-size: 0.98rem;
  color: var(--white);
  letter-spacing: 0.04em;
}
.job-position-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.03em;
}

/* PCでは項目名を左に並べる */
@media (min-width: 700px) {
  .job-detail {
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 20px;
  }
  .job-detail dt { padding-top: 18px; }
  .job-detail dd { margin-left: 0; padding-top: 18px; margin-top: 0; }
  .job-detail dt { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 0; }
  .job-detail dt:last-of-type, .job-detail dd:last-child { border-bottom: none; }
  .job-positions { flex-direction: row; flex-wrap: wrap; }
  .job-positions li { flex: 1 1 calc(50% - 5px); }
}
