/* =============================================
   立業株式会社 新デザイン CSS
   ============================================= */

/* --- リセット & ベース --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:   #0a2540;   /* ネイビー（信頼・先進） */
  --accent:    #0070f3;   /* ブルー（テクノロジー） */
  --accent2:   #00c6ff;   /* シアン（AI・未来感） */
  --light:     #f5f8ff;
  --white:     #ffffff;
  --text:      #1a1a2e;
  --text-sub:  #4a5568;
  --border:    #e2e8f0;
  --gradient:  linear-gradient(135deg, #0a2540 0%, #0070f3 100%);
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,112,243,0.10);
  --shadow-lg: 0 8px 40px rgba(0,112,243,0.18);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent2); }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- ボタン --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,112,243,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,112,243,0.45);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--accent);
}
.btn-outline-dark {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline-dark:hover {
  background: var(--accent);
  color: var(--white);
}

/* --- セクション共通 --- */
section {
  padding: 96px 0;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--primary);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.3;
}
.section-lead {
  text-align: center;
  color: var(--text-sub);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.9;
}
.section-label {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* =============================================
   HEADER
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 37, 64, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: white;
  letter-spacing: -1px;
}
.logo-text {
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.08em;
}
.global-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.global-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.global-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.global-nav .nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
}
.global-nav .nav-cta:hover {
  background: var(--accent2);
}
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 16px;
}
.lang-switcher a {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
}
.lang-switcher a:hover {
  color: white;
  border-color: rgba(255,255,255,0.6);
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary);
  padding: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,112,243,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(0,198,255,0.15) 0%, transparent 60%),
    linear-gradient(160deg, #0a2540 0%, #0d1b35 50%, #061020 100%);
}
/* グリッド背景 */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,112,243,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,112,243,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,112,243,0.2);
  border: 1px solid rgba(0,112,243,0.4);
  color: var(--accent2);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.hero-title .highlight {
  background: linear-gradient(90deg, #0070f3, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 40px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-number span {
  font-size: 20px;
  color: var(--accent2);
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.05em;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* =============================================
   MISSION
   ============================================= */
#mission {
  background: var(--white);
  padding: 96px 0;
}
.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.mission-text h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 24px;
}
.mission-text p {
  color: var(--text-sub);
  font-size: 16px;
  line-height: 2;
  margin-bottom: 16px;
}
.mission-visual {
  position: relative;
}
.mission-card {
  background: var(--gradient);
  border-radius: 24px;
  padding: 48px 40px;
  color: white;
  box-shadow: var(--shadow-lg);
}
.mission-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  opacity: 0.9;
}
.mission-values {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mission-values li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
}
.mission-values li::before {
  content: '→';
  color: var(--accent2);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* =============================================
   SERVICES
   ============================================= */
#services {
  background: var(--light);
  padding: 96px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(0,112,243,0.12), rgba(0,198,255,0.12));
}
.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.4;
}
.service-card p {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.9;
  flex: 1;
  margin-bottom: 24px;
}
.service-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link::after {
  content: '→';
  transition: var(--transition);
}
.service-link:hover::after {
  transform: translateX(4px);
}

/* =============================================
   CASE STUDIES
   ============================================= */
#cases {
  background: var(--white);
  padding: 96px 0;
}
.cases-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.case-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.case-item.reverse {
  direction: rtl;
}
.case-item.reverse > * {
  direction: ltr;
}
.case-visual {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gradient);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.case-visual-inner {
  text-align: center;
  color: white;
  padding: 32px;
}
.case-visual-icon {
  font-size: 64px;
  margin-bottom: 16px;
  display: block;
}
.case-visual-label {
  font-size: 14px;
  opacity: 0.8;
  letter-spacing: 0.05em;
}
.case-content .case-tag {
  display: inline-block;
  background: rgba(0,112,243,0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.case-content h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.4;
}
.case-content p {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 2;
  margin-bottom: 20px;
}
.case-client {
  font-size: 13px;
  color: var(--text-sub);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.case-client strong {
  color: var(--primary);
}

/* =============================================
   NEWS
   ============================================= */
#news {
  background: var(--light);
  padding: 96px 0;
}
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  margin-bottom: 40px;
}
.news-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}
.news-item:last-child { border-bottom: none; }
.news-item:hover {
  background: var(--light);
}
.news-date {
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
  min-width: 100px;
}
.news-cat {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 50px;
  white-space: nowrap;
}
.news-cat.press { background: rgba(0,112,243,0.1); color: var(--accent); }
.news-cat.event { background: rgba(0,198,100,0.1); color: #00c864; }
.news-cat.info  { background: rgba(100,100,100,0.1); color: #666; }
.news-title {
  font-size: 15px;
  font-weight: 500;
  flex: 1;
}
.news-arrow {
  color: var(--accent);
  font-size: 18px;
  opacity: 0;
  transition: var(--transition);
}
.news-item:hover .news-arrow { opacity: 1; }
.news-cta {
  text-align: center;
}

/* =============================================
   CAREERS
   ============================================= */
#careers {
  background: var(--primary);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
#careers::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(0,112,243,0.3) 0%, transparent 70%);
}
.careers-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.careers-text h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 24px;
}
.careers-text p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  line-height: 2;
  margin-bottom: 16px;
}
.careers-text .btn-primary {
  margin-top: 16px;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}
.careers-text .btn-primary:hover {
  background: var(--accent2);
  color: white;
}
.careers-roles {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.role-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  transition: var(--transition);
}
.role-item:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(0,198,255,0.4);
}
.role-icon { font-size: 24px; }
.role-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.role-info p { font-size: 13px; opacity: 0.65; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: #060e1c;
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-text {
  font-size: 18px;
  margin-bottom: 16px;
  display: block;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.9;
  max-width: 280px;
}
.footer-nav h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  transition: var(--transition);
}
.footer-nav a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; }
.footer-bottom .footer-lang {
  display: flex;
  gap: 12px;
}
.footer-bottom .footer-lang a {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  transition: var(--transition);
}
.footer-bottom .footer-lang a:hover { color: white; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .mission-inner,
  .case-item,
  .case-item.reverse,
  .careers-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .global-nav { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .news-item { flex-wrap: wrap; gap: 12px; }
}
