/* ========================================
   SHIELD GUARD - Facility Security
   Navy #1B3A5C + White + Gold #C9A84C
   ======================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #1B3A5C;
  --navy-dark: #0F2440;
  --navy-light: #2A5580;
  --gold: #C9A84C;
  --gold-light: #D4BC6A;
  --gold-dark: #A8893D;
  --white: #FFFFFF;
  --off-white: #F8F7F4;
  --gray-50: #FAFAF8;
  --gray-100: #F0EDE8;
  --gray-200: #E0DCD4;
  --gray-300: #C8C2B8;
  --gray-400: #A09888;
  --gray-500: #787068;
  --gray-600: #585048;
  --gray-700: #383028;
  --gray-800: #201C18;
  --shadow-sm: 0 2px 8px rgba(27, 58, 92, 0.08);
  --shadow-md: 0 4px 20px rgba(27, 58, 92, 0.12);
  --shadow-lg: 0 8px 40px rgba(27, 58, 92, 0.16);
  --shadow-xl: 0 16px 60px rgba(27, 58, 92, 0.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(27, 58, 92, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-list a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-list a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 700;
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background: var(--navy);
  z-index: 999;
  transform: translateY(-120%);
  transition: var(--transition);
  padding: 20px 0;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mobile-nav a {
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
}

/* --- HERO --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 36, 64, 0.85) 0%, rgba(27, 58, 92, 0.7) 50%, rgba(15, 36, 64, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}

.hero-sub {
  font-size: 0.85rem;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 4px;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 2;
  opacity: 0.9;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-full {
  width: 100%;
  max-width: 400px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 3px;
  opacity: 0.7;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--white);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- SECTIONS --- */
.section {
  padding: 100px 0;
}

.section-label {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  text-align: center;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 2;
  margin-bottom: 60px;
}

/* --- ABOUT --- */
.about {
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text h3 {
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.6;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--gray-600);
  line-height: 2;
}

.about-features {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--navy);
}

/* --- SERVICES --- */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 40px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 700;
}

.service-card p {
  color: var(--gray-500);
  line-height: 1.9;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
}

.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* --- SAFETY --- */
.safety {
  background: var(--navy);
  color: var(--white);
}

.safety .section-label {
  color: var(--gold);
}

.safety .section-title {
  color: var(--white);
}

.safety .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.safety-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 40px;
  position: relative;
  transition: var(--transition);
}

.safety-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
}

.safety-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.15);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.safety-icon {
  margin-bottom: 20px;
}

.safety-card h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 700;
}

.safety-card p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.9;
  font-size: 0.95rem;
}

/* --- WORKS --- */
.works {
  background: var(--off-white);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.work-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.work-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.work-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.work-card:hover .work-image img {
  transform: scale(1.08);
}

.work-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.work-tag {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
}

.work-content {
  padding: 24px;
}

.work-content h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 700;
}

.work-content p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.work-details span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* --- NUMBERS --- */
.numbers {
  background: var(--navy);
  padding: 80px 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.number-item {
  color: var(--white);
}

.number-value {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: inline;
}

.number-unit {
  font-size: 1rem;
  color: var(--gold);
  display: inline;
  margin-left: 4px;
}

.number-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

/* --- FLOW --- */
.flow {
  background: var(--white);
}

.flow-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.flow-timeline::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.flow-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px 0;
  position: relative;
}

.flow-number {
  font-family: 'Playfair Display', serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px;
  grid-column: 2;
  order: 1;
}

.flow-icon {
  grid-column: 1;
  grid-row: 1 / 4;
  width: 64px;
  height: 64px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.flow-step h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
  grid-column: 2;
  order: 2;
}

.flow-step p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.9;
  grid-column: 2;
  order: 3;
}

/* --- FAQ --- */
.faq {
  background: var(--off-white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  font-family: inherit;
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--gold-dark);
}

.faq-arrow {
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer p {
  padding: 0 28px 24px;
  color: var(--gray-500);
  line-height: 2;
  font-size: 0.95rem;
}

/* --- COMPANY --- */
.company {
  background: var(--white);
}

.company-table-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--gray-200);
}

.company-table th {
  padding: 20px 24px;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  width: 180px;
  font-size: 0.95rem;
  vertical-align: top;
  background: var(--gray-50);
}

.company-table td {
  padding: 20px 24px;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- CONTACT --- */
.contact {
  background: var(--off-white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item svg {
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-info-label {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.contact-info-note {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.required {
  color: #D32F2F;
  font-size: 0.75rem;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--gray-700);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.form-privacy {
  margin-bottom: 24px;
}

.form-privacy label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gray-500);
  cursor: pointer;
}

.form-privacy a {
  color: var(--navy);
  text-decoration: underline;
}

.contact-form .btn {
  display: flex;
  margin: 0 auto;
}

/* --- FOOTER --- */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.footer-nav h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-nav li:not(:has(a)) {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

/* --- ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-inner {
    height: 64px;
  }

  .hero {
    min-height: 600px;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 14px 32px;
    font-size: 0.9rem;
  }

  .section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .about-image img {
    height: 280px;
  }

  .service-card {
    padding: 28px;
  }

  .safety-card {
    padding: 28px;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .number-value {
    font-size: 2.5rem;
  }

  .flow-step {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .flow-icon {
    width: 48px;
    height: 48px;
  }

  .flow-icon svg {
    width: 24px;
    height: 24px;
  }

  .flow-timeline::before {
    left: 23px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .company-table th {
    width: 120px;
    padding: 14px 12px;
    font-size: 0.85rem;
  }

  .company-table td {
    padding: 14px 12px;
    font-size: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .number-value {
    font-size: 2rem;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 10px 16px;
  }

  .company-table th {
    padding-bottom: 4px;
    background: transparent;
    border-bottom: none;
  }

  .company-table td {
    padding-top: 0;
  }
}
