/* Big Fame IND. CORP. - Global Style Sheet */
/* Google Fonts Integration - Inter & Noto Sans (JP / TC) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

/* --- Design Tokens / System --- */
:root {
  /* Color Palette (Light Theme Default) */
  --bg-primary: #fdfcf9;
  --bg-primary-rgb: 253, 252, 249;
  --bg-secondary: #f3f1ec;
  --bg-dark: #121212;
  --bg-dark-accent: #1e2022;
  
  --text-primary: #17191c;
  --text-secondary: #555555;
  --text-muted: #8c8c8c;
  --text-light: #ffffff;
  
  --accent-color: #2b3a4a;        /* Muted Metallic Blue */
  --accent-light: #4a637d;
  --accent-gold: #c5a880;         /* Premium Accent Gold */
  
  --border-color: #e5e5e5;
  --border-dark: #333333;

  --header-scrolled-bg: rgba(255, 255, 255, 0.85);

  /* Typography */
  --font-global: 'Inter', 'Noto Sans JP', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout & Spacing */
  --container-width: 1240px;
  --header-height: 80px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
}

/* Dark Theme Overrides */
html[data-theme="dark"] {
  --bg-primary: #121212;
  --bg-primary-rgb: 18, 18, 18;
  --bg-secondary: #1a1c1e;
  --text-primary: #f5f6f8;
  --text-secondary: #a0a5b0;
  --text-muted: #757b85;
  --border-color: #2a2d31;
  --accent-color: #3f556d;
  --accent-light: #5c7b9c;
  --header-scrolled-bg: rgba(18, 18, 18, 0.85);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-global);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

body.menu-open {
  overflow: hidden;
}

p, li, h1, h2, h3, h4, a {
  overflow-wrap: anywhere;
}

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

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
}

ul {
  list-style: none;
}

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

.section {
  padding: 112px 0;
  position: relative;
}

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

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-2 > *, .grid-3 > *, .grid-4 > *,
.contact-wrapper > *, .footer-grid > * {
  min-width: 0;
}

/* TA decision blocks: turn company assets into buying evidence. */
.decision-card { border: 1px solid var(--border-color); background: var(--bg-primary); padding: 28px; min-height: 250px; transition: var(--transition-smooth); }
.decision-card:hover { transform: translateY(-3px); border-color: var(--accent-gold); box-shadow: 0 14px 35px rgba(17,17,17,.08); }
.decision-kicker { color: var(--accent-gold); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.decision-card h3 { margin-bottom: 12px; font-size: 1.25rem; font-weight: 500; }
.decision-card p, .decision-card li { color: var(--text-secondary); font-weight: 300; }
.decision-card ul { margin-top: 16px; font-size: .92rem; }
.decision-card li { margin-top: 7px; padding-left: 16px; position: relative; }
.decision-card li::before { content: '—'; position: absolute; left: 0; color: var(--accent-gold); }
.evidence-band { background: var(--bg-dark); color: var(--text-light); }
.evidence-band .section-title { color: var(--text-light); }
.evidence-band .section-subtitle { color: var(--accent-gold); }
.case-hero { padding: 150px 0 84px; background: var(--bg-dark); color: var(--text-light); overflow: hidden; }
.case-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); gap: 72px; align-items: center; }
.case-hero-kicker { color: var(--accent-gold); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 22px; }
.case-hero h1 { max-width: 660px; margin: 0; color: var(--text-light); font-size: clamp(2.4rem, 5vw, 5.4rem); line-height: .98; letter-spacing: -.04em; font-weight: 400; }
.case-hero-lede { max-width: 580px; margin: 28px 0 0; color: rgba(255,255,255,.7); font-size: 1.02rem; line-height: 1.8; font-weight: 300; }
.case-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.case-hero-actions .btn-secondary { border-color: rgba(255,255,255,.3); color: var(--text-light); }
.case-hero-visual { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 230px 170px; gap: 12px; }
.case-hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85); }
.case-hero-visual .hero-image-main { grid-row: 1 / span 2; }
.case-hero-note { align-self: stretch; padding: 24px; background: var(--accent-gold); color: var(--bg-dark); display: flex; flex-direction: column; justify-content: flex-end; }
.case-hero-note strong { font-size: 2.4rem; font-weight: 400; line-height: 1; }
.case-hero-note span { margin-top: 8px; font-size: .76rem; line-height: 1.5; }
.case-source-placeholder {
  min-height: 400px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background:
    linear-gradient(135deg, rgba(197,168,128,.2), rgba(18,18,18,.92)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 28px);
  color: var(--text-light);
}
.case-source-placeholder .section-subtitle { color: var(--accent-gold); margin-bottom: 4px; }
.case-source-placeholder strong { font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 400; line-height: 1.15; }
.case-source-placeholder span:last-child { color: rgba(255,255,255,.72); font-size: .82rem; line-height: 1.7; }
.case-signal-bar { background: var(--bg-dark-accent); color: var(--text-light); border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.case-signal-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); }
.case-signal-item { min-height: 96px; padding: 22px 24px; border-left: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; justify-content: center; }
.case-signal-item:first-child { border-left: 0; padding-left: 0; }
.case-signal-item strong { color: var(--accent-gold); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 7px; }
.case-signal-item span { color: rgba(255,255,255,.78); font-size: .9rem; line-height: 1.55; }
.case-signal-item:not(:first-child) span { font-size: 1.05rem; color: var(--text-light); }
.case-disclosure { padding: 16px 0; background: #f2eee7; border-bottom: 1px solid var(--border-color); }
.case-disclosure p { margin: 0; color: var(--text-secondary); font-size: .78rem; line-height: 1.6; }
.case-disclosure strong { color: var(--text-primary); font-weight: 500; }
.case-library { background: var(--bg-primary); }
.case-library-intro { max-width: 720px; margin: 0 0 32px; color: var(--text-secondary); font-weight: 300; line-height: 1.75; }
.case-library .section-header { max-width: 820px; margin-left: 0; margin-right: 0; text-align: left; }
.case-library-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.case-library-card { grid-column: span 6; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 276px; border: 1px solid var(--border-color); background: var(--bg-secondary); overflow: hidden; transition: var(--transition-smooth); }
.case-library-card:first-child { grid-column: span 12; grid-template-columns: 1.35fr .65fr; min-height: 340px; }
.case-library-card:hover { transform: translateY(-4px); border-color: var(--accent-gold); box-shadow: 0 18px 40px rgba(17,17,17,.08); }
.case-library-card img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; display: block; }
.case-library-card-body { display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.case-library-card h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 400; margin: 0 0 12px; letter-spacing: -.02em; }
.case-library-card p { color: var(--text-secondary); font-size: .9rem; line-height: 1.7; font-weight: 300; margin: 0; }
.case-library-card .case-meta { color: var(--accent-gold); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.case-library-card .case-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--text-primary); font-size: .78rem; letter-spacing: .04em; text-decoration: none; }
.case-library-card .case-card-link::after { content: '→'; color: var(--accent-gold); transition: transform .2s ease; }
.case-library-card .case-card-link:hover::after, .case-library-card .case-card-link:focus-visible::after { transform: translateX(4px); }
@media (max-width: 980px) { .case-hero-grid { grid-template-columns: 1fr; gap: 46px; } .case-hero-visual { max-width: 680px; } .case-library-card, .case-library-card:first-child { grid-column: span 12; } }
@media (max-width: 720px) { .case-signal-grid { grid-template-columns: 1fr 1fr; } .case-signal-item:first-child { grid-column: span 2; padding-left: 0; } .case-signal-item:nth-child(3) { border-left: 0; } }
@media (max-width: 560px) { .case-hero { padding-top: 126px; } .case-hero-visual { grid-template-columns: 1fr; grid-template-rows: auto; } .case-source-placeholder { min-height: 270px; padding: 24px; } .case-library-card, .case-library-card:first-child { display: block; } .case-library-card img { aspect-ratio: 16 / 10; } .case-library-card-body { padding: 22px; } }
.evidence-item { border-left: 1px solid rgba(255,255,255,.25); padding-left: 22px; }
.evidence-item strong { display: block; font-size: 1.1rem; font-weight: 500; margin-bottom: 8px; }
.evidence-item span { color: rgba(255,255,255,.68); font-size: .9rem; font-weight: 300; }
.home-proof { background: var(--bg-primary); border-bottom: 1px solid var(--border-color); }
.home-proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.home-proof-item { padding: 24px 28px; border-left: 1px solid var(--border-color); }
.home-proof-item:first-child { border-left: 0; padding-left: 0; }
.home-proof-item strong { display: block; color: var(--accent-gold); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 8px; }
.home-proof-item span { display: block; color: var(--text-primary); font-size: .95rem; line-height: 1.6; }
@media (max-width: 768px) { .home-proof-grid { grid-template-columns: 1fr; } .home-proof-item, .home-proof-item:first-child { border-left: 0; border-top: 1px solid var(--border-color); padding: 18px 0; } .home-proof-item:first-child { border-top: 0; } }

/* Section Header */
.section-header {
  margin-bottom: 48px;
  max-width: 700px;
}

.section-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* --- Global Elements / Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
  cursor: pointer;
  border-radius: 0px; /* Boxy modern style */
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-light);
  border: 1px solid var(--accent-color);
}

.btn-primary:hover {
  background-color: var(--bg-primary);
  color: var(--accent-color);
}

.btn-secondary {
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
}

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

.btn-group {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

/* --- Header / Navigation Bar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(253,252,249,.92);
  border-bottom: 1px solid rgba(229,229,229,.78);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  background-color: rgba(var(--bg-primary-rgb),.94);
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.navbar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Header phone CTA: keep the contact action compact and intentional. */
.header-phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--transition-fast);
}

.header-phone-cta:hover,
.header-phone-cta:focus-visible {
  color: var(--text-primary);
}

.header-phone-cta svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: currentColor;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--accent-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Language Selector */
.lang-selector {
  position: relative;
  display: inline-block;
  margin-left: 16px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: rgba(var(--bg-primary-rgb), 0.85);
  border: 1px solid var(--border-color);
  min-width: 110px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  z-index: 1100;
}

.lang-selector:hover .lang-dropdown,
.lang-selector:focus-within .lang-dropdown,
.lang-selector.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.lang-dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: left;
  width: 100%;
}

.lang-dropdown-item:hover,
.lang-dropdown-item.active {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 500;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-toggle:focus-visible,
.lang-btn:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.lang-dropdown-item:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-size: cover;
  background-position: center;
  filter: brightness(0.78) saturate(0.78);
  transform: scale(1.03);
  transition: transform 10s ease-out;
}

.hero-bg-fallback {
  z-index: 1;
}

.hero-bg-video {
  z-index: 1;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .hero-bg-video {
    display: none;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.985) 0%, rgba(255,255,255,0.94) 46%, rgba(255,255,255,0.56) 72%, rgba(255,255,255,0.12) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 750px;
  padding-top: var(--header-height);
}

.product-names {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 22px 0 0;
}

.product-visual {
  margin-top: 24px;
  max-width: 520px;
}

.product-visual img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 4px;
}

.hero-tag {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 24px;
  display: block;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-title span {
  font-weight: 700;
  display: block;
  color: var(--accent-color);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
  font-weight: 400;
  max-width: 680px;
}

/* --- About Preview / Page Elements --- */
.about-image-wrapper {
  position: relative;
  padding-right: 20px;
  padding-bottom: 20px;
}

.about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-left: 4px solid var(--accent-gold);
}

.about-img-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 240px;
  background-color: var(--accent-color);
  z-index: -1;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.fact-item .num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.fact-item .label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Office Locations Cards */
.location-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 40px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.location-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 15px rgba(43, 58, 74, 0.1);
}

.location-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--accent-color);
}

.location-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Products & Capabilities Page / Preview --- */
.product-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 15px rgba(197, 168, 128, 0.15);
}

.product-img-holder {
  width: 100%;
  height: 280px;
  background-color: var(--bg-secondary);
  overflow: hidden;
  position: relative;
}

.product-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-img-holder img {
  transform: scale(1.05);
}

.product-info {
  padding: 24px;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Services Workflow Page / Preview --- */
.timeline {
  position: relative;
  margin-top: 48px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding-bottom: 60px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 39px;
  top: 40px;
  bottom: 0;
  width: 1.5px;
  background-color: var(--border-color);
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  z-index: 5;
}

.timeline-content {
  padding-top: 12px;
}

.timeline-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 800px;
}

/* --- Applications / Projects Page / Preview --- */
.app-card {
  position: relative;
  height: auto;
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  overflow: hidden;
  transition: var(--transition-smooth);
}

html[lang="ja"] { --font-global: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
html[lang="ja"] .case-hero h1 { line-height: 1.16; letter-spacing: .015em; font-weight: 400; }
html[lang="ja"] .case-hero-lede { letter-spacing: .025em; line-height: 2; }
html[lang="ja"] .case-hero-kicker { letter-spacing: .14em; }
html[lang="ja"] .case-library-card h3 { line-height: 1.45; letter-spacing: .01em; }
html[lang="ja"] .case-library-card p, html[lang="ja"] .case-library-intro { line-height: 1.95; letter-spacing: .015em; }
html[lang="ja"] .btn { letter-spacing: .04em; }
.app-card:hover { transform: translateY(-4px); border-color: var(--accent-gold); box-shadow: 0 18px 40px rgba(17,17,17,.08); }

.app-card-img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.app-card-overlay {
  position: relative;
  width: 100%;
  height: auto;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
}

.app-card:hover .app-card-img {
  transform: scale(1.05);
}

.app-card:hover .app-card-overlay { background: var(--bg-secondary); }
.app-card-title { color: var(--text-primary); }
.app-card-desc { color: var(--text-secondary); }
@media (max-width: 760px) { .app-card { grid-template-columns: 1fr; } .app-card-img { min-height: 220px; max-height: 300px; } .app-card-overlay { padding: 26px; } }

.app-card-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.app-card-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 1;
  transform: none;
}

.app-card:hover .app-card-desc {
  opacity: 1;
  transform: none;
}

/* --- Contact Us Form & Info --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.contact-info-item p {
  font-size: 1rem;
  color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  border: none;
  border-bottom: 1.5px solid var(--border-color);
  padding: 12px 4px;
  transition: var(--transition-fast);
  background-color: transparent;
  outline: none;
}

.form-control:focus {
  border-bottom-color: var(--text-primary);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-status-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10000;
  width: min(520px, calc(100vw - 32px));
  padding: 24px 28px 24px 64px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: #173f35;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -46%) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  pointer-events: none;
}

.form-status-modal::before {
  content: '✓';
  position: absolute;
  top: 22px;
  left: 26px;
  width: 26px;
  height: 26px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
}

.form-status-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.form-status-modal.error {
  background: #7c2929;
}

.form-status-modal.error::before {
  content: '!';
}

@media (max-width: 600px) {
  .form-status-modal {
    padding: 20px 20px 20px 56px;
    font-size: 0.95rem;
  }

  .form-status-modal::before {
    top: 19px;
    left: 20px;
  }
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-muted);
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--border-dark);
  font-size: 0.9rem;
}

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

.footer-brand h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.footer-brand p {
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--text-muted);
  border: 1px solid var(--border-dark);
  transition: var(--transition-fast);
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--text-light);
  border-color: var(--text-light);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-title {
  color: var(--text-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-info p span {
  display: block;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* --- Scroll Animation (Scroll-driven Fade-in) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.reveal-active {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Mobile Responsive styles (Media Queries) --- */
@media (max-width: 1024px) {
  .container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-card {
    padding: 28px;
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section {
    padding: 60px 0;
  }

  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .header-phone-cta {
    width: 40px;
    height: 40px;
    justify-content: center;
    font-size: 0;
  }

  .header-phone-cta svg {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .location-card {
    padding: 28px 24px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .hero {
    height: auto;
    min-height: 100svh;
    padding: calc(var(--header-height) + 48px) 0 56px;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.9) 72%, rgba(255,255,255,0.62) 100%);
  }

  .btn-group {
    flex-direction: column;
    gap: 12px;
  }

  .btn-group .btn,
  .contact-form .btn {
    width: 100%;
    min-height: 48px;
  }

  .about-img {
    height: 320px;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-control {
    width: 100%;
    min-width: 0;
  }

  .timeline-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 44px;
  }

  .timeline-number {
    width: 56px;
    height: 56px;
  }

  .timeline-item::after {
    left: 27px;
    top: 56px;
  }

  .footer {
    padding: 60px 0 32px;
  }

  .footer-grid {
    gap: 36px;
    margin-bottom: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 28px;
  }

  /* Navigation for Mobile */
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 48px 24px;
    gap: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    border-top: 1px solid var(--border-color);
    
    /* Hide Menu initially */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Hamburger transform when menu is active */
  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width: 420px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding: 48px 0;
  }

  .logo {
    font-size: 1.05rem;
  }

  .logo-sub {
    font-size: 0.58rem;
  }

  .lang-btn {
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 36px);
  }

  .hero-tag {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
  }

  .hero-title,
  .section-title {
    letter-spacing: -0.01em;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-desc {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .location-card,
  .product-info {
    padding: 22px 18px;
  }

  .timeline-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
  }

  .timeline-number {
    width: 44px;
    height: 44px;
    font-size: 0.78rem;
  }

  .timeline-item::after {
    left: 21px;
    top: 44px;
  }

  .nav-menu {
    padding: 36px 18px;
  }
}

@media (hover: none) {
  .location-card:hover,
  .product-card:hover,
  .app-card:hover {
    transform: none;
  }
}

/* --- Living Website Additions (Transitions & Status Badges) --- */
body {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.page-loaded {
  opacity: 1;
}

/* Status Indicator Dot & Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0px;
  letter-spacing: 0.05em;
  margin-right: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.status-open {
  background-color: rgba(227, 249, 233, 0.85);
  color: #197c36;
  border: 1px solid rgba(198, 240, 210, 0.8);
}

html[data-theme="dark"] .status-open {
  background-color: rgba(25, 124, 54, 0.15);
  color: #5ad87a;
  border: 1px solid rgba(25, 124, 54, 0.3);
}

.status-open .status-dot {
  background-color: #197c36;
  animation: pulse-green 2s infinite;
}

html[data-theme="dark"] .status-open .status-dot {
  background-color: #5ad87a;
}

.status-closed {
  background-color: rgba(255, 235, 233, 0.85);
  color: #d1241a;
  border: 1px solid rgba(255, 208, 204, 0.8);
}

html[data-theme="dark"] .status-closed {
  background-color: rgba(209, 36, 26, 0.15);
  color: #ff6b61;
  border: 1px solid rgba(209, 36, 26, 0.3);
}

.status-closed .status-dot {
  background-color: #d1241a;
  animation: pulse-red 2s infinite;
}

html[data-theme="dark"] .status-closed .status-dot {
  background-color: #ff6b61;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(25, 124, 54, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(25, 124, 54, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(25, 124, 54, 0);
  }
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(209, 36, 26, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(209, 36, 26, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(209, 36, 26, 0);
  }
}

.office-status {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

/* Theme Toggle Button styling */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-left: 12px;
  background-color: transparent;
  outline: none;
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
  background-color: var(--bg-secondary);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll Down Mouse Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.scroll-indicator:hover {
  color: var(--text-primary);
  opacity: 1;
}

.scroll-indicator-mouse {
  width: 20px;
  height: 32px;
  border: 1.5px solid currentColor;
  border-radius: 10px;
  position: relative;
}

.scroll-indicator-wheel {
  width: 3px;
  height: 6px;
  background-color: currentColor;
  border-radius: 1.5px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.8s infinite;
}

.scroll-indicator-text {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

@keyframes scroll-wheel {
  0% {
    top: 6px;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  60% {
    top: 16px;
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Canvas background overlay */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

