/* ===========================================
   STARTECH - Global Styles
   =========================================== */

:root {
  /* Colors */
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --bg-soft: #fafbfc;
  --bg-dark: #1a1a1c;
  --fg: #1f1d1c;
  --fg-dim: #555550;
  --fg-mute: #999;
  --line: #e6e8ec;
  --line-soft: #f0f1f4;
  --primary: #3d8dcc;
  --primary-deep: #2870ad;
  --primary-soft: #eaf3fb;
  --primary-pale: #f5fafd;
  --accent: #febe69;
  --accent-deep: #ec9c3a;
  --accent-soft: #fff5e6;
  
  /* Typography */
  --display: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --en: 'Outfit', sans-serif;
  --sans: 'Noto Sans JP', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
  font-size: 15px;
}

::selection { background: var(--primary); color: #fff; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.005em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 36px;
  height: 28px;
  flex-shrink: 0;
  color: var(--primary);
}

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

.nav-links {
  display: flex;
  gap: 2px;
  margin-right: 12px;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg);
  padding: 8px 14px;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px; right: 14px;
  height: 2px;
  background: var(--primary);
}

.header-cta {
  padding: 11px 20px 11px 22px;
  background: var(--fg);
  color: #fff !important;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
}
.header-cta:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* ========== SECTION COMMON ========== */
section { padding: 120px 36px; }

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

.section-head {
  text-align: center;
  margin-bottom: 72px;
}

.section-head.left {
  text-align: left;
}

.section-en {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--en);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.18em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.section-en::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--primary);
}

.section-head.center .section-en::after {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--primary);
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--fg);
}

.section-title .accent { color: var(--primary); }
.section-title .underline {
  position: relative;
  display: inline-block;
}
.section-title .underline::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px;
  bottom: 5%;
  height: 26%;
  background: rgba(254, 190, 105, 0.55);
  z-index: -1;
}

.section-sub {
  font-size: 15px;
  color: var(--fg-dim);
  margin-top: 20px;
  line-height: 2.1;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-head.left .section-sub { margin-left: 0; margin-right: 0; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s;
  font-family: var(--display);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(61, 141, 204, 0.4);
}
.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(61, 141, 204, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--fg);
}
.btn-outline:hover { background: var(--fg); color: #fff; }

.btn-dark {
  background: var(--fg);
  color: #fff;
}
.btn-dark:hover { background: var(--primary); transform: translateY(-2px); }

.btn .arr {
  transition: transform 0.25s;
  display: inline-block;
  font-family: var(--en);
}
.btn:hover .arr { transform: translateX(4px); }

/* ========== PAGE HEAD (lower pages) ========== */
.page-head {
  background: var(--bg-alt);
  padding: 130px 36px 64px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle, rgba(61, 141, 204, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.breadcrumb {
  max-width: 1320px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--fg-dim);
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.breadcrumb a { color: var(--fg-dim); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span.sep { color: var(--fg-mute); }
.breadcrumb span.current { color: var(--fg); font-weight: 700; }

.page-head-inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-head-en {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--en);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.page-head-en::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--primary);
}

.page-head-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin-bottom: 16px;
}

.page-head-desc {
  font-size: 15.5px;
  color: var(--fg-dim);
  line-height: 2.1;
  max-width: 720px;
}

/* ========== CTA ========== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(254, 190, 105, 0.25), transparent 50%),
    radial-gradient(circle at 15% 70%, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.cta-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.cta-en {
  display: inline-block;
  font-family: var(--en);
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.22em;
  margin-bottom: 20px;
  padding: 5px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  text-transform: uppercase;
}

.cta-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  margin-bottom: 24px;
}

.cta-sub {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 2.1;
  margin-bottom: 44px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s;
  font-family: var(--display);
}

.cta-btn.primary {
  background: #fff;
  color: var(--primary-deep);
}
.cta-btn.primary:hover {
  background: var(--fg);
  color: #fff;
  transform: translateY(-2px);
}

.cta-btn.secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}
.cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 72px 36px 28px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-name .logo-mark { width: 36px; height: 28px; color: var(--primary); }

.footer-brand-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.95;
  max-width: 360px;
}

.footer-col h4 {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.footer-col h4 .en {
  font-family: var(--en);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255, 255, 255, 0.5); }
.footer-legal a:hover { color: #fff; }

/* ========== RESPONSIVE COMMON ========== */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 14px 20px; }
  section { padding: 72px 20px; }
  .page-head { padding: 100px 20px 48px; }
  .section-head { margin-bottom: 48px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 0 0 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; padding-top: 24px; }
}
