/* ===========================
   ENFiST Inc. - style.css
   =========================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: #231815;
  background-color: #ffffff;
  line-height: 1.7;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --- Color Variables --- */
:root {
  --red:     #C0302A;
  --red-dark:#9B2520;
  --dark:    #231815;
  --gray-bg: #F7F5F4;
  --gray-mid:#888080;
  --white:   #FFFFFF;
  --teal:    #2E7D8A;
  --gold:    #C89A10;
}

/* --- Layout --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ===========================
   HEADER
   =========================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  height: 44px;
  width: auto;
}

.header-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.header-name span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--gray-mid);
  letter-spacing: 0.06em;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--dark);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ===========================
   HERO
   =========================== */
.hero {
  background: var(--red);
  color: var(--white);
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border: 40px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: 60px;
  width: 180px;
  height: 180px;
  border: 28px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  border-bottom: 3px solid rgba(255,255,255,0.6);
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.8;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-acronym {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 8px;
}

.hero-acronym span {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.hero-acronym span strong {
  font-size: 1rem;
  font-weight: 800;
  margin-right: 4px;
  opacity: 1;
}

/* ===========================
   SECTION TITLES
   =========================== */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--red);
  margin-top: 12px;
  border-radius: 2px;
}

.section-lead {
  font-size: 0.95rem;
  color: var(--gray-mid);
  margin-bottom: 48px;
  max-width: 520px;
}

/* ===========================
   COMPANY OVERVIEW
   =========================== */
.about {
  background: var(--white);
}

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

.about-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.about-table tr {
  border-bottom: 1px solid #EDE9E8;
}

.about-table tr:first-child {
  border-top: 1px solid #EDE9E8;
}

.about-table th {
  width: 36%;
  padding: 16px 0;
  text-align: left;
  font-weight: 600;
  color: var(--gray-mid);
  vertical-align: top;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.about-table td {
  padding: 16px 8px;
  color: var(--dark);
  line-height: 1.65;
}

.about-visual {
  background: var(--red);
  border-radius: 12px;
  padding: 44px 36px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  border: 30px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}

.about-visual-logo {
  height: 48px;
  width: auto;
  margin-bottom: 28px;
  filter: brightness(0) invert(1);
}

.about-visual p {
  font-size: 0.95rem;
  line-height: 1.85;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.about-visual .quote {
  font-size: 1.15rem;
  font-weight: 700;
  opacity: 1;
  margin-bottom: 16px;
  line-height: 1.55;
}

/* ===========================
   SERVICES
   =========================== */
.services {
  background: var(--gray-bg);
}

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

.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 36px 28px;
  border-top: 4px solid var(--red);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(192,48,42,0.13);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-card p {
  font-size: 0.87rem;
  color: var(--gray-mid);
  line-height: 1.75;
}

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

.contact-box {
  background: var(--dark);
  border-radius: 12px;
  padding: 56px 48px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.contact-box .section-label {
  color: rgba(255,255,255,0.6);
}

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

.contact-box .section-title::after {
  background: var(--red);
}

.contact-detail {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.contact-item a:hover {
  color: var(--red);
}

.contact-cta a {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 16px 36px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.contact-cta a:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--dark);
  border-top: 3px solid var(--red);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
  }

  nav {
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero {
    padding: 64px 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .contact-box {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .header-name {
    font-size: 0.78rem;
  }

  nav a {
    font-size: 0.76rem;
  }

  .contact-box {
    padding: 28px 20px;
  }
}
