/* ============================================================
   DEALCA Corporate Site — Common Design System
   Brand: #0F172A (Primary) / #2563EB (Blue) / #38BDF8 (Accent)
   ============================================================ */

:root {
  --primary:      #0F172A;
  --primary-80:   #1E293B;
  --brand-blue:   #2563EB;
  --brand-blue-h: #1D4ED8;
  --accent:       #38BDF8;
  --accent-light: #E0F2FE;
  --white:        #FFFFFF;
  --gray-50:      #F8FAFC;
  --gray-100:     #F1F5F9;
  --gray-200:     #E2E8F0;
  --gray-400:     #94A3B8;
  --gray-500:     #64748B;
  --gray-600:     #475569;
  --text:         #1E293B;
  --radius:       10px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(15,23,42,0.08);
  --shadow-lg:    0 8px 48px rgba(15,23,42,0.14);
  --tr:           0.3s cubic-bezier(0.4,0,0.2,1);
  --font:         'Noto Sans JP', sans-serif;
  --font-en:      'Montserrat', 'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }
.section { padding: 96px 0; }
.section--dark { background: var(--primary); }
.section--gray { background: var(--gray-50); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; transition: var(--tr); white-space: nowrap;
}
.btn--primary { background: var(--brand-blue); color: var(--white); }
.btn--primary:hover { background: var(--brand-blue-h); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.35); }
.btn--outline { background: transparent; color: var(--brand-blue); border: 2px solid var(--brand-blue); }
.btn--outline:hover { background: var(--brand-blue); color: var(--white); }
.btn--ghost { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.2); }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--sm { padding: 9px 20px; font-size: 0.875rem; }
.btn svg { flex-shrink: 0; }

/* ── Section Header ── */
.sec-header { text-align: center; margin-bottom: 64px; }
.sec-label {
  display: inline-block; font-family: var(--font-en); font-size: 0.72rem;
  font-weight: 700; letter-spacing: .18em; color: var(--brand-blue);
  background: var(--accent-light); padding: 4px 14px; border-radius: 100px; margin-bottom: 16px;
}
.sec-label--light { color: var(--accent); background: rgba(56,189,248,.15); }
.sec-title { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 900; line-height: 1.3; letter-spacing: -.02em; }
.sec-title--light { color: var(--white); }
.sec-desc { margin-top: 14px; color: var(--gray-600); font-size: 1rem; }
.sec-desc--light { color: rgba(255,255,255,.7); }

/* ── Animations ── */
.fade-up { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d,0s); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 16px; transition: var(--tr);
}
.site-header.scrolled {
  background: rgba(15,23,42,.96); backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.site-header__inner {
  max-width: 1120px; margin: 0 auto; height: 72px;
  display: flex; align-items: center; gap: 8px;
}
.site-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.site-logo__mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-weight: 700; font-size: 1.1rem; color: var(--white);
}
.site-logo__text { font-family: var(--font-en); font-weight: 700; font-size: 1.1rem; color: var(--white); letter-spacing: .05em; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav__link {
  color: rgba(255,255,255,.8); font-size: .875rem; padding: 6px 14px;
  border-radius: 6px; transition: var(--tr);
}
.site-nav__link:hover, .site-nav__link.active { color: var(--white); background: rgba(255,255,255,.1); }
.site-header__cta { margin-left: 8px; padding: 9px 20px; font-size: .875rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--tr); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--primary-80); padding: 12px 16px 20px;
  flex-direction: column; z-index: 99; border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-nav.open { display: flex; }
.mobile-nav__link { color: rgba(255,255,255,.8); padding: 14px 16px; border-radius: 8px; transition: var(--tr); }
.mobile-nav__link:hover { background: rgba(255,255,255,.08); color: var(--white); }
.mobile-nav__cta { margin-top: 8px; background: var(--brand-blue); color: var(--white) !important; text-align: center; font-weight: 700; border-radius: 8px; }

/* ============================================================
   PAGE HERO (inner pages — shorter than LP)
   ============================================================ */
.page-hero {
  background: var(--primary); padding: 140px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 70% 40%, rgba(37,99,235,.2) 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 10% 80%, rgba(56,189,248,.1) 0%, transparent 50%);
}
.page-hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__label {
  display: inline-block; font-family: var(--font-en); font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; color: var(--accent); background: rgba(56,189,248,.12);
  border: 1px solid rgba(56,189,248,.25); padding: 5px 16px; border-radius: 100px; margin-bottom: 20px;
}
.page-hero__title { font-size: clamp(2rem,5vw,3.25rem); font-weight: 900; color: var(--white); line-height: 1.2; letter-spacing: -.03em; }
.page-hero__sub { margin-top: 16px; font-size: 1.05rem; color: rgba(255,255,255,.7); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--primary-80); padding: 64px 0 32px; border-top: 1px solid rgba(255,255,255,.06); }
.site-footer__inner { display: flex; gap: 64px; margin-bottom: 48px; }
.site-footer__brand { flex: 0 0 260px; }
.site-footer__tagline { font-family: var(--font-en); font-size: .72rem; font-weight: 700; letter-spacing: .15em; color: var(--accent); margin: 10px 0 14px; }
.site-footer__desc { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.8; }
.site-footer__cols { flex: 1; display: flex; gap: 48px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col-title { font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.85); letter-spacing: .08em; margin-bottom: 4px; }
.site-footer__col a { font-size: .85rem; color: rgba(255,255,255,.5); transition: color var(--tr); }
.site-footer__col a:hover { color: var(--white); }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer__copy { font-family: var(--font-en); font-size: .78rem; color: rgba(255,255,255,.35); }
.site-footer__policy { font-size: .78rem; color: rgba(255,255,255,.4); transition: color var(--tr); }
.site-footer__policy:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .site-footer__inner { flex-direction: column; gap: 36px; }
  .site-footer__brand { flex: auto; }
  .site-footer__cols { flex-wrap: wrap; gap: 28px; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .site-nav, .site-header__cta { display: none; }
  .hamburger { display: flex; }
  .page-hero { padding: 120px 0 64px; }
  .sec-header { margin-bottom: 40px; }
  .site-footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
}
