/* 株式会社ENON コーポレートサイト — Stylesheet */

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background-color: #ffffff;
  color: #1a2c47;
  overflow-x: hidden;
}

/* ===== Service Cards ===== */
.service-card {
  display: block;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid rgba(0, 118, 147, 0.15);
  border-radius: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 118, 147, 0.05);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 118, 147, 0) 0%, rgba(0, 118, 147, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover {
  border-color: rgba(0, 118, 147, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 118, 147, 0.12);
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }
.service-card-num {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: #007693;
  margin-bottom: 1rem;
}

/* ===== Service Detail ===== */
.service-detail {
  padding: 6rem 1.5rem;
  border-top: 1px solid rgba(0, 118, 147, 0.1);
}
@media (min-width: 1024px) {
  .service-detail { padding: 10rem 2.5rem; }
}
.service-detail-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .service-detail-inner {
    grid-template-columns: 12rem 1fr;
    gap: 5rem;
  }
}
.service-detail-num {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1;
  color: rgba(0, 118, 147, 0.25);
  letter-spacing: -0.04em;
}
.service-detail-title {
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  color: #1a2c47;
}
.service-detail-lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.8;
  color: #3a4a64;
  font-weight: 500;
  margin-bottom: 1rem;
}
.service-detail-list {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service-detail-list li {
  list-style: none;
  background: #E3F4F7;
  border: 1px solid rgba(0, 118, 147, 0.3);
  color: #005C73;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 500;
}

/* ===== Works Cards ===== */
.work-card {
  padding: 2rem;
  background: #ffffff;
  border: 1px solid rgba(0, 118, 147, 0.15);
  border-radius: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 118, 147, 0.05);
}
.work-card:hover {
  border-color: rgba(0, 118, 147, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 118, 147, 0.12);
}

/* ===== Contact Inputs ===== */
.contact-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 118, 147, 0.2);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: #1a2c47;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.contact-input:focus {
  outline: none;
  border-color: #007693;
  background: rgba(0, 118, 147, 0.03);
  box-shadow: 0 0 0 3px rgba(0, 118, 147, 0.15);
}
.contact-input::placeholder { color: rgba(26, 44, 71, 0.4); }

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #F0F8F9; }
::-webkit-scrollbar-thumb { background: rgba(0, 118, 147, 0.4); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #007693; }

/* ===== Print ===== */
@media print {
  header, footer, #contact-form { display: none; }
  body { background: white; color: black; }
}

/* ===== Selection ===== */
::selection { background: rgba(0, 118, 147, 0.3); color: #1a2c47; }
