/* ===========================================================
   ENLink corporate site — shared stylesheet
   =========================================================== */

:root {
  --color-primary: #0d3b66;
  --color-primary-dark: #082744;
  --color-accent: #e08a2c;
  --color-text: #2a2f36;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-border: #e3e7ed;
  --max-width: 1080px;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(13, 59, 102, 0.08);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Noto Sans JP", Meiryo, system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

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

.brand img {
  height: 40px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.is-current {
  color: #ffffff;
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--color-primary-dark);
  overflow: hidden;
  line-height: 0;
}

.hero img {
  width: 100%;
  height: auto;
}

.page-hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 56px 0 40px;
}

.page-hero .eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 700;
}

.page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-text-light);
}

/* ---------- Sections ---------- */

section {
  padding: 56px 0;
}

section.alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

.lead {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 640px;
}

/* ---------- News ---------- */

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.news-list li {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.news-list time {
  flex: none;
  color: var(--color-text-light);
  font-variant-numeric: tabular-nums;
}

/* ---------- Message / founder block ---------- */

.message {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.message img {
  width: 180px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.message-body {
  flex: 1;
  min-width: 260px;
}

.signature {
  text-align: right;
  margin-top: 20px;
  font-weight: 600;
}

.signature .role {
  color: var(--color-text-light);
  font-weight: 400;
  margin-right: 8px;
}

/* ---------- Cards / CTA ---------- */

.cta-banner {
  display: block;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.2s ease;
}

.cta-banner:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

.cta-banner span {
  display: block;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

/* ---------- Table (company info / recruit) ---------- */

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

.info-table th,
.info-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.info-table th {
  width: 180px;
  color: var(--color-text-light);
  font-weight: 600;
  background: var(--color-bg-alt);
}

/* ---------- Business points ---------- */

.business-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}

.business-item:last-child {
  border-bottom: none;
}

.business-item h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.business-item .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.95rem;
  flex: none;
}

/* ---------- Contact ---------- */

.contact-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 560px;
}

.contact-method {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 14px 0;
  font-size: 1.1rem;
}

.contact-method .label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  min-width: 64px;
}

/* ---------- Map ---------- */

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-company {
  font-size: 0.9rem;
  min-width: 240px;
}

.footer-company strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
}

.copyright {
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.back-to-top {
  text-align: right;
  padding: 12px 0 0;
}

.back-to-top a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    box-shadow: var(--shadow);
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .main-nav a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-toggle {
    display: flex;
  }

  .message {
    flex-direction: column;
  }

  .message img {
    width: 140px;
  }

  .info-table th {
    width: 120px;
  }

  .footer-grid {
    flex-direction: column;
    gap: 24px;
  }
}
