@charset "utf-8";

/* ============================================================
   LIFU.ltd — "Noir Precision" Design System
   福岡の広告代理店 株式会社LIFU
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Noto+Sans+JP:wght@300;400;500;600;700;900&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary: #050508;
  --bg-secondary: #0c0c12;
  --bg-card: #111118;
  --bg-card-hover: #16161f;
  --accent: #00c8ff;
  --accent-glow: rgba(0, 200, 255, 0.25);
  --accent2: #ff6b35;
  --accent2-glow: rgba(255, 107, 53, 0.2);
  --text-primary: #e8e8ec;
  --text-secondary: #9898a6;
  --text-muted: #5c5c6a;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* --- Noise Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 4vw, 60px);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.current {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.current::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--accent) !important;
  color: var(--bg-primary) !important;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.04em !important;
  transition: var(--transition-spring) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: #fff !important;
  color: var(--bg-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  margin: 6px auto;
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.97);
  backdrop-filter: blur(40px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.nav-mobile a:hover { color: var(--accent); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(0, 200, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--bg-primary) 100%);
}

/* Animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px clamp(24px, 5vw, 60px) 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  animation: fadeInUp 0.8s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px transparent; }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .accent { color: var(--accent); }
.hero h1 .accent2 { color: var(--accent2); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 2;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating orb decoration */
.hero-orb {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb--1 {
  background: var(--accent);
  top: 10%; right: -5%;
}

.hero-orb--2 {
  background: var(--accent2);
  bottom: 10%; left: -10%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 20px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition-spring);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: #fff;
  color: var(--bg-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 200, 255, 0.05);
}

/* ============================================================
   SECTIONS (common)
   ============================================================ */
section {
  padding: clamp(60px, 10vw, 120px) clamp(24px, 5vw, 60px);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 60px;
  line-height: 1.9;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--text-primary);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
}

.service-card:hover::before { opacity: 1; }

.service-card-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 200, 255, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.service-card-arrow {
  position: absolute;
  bottom: 24px; right: 24px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.service-card:hover .service-card-arrow {
  background: var(--accent);
  color: var(--bg-primary);
  transform: translateX(4px);
}

/* ============================================================
   NUMBERS / STATS
   ============================================================ */
.stats {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number span {
  font-size: 0.5em;
  font-weight: 500;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================================
   NEWS / WHAT'S NEW
   ============================================================ */
.news-list {
  border-top: 1px solid var(--border);
}

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

.news-item:hover {
  padding-left: 12px;
}

.news-date {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 100px;
  letter-spacing: 0.04em;
}

.news-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0, 200, 255, 0.06) 0%, transparent 70%);
}

.cta-section .section-inner {
  position: relative;
  z-index: 1;
}

.cta-section .section-title {
  margin-left: auto;
  margin-right: auto;
}

.cta-section .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px clamp(24px, 5vw, 60px) 30px;
}

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

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

.footer-logo img {
  height: 28px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   SUBPAGE: COMPANY / WORKS / CONTACT etc.
   ============================================================ */

/* Page Hero */
.page-hero {
  padding: 160px clamp(24px, 5vw, 60px) 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 30%, rgba(0, 200, 255, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.page-hero .section-inner { position: relative; z-index: 1; }

.page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.page-title-jp {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--font-body);
}

/* Content Area */
.page-content {
  padding: 0 clamp(24px, 5vw, 60px) clamp(60px, 10vw, 120px);
}

.page-content .section-inner {
  max-width: 900px;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font-display);
}

.page-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 32px 0 12px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
}

.page-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 2;
}

.page-content figure {
  margin: 32px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.page-content figure img {
  width: 100%;
  transition: var(--transition);
}

.page-content figure:hover img {
  transform: scale(1.02);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 40px;
  padding: 12px 0;
  transition: var(--transition);
}

.back-link:hover { color: var(--accent); }

/* ============================================================
   TABLE (ta1) — Company Info
   ============================================================ */
.ta1 {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 auto 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.95rem;
}

.ta1 th,
.ta1 td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  text-shadow: none;
}

.ta1 th {
  width: 160px;
  background: rgba(0, 200, 255, 0.04);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.ta1 td {
  color: var(--text-secondary);
  line-height: 1.8;
}

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

.ta1 a { color: var(--accent); }
.ta1 a:hover { color: #fff; }

/* ============================================================
   WORKS LIST GRID
   ============================================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.work-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-primary);
  display: block;
}

.work-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
}

.work-card figure {
  overflow: hidden;
  aspect-ratio: 16/10;
}

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

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

.work-card h4 {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.contact-form {
  max-width: 700px;
}

.form-row {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea,
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: var(--transition);
  outline: none;
  text-shadow: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--accent);
  background: rgba(0, 200, 255, 0.03);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.8;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

.form-btn {
  margin-top: 32px;
}

input[type="submit"],
button[type="submit"] {
  padding: 14px 40px;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition-spring);
}

input[type="submit"]:hover,
button[type="submit"]:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

input[type="reset"] {
  padding: 14px 32px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  transition: var(--transition);
}

input[type="reset"]:hover {
  border-color: var(--text-secondary);
  color: #fff;
}

/* ============================================================
   UL DISC / OL
   ============================================================ */
ul.disc {
  list-style: none;
  padding: 0 0 20px 0;
}

ul.disc li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

ul.disc li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.8em;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

ol {
  padding: 0 0 20px 24px;
  color: var(--text-secondary);
}

ol li { margin-bottom: 8px; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.mb15 { margin-bottom: 15px !important; }
.mb30 { margin-bottom: 30px !important; }
.mt40 { margin-top: 40px !important; }
.c { text-align: center; }
.r { text-align: right; }
.l { text-align: left; }

/* Hide/show for responsive */
.sh { display: none; }

/* ============================================================
   RESPONSIVE: TABLET (< 900px)
   ============================================================ */
@media screen and (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

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

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ============================================================
   RESPONSIVE: MOBILE (< 600px)
   ============================================================ */
@media screen and (max-width: 600px) {
  html { font-size: 15px; }

  .nav { height: 64px; }

  .hero-content {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a,
  .hero-actions button {
    width: 100%;
    justify-content: center;
  }

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

  .ta1 { font-size: 0.88rem; }

  .ta1 th,
  .ta1 td { padding: 12px 16px; }

  .ta1 th { width: auto; }

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

  .news-item {
    flex-direction: column;
    gap: 4px;
  }
}

/* ============================================================
   LEGACY COMPATIBILITY (keep old pages working)
   ============================================================ */

/* Old container/header hidden - new markup used */
#container { position: relative; width: 100%; height: auto; }
header.pc { position: static; width: auto; height: auto; border: none; }
header.pc:hover { width: auto; background: none; }
#menubar { display: none; }
#menubar-s { display: none; }
#menubar_hdr { display: none; }
#mainimg { display: none; }
header.pc .logo { display: none; }
header.sh { display: none; }

#contents { height: auto; width: 100%; }
.home #contents { position: static; }

#main {
  overflow: visible;
  padding: 0;
  height: auto;
  animation: none;
}

/* Old title style override */
#main h2.title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  padding-bottom: 16px;
  letter-spacing: -0.02em;
}

#main h2.title span {
  display: block;
  float: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-family: var(--font-body);
}

#main h2.title::first-letter {
  border-left: none;
  padding-left: 0;
}

#main h2 { color: var(--accent); margin-bottom: 16px; font-size: 1.3rem; }
#main h2::first-letter { border-left: none; padding-left: 0; }
#main h3 { font-size: 1.15rem; margin-bottom: 12px; }
#main p { padding: 0 0 16px; font-size: 0.95rem; color: var(--text-secondary); line-height: 2; }

footer {
  text-align: center;
  padding: 40px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }

/* Box (subpages) */
.box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 5%, 48px);
  margin-bottom: 32px;
}

/* List cards (works.html) */
.list {
  float: none;
  width: auto;
  margin: 0;
  background: none;
}

/* Page top button */
.nav-fix-pos-pagetop a {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1rem;
  z-index: 100;
  transition: var(--transition);
  text-decoration: none;
}

.nav-fix-pos-pagetop a:hover {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.home .nav-fix-pos-pagetop a { display: none; }

/* Works subpage button style */
a.btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: var(--transition-spring);
}

a.btn:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}
