/* ==========================================================================
   ULGS Corporate Site — base stylesheet
   No external font/CDN dependency by design (self-contained, disposable host)
   ========================================================================== */

:root {
  --color-primary: #122744;
  --color-primary-light: #1f3d68;
  --color-accent: #12b5a0;
  --color-accent-dark: #0d8e7d;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fa;
  --color-text: #1f2933;
  --color-text-muted: #5b6472;
  --color-border: #e2e8f0;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", Meiryo, sans-serif;
  --max-width: 1120px;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(18, 39, 68, 0.08);
  --shadow-hover: 0 8px 28px rgba(18, 39, 68, 0.14);
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.4;
  font-weight: 700;
  color: var(--color-primary);
}

p {
  margin: 0 0 1em;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}

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

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-mark {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.03em;
}

.brand-sub {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

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

.nav a {
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

.nav a:hover,
.nav a.active {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.nav a.cta {
  background: var(--color-accent);
  color: #fff;
}

.nav a.cta:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-secondary {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-border);
}

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

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0a1830 100%);
  color: #fff;
  padding: 96px 0 88px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 0.3em;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- Section ---------- */

.section {
  padding: 80px 0;
}

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

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.4em;
}

.section-head p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Cards / Services ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(18, 181, 160, 0.12);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Company overview table ---------- */

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

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

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

.news-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.news-item {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

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

.news-date {
  flex: 0 0 auto;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.news-tag {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(18, 181, 160, 0.12);
  color: var(--color-accent-dark);
}

.news-title {
  flex: 1 1 auto;
  color: var(--color-text);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.3em;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
}

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

.contact-panel {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-email {
  display: inline-block;
  margin-top: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 16px 32px;
  border: 2px solid var(--color-accent);
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}

.contact-email:hover {
  background: var(--color-accent);
  color: #fff;
}

.contact-note {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

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

.site-footer {
  background: #0a1830;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .brand-mark {
  color: #fff;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

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

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Simple page hero (sub pages) ---------- */

.page-hero {
  background: var(--color-bg-alt);
  padding: 56px 0;
  border-bottom: 1px solid var(--color-border);
}

.page-hero .section-eyebrow {
  margin-bottom: 8px;
}

.page-hero h1 {
  margin-bottom: 0.2em;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}

.page-hero p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Utility ---------- */

.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 48px;
}

/* ---------- 404 ---------- */

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.error-page .code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0;
}

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

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-grid {
    flex-direction: column;
  }

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

@media (max-width: 520px) {
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }

  .info-table th {
    padding-bottom: 4px;
    border-bottom: none;
  }

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

  .contact-panel {
    padding: 32px 20px;
  }
}
