/*
Theme Name: ECGlobal Corporate
Theme URI: https://example.com
Author: ECGlobal
Author URI: https://example.com
Description: Corporate theme for Shopify EC / Global EC company - green based modern design
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecglobal-corporate
Tags: corporate, business, ec, shopify, green, modern
*/

/* ===================================================
   CSS Custom Properties
=================================================== */
:root {
  --green-primary: #008060;
  --green-dark: #004c3f;
  --green-mid: #006048;
  --green-light: #e3f0ed;
  --green-pale: #f0f9f6;
  --black: #0a0a0a;
  --black-soft: #111111;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', 'Noto Sans JP', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1200px;
  --container-wide: 1440px;
  --section-py: 100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

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

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 20px;
  line-height: 1.15;
}

.section-desc {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
}

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

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

section {
  padding: var(--section-py) 0;
}

/* ===================================================
   Buttons
=================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  border: 2px solid var(--green-primary);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,128,96,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
}

.btn-outline:hover {
  background: var(--green-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
}

.btn-dark:hover {
  background: var(--gray-800);
  border-color: var(--gray-800);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.btn-white {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--white);
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 44px;
  font-size: 16px;
}

/* ===================================================
   Header / Navigation
=================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--transition);
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--gray-200);
}

#site-header.transparent {
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 40px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header-logo-img {
  height: 18px;
  width: auto;
  display: block;
}
.site-logo .logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: inherit;
}
.footer-logo-img {
  height: 18px;
  width: auto;
  display: block;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--green-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: white;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  transition: color var(--transition);
}

#site-header.transparent .logo-text {
  color: var(--white);
}

#site-header.scrolled .logo-text {
  color: var(--black);
}

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

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

#site-header.transparent .nav-menu a {
  color: rgba(255,255,255,0.85);
}

#site-header.scrolled .nav-menu a {
  color: var(--gray-700);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  border-radius: 2px;
}

.nav-menu a:hover::after {
  transform: scaleX(1);
}

.nav-menu a:hover {
  color: var(--green-primary);
}

.nav-cta {
  background: var(--green-primary);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  font-size: 14px !important;
}

.nav-cta:hover {
  background: var(--green-dark);
  color: var(--white) !important;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===================================================
   Mobile Menu
=================================================== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  padding: 100px 40px 40px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  color: var(--gray-700);
  padding: 8px;
  line-height: 1;
}

/* ===================================================
   Footer
=================================================== */
#site-footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 20px;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-nav-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.footer-nav a {
  display: block;
  font-size: 14px;
  color: var(--gray-300);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--green-primary);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray-500);
}

/* ===================================================
   Page Hero (inner pages)
=================================================== */
.page-hero {
  background: var(--black);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,128,96,0.15) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.page-hero .section-label {
  color: var(--green-primary);
}

.page-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
}

/* ===================================================
   Breadcrumb
=================================================== */
.breadcrumb {
  background: var(--gray-50);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
}

.breadcrumb-list a {
  color: var(--green-primary);
}

.breadcrumb-list .sep {
  color: var(--gray-300);
}

/* ===================================================
   Cards
=================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* ===================================================
   Tags
=================================================== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tag-green {
  background: var(--green-light);
  color: var(--green-dark);
}

.tag-black {
  background: var(--black);
  color: var(--white);
}

.tag-gray {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* ===================================================
   Scroll Animations
=================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }
.fade-up-delay-5 { transition-delay: 0.5s; }

/* ===================================================
   Responsive
=================================================== */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 60px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .container {
    padding: 0 16px;
  }
}
