/* ============================================
   デジタルフュージョン株式会社 — 共通スタイル
   Fusion Design System v2
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

/* ── Fusion 4-Color Palette ──────────────────
   4つの技術領域がFusionして新しい価値を生む
   ─────────────────────────────────────────── */
:root {
  --color-primary:    #0d1f3c;
  --color-secondary:  #0e4c8a;

  /* 4 Fusion colors — each represents an IT domain */
  --fusion-blue:      #0ea5e9;   /* クラウド・システム */
  --fusion-purple:    #8b5cf6;   /* AI・データ */
  --fusion-emerald:   #10b981;   /* インフラ・セキュリティ */
  --fusion-amber:     #f59e0b;   /* コンサルティング */

  /* Semantic aliases */
  --color-accent:     var(--fusion-blue);
  --color-accent2:    var(--fusion-emerald);

  --color-white:      #ffffff;
  --color-light:      #f0f6ff;
  --color-gray:       #64748b;
  --color-darkgray:   #334155;
  --color-text:       #1e293b;
  --color-border:     #cbd5e1;

  --font-main: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.1);
  --shadow-md:  0 4px 20px rgba(13,31,60,.14);
  --shadow-lg:  0 10px 40px rgba(13,31,60,.22);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --transition: all 0.3s ease;
  --max-width: 1100px;

  /* Fusion gradient — all 4 colors */
  --fusion-gradient: linear-gradient(90deg,
    var(--fusion-blue) 0%,
    var(--fusion-purple) 33%,
    var(--fusion-emerald) 66%,
    var(--fusion-amber) 100%);
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.85;
  font-size: 17px;   /* ↑ 15→17px */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── HEADER ───────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,31,60,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.2);
  transition: var(--transition);
}
/* Rainbow fusion strip at top of header */
#header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--fusion-gradient);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo a { display: flex; align-items: center; gap: 10px; line-height: 1; }
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo-company {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
}
.nav-list { display: flex; gap: 4px; align-items: center; }
.nav-list li a {
  display: block;
  padding: 9px 16px;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.03em;
}
.nav-list li a:hover,
.nav-list li a.active { color: var(--fusion-blue); background: rgba(14,165,233,0.1); }
.nav-list li.nav-contact a {
  background: var(--fusion-blue);
  color: var(--color-white);
  border-radius: 22px;
  padding: 9px 20px;
}
.nav-list li.nav-contact a:hover { background: #0284c7; color: var(--color-white); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--color-white); border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0;
  background: var(--color-primary);
  padding: 16px 24px 28px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav ul li a {
  display: block; padding: 14px 18px;
  color: rgba(255,255,255,0.82); font-size: 16px;
  border-radius: var(--radius-sm); transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav ul li a:hover { color: var(--fusion-blue); background: rgba(14,165,233,0.1); }

/* ── PAGE HERO (subpages) ─────────────────── */
.page-hero {
  padding: 124px 24px 64px;
  background: linear-gradient(140deg, var(--color-primary) 0%, #1a3a6e 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Fusion color bars behind page hero */
.page-hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--fusion-gradient);
}
/* Subtle dot grid */
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(14,165,233,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  color: var(--color-white);
  position: relative;
  z-index: 1;
  letter-spacing: 0.06em;
}
.page-hero .subtitle {
  margin-top: 10px;
  font-size: 14px;
  color: var(--fusion-blue);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 18px; font-size: 13px;
  color: rgba(255,255,255,0.45);
  position: relative; z-index: 1;
}
.breadcrumb a { color: rgba(255,255,255,0.45); }
.breadcrumb a:hover { color: var(--fusion-blue); }

/* ── SECTIONS ─────────────────────────────── */
.section { padding: 96px 24px; }
.section-light { background: var(--color-light); }
.section-dark  { background: var(--color-primary); color: var(--color-white); }
.container { max-width: var(--max-width); margin: 0 auto; }

.section-head { text-align: center; margin-bottom: 64px; }
.section-head .label {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fusion-blue); margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.section-dark .section-head h2 { color: var(--color-white); }
.section-head .lead {
  margin-top: 18px;
  font-size: 17px;
  color: var(--color-gray);
  max-width: 620px;
  margin-left: auto; margin-right: auto;
  line-height: 2;
}
.section-dark .section-head .lead { color: rgba(255,255,255,0.65); }

/* Fusion 4-color divider */
.divider {
  width: 56px; height: 4px;
  background: var(--fusion-gradient);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ── FUSION BADGE (domain chip) ───────────── */
.fusion-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.fusion-badge--blue   { background: rgba(14,165,233,0.12); color: var(--fusion-blue); }
.fusion-badge--purple { background: rgba(139,92,246,0.12); color: var(--fusion-purple); }
.fusion-badge--green  { background: rgba(16,185,129,0.12); color: var(--fusion-emerald); }
.fusion-badge--amber  { background: rgba(245,158,11,0.12); color: var(--fusion-amber); }

/* ── CARDS ────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(14,165,233,0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
/* Fusion gradient top border on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--fusion-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover { border-color: rgba(14,165,233,0.35); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--fusion-blue), #0284c7);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; font-size: 26px;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 14px; color: var(--color-primary); }
.card p  { font-size: 15px; color: var(--color-gray); line-height: 1.9; }

/* ── BUTTONS ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 36px;
  border-radius: 32px;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.06em;
  transition: var(--transition);
  cursor: pointer; border: 2px solid transparent;
  font-family: var(--font-main);
}
.btn-primary { background: var(--fusion-blue); color: var(--color-white); }
.btn-primary:hover { background: #0284c7; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(14,165,233,0.45); }
.btn-outline { background: transparent !important; color: var(--fusion-blue) !important; border-color: var(--fusion-blue) !important; }
.btn-outline:hover { background: var(--fusion-blue) !important; color: var(--color-white) !important; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(14,165,233,0.45); }
.btn-white { background: var(--color-white); color: var(--color-primary); }
.btn-white:hover { background: var(--color-light); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

/* ── TABLE ────────────────────────────────── */
.info-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.info-table tr { border-bottom: 1px solid var(--color-border); }
.info-table tr:last-child { border-bottom: none; }
.info-table th {
  width: 180px; padding: 22px 24px;
  background: var(--color-light);
  font-weight: 700; color: var(--color-primary);
  text-align: left; vertical-align: top; white-space: nowrap;
}
.info-table td {
  padding: 22px 24px;
  color: var(--color-darkgray);
  line-height: 1.9;
}

/* ── FOOTER ───────────────────────────────── */
#footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 72px 24px 0;
  position: relative;
}
#footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--fusion-gradient);
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-text { display: flex; flex-direction: column; gap: 2px; }
.footer-brand .logo-en {
  font-size: 24px; font-weight: 900;
  background: var(--fusion-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}
.footer-brand .logo-ja { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 4px; letter-spacing: 0.1em; }
.footer-brand p { margin-top: 18px; font-size: 14px; line-height: 1.9; color: rgba(255,255,255,0.5); }
.footer-address { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,0.4); line-height: 2; }
.footer-nav h4, .footer-contact h4 {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fusion-blue); margin-bottom: 18px;
}
.footer-contact p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.9; }
.footer-tel { font-size: 26px; font-weight: 700; color: var(--color-white); letter-spacing: 0.05em; margin: 10px 0; }
.footer-nav-list { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.footer-nav-list li a { font-size: 14px; color: rgba(255,255,255,0.6); transition: var(--transition); text-decoration: none; }
.footer-nav-list li a:hover { color: var(--fusion-blue); }
.footer-sns { display: flex; gap: 10px; margin-top: 18px; }
.footer-sns-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 700; text-decoration: none; transition: var(--transition); border: 1px solid rgba(255,255,255,0.12); }
.footer-sns-btn:hover { background: var(--fusion-blue); color: white; border-color: var(--fusion-blue); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(14,165,233,0.45); }
.footer-bottom {
  padding: 22px 0;
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.28);
}
.footer-bottom-links {
  display: flex; justify-content: center; gap: 28px; margin-bottom: 12px;
}
.footer-bottom-links a { color: rgba(255,255,255,0.38); font-size: 12px; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--fusion-blue); }

/* ── SCROLL TOP ───────────────────────────── */
.scroll-top {
  position: fixed; bottom: 36px; right: 36px;
  width: 48px; height: 48px;
  background: var(--fusion-blue); color: var(--color-white);
  border: none; border-radius: 50%; font-size: 20px;
  cursor: pointer; box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: #0284c7; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(14,165,233,0.45); }

/* ── UTILITY ──────────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }  .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-8  { margin-bottom: 8px; }  .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 900px) {
  .nav-list   { display: none; }
  .hamburger  { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .section { padding: 72px 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .info-table th { width: 120px; padding: 16px; font-size: 14px; }
  .info-table td { padding: 16px; font-size: 14px; }
  .footer-bottom-links { flex-direction: column; gap: 10px; }
}

/* ── タグ 色分け（タグのスラッグで自動適用） ─────── */
/* タグなしのデフォルト */
.topics-tag, .news-tag, .topics-detail-tag { background: rgba(14,165,233,0.1); color: var(--fusion-blue); }
/* お知らせ / info */
.topics-tag--info     { background: rgba(14,165,233,0.12);  color: #0ea5e9; }
/* プレスリリース / press */
.topics-tag--press    { background: rgba(139,92,246,0.12);  color: #8b5cf6; }
/* イベント / event */
.topics-tag--event    { background: rgba(16,185,129,0.12);  color: #10b981; }
/* 採用 / recruit */
.topics-tag--recruit  { background: rgba(245,158,11,0.12);  color: #f59e0b; }
/* メンテナンス / maintenance */
.topics-tag--maintenance { background: rgba(239,68,68,0.12); color: #ef4444; }
/* その他 / other */
.topics-tag--other    { background: rgba(107,114,128,0.12); color: #6b7280; }
