/* =====================================================================
   FUJI EXCHANGE — Common Stylesheet
   Brand: DARK_NAVY (#0F1535) / NAVY (#1E2761) / RED (#D62828)
   Fonts: Calibri (EN), Meiryo UI (JA)
   --------------------------------------------------------------------- */

/* ---------- Web font: Carlito (Calibri-compatible OSS) for non-Windows ---------- */
@font-face {
  font-family: 'Carlito';
  src: url('https://fonts.googleapis.com/css2?family=Carlito:ital,wght@0,400;0,700;1,400;1,700&display=swap');
  font-display: swap;
}

/* ---------- Brand tokens ---------- */
:root {
  /* Brand colors */
  --bg:           #0F1535;   /* DARK_NAVY — background / base */
  --bg-2:         #14193D;   /* one step lighter for sections */
  --bg-3:         #1E2761;   /* NAVY — accent / cards */
  --bg-4:         #2A3478;   /* highlighted accent */
  --accent:       #1E2761;   /* NAVY (accent) */
  --accent-2:     #3C4894;   /* lighter navy */
  --red:          #D62828;   /* RED — emphasis / critical */
  --red-dim:      #9C1F1F;
  --text:         #FFFFFF;
  --text-2:       #C8CCDD;
  --text-3:       #8A8FA8;
  --border:       rgba(255, 255, 255, 0.10);
  --border-2:     rgba(255, 255, 255, 0.20);
  --border-3:     rgba(255, 255, 255, 0.35);

  /* Typography */
  --font-en:      'Calibri', 'Carlito', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-ja:      'Meiryo UI', 'Meiryo', 'メイリオ', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Noto Sans JP', sans-serif;
  --font-mono:    'Consolas', 'SF Mono', 'Monaco', 'JetBrains Mono', monospace;

  /* Spacing */
  --container:    1200px;
  --container-tight: 960px;
  --radius:       4px;
  --radius-lg:    8px;

  /* Motion */
  --t-fast:       150ms;
  --t-normal:     250ms;
  --t-slow:       400ms;
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.lang-ja {
  font-family: var(--font-ja);
  letter-spacing: 0.02em;
}
a { color: inherit; text-decoration: none; transition: opacity var(--t-fast) var(--ease); }
a:hover { opacity: 0.75; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- i18n: show/hide by language ---------- */
.lang-en .ja-only,
.lang-ja .en-only { display: none !important; }
body:not(.lang-ja):not(.lang-en) .ja-only { display: none !important; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-tight {
  max-width: var(--container-tight);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Top Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 21, 53, 0.85);
  backdrop-filter: saturate(120%) blur(12px);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand .monogram { width: 36px; height: 36px; flex-shrink: 0; }
.brand .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand .wordmark .name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
}
.brand .wordmark .sub {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-2);
  margin-top: 3px;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 400;
}
.site-nav-links a { color: var(--text-2); }
.site-nav-links a.active { color: var(--text); border-bottom: 1px solid var(--red); padding-bottom: 2px; }
.site-nav-links a.cta {
  padding: 8px 18px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
}
.site-nav-links a.cta:hover { background: var(--red-dim); opacity: 1; }

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  transition: all var(--t-fast) var(--ease);
}
.lang-toggle:hover { color: var(--text); border-color: var(--border-3); }

@media (max-width: 760px) {
  .site-nav-links a:not(.cta):not(.lang-toggle) { display: none; }
  .site-nav-inner { padding: 12px 20px; gap: 12px; }
}

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
  position: relative;
}
.section-alt { background: var(--bg-2); }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.section-title em { font-style: normal; color: var(--red); }
.section-lead {
  font-size: 18px;
  color: var(--text-2);
  max-width: 720px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: all var(--t-fast) var(--ease);
}
.btn:hover { background: var(--red-dim); border-color: var(--red-dim); opacity: 1; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: var(--border-3); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.card:hover { border-color: var(--border-2); }
.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.card-body {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- Recognition badge (SkyDeck etc.) ---------- */
.recognition-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 32px 0;
}
.recognition-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}
.recognition-badge img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
}
.recognition-badge .text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.4;
}
.recognition-badge .text strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

/* ---------- News list ---------- */
.news-section { background: var(--bg-2); padding: 80px 0; }
.news-list { display: grid; gap: 20px; }
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--ease);
}
.news-item:hover { border-color: var(--border-2); border-left-color: var(--red); }
.news-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.news-cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.news-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.news-summary { font-size: 14px; color: var(--text-2); }
.news-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
}
.news-link::after { content: ' →'; }
.news-empty {
  text-align: center;
  color: var(--text-3);
  padding: 60px 24px;
  font-style: italic;
}

@media (max-width: 760px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .news-link { align-self: end; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  color: var(--text-3);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: var(--text-2);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { color: var(--text-3); }
.footer-grid ul li a:hover { color: var(--text); opacity: 1; }
.footer-brand-desc {
  margin-top: 16px;
  max-width: 360px;
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-locations {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ---------- Utility ---------- */
.text-mono { font-family: var(--font-mono); }
.text-red { color: var(--red); }
.text-dim { color: var(--text-2); }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.spacer-sm { height: 16px; }
.spacer { height: 32px; }
.spacer-lg { height: 64px; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: fadeUp var(--t-slow) var(--ease) both;
}
.reveal-delay-1 { animation-delay: 60ms; }
.reveal-delay-2 { animation-delay: 120ms; }
.reveal-delay-3 { animation-delay: 180ms; }
.reveal-delay-4 { animation-delay: 240ms; }

/* ---------- Print ---------- */
@media print {
  .site-nav, .site-footer, .lang-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
