/* ============================================================
   UNIARK Solutions Portal — 共通スタイル
   common.css  (concept-b.html / CellScan/index.html 共用)
   ============================================================ */

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

/* ── Design Tokens ── */
:root {
  /* ブランドカラー */
  --navy:       #061828;
  --navy2:      #0a2540;
  --blue:       #0057b8;
  --sky:        #0099dd;
  --cyan:       #00cfff;
  --green:      #00c896;
  --yellow:     #ffd060;
  --red:        #ff4444;

  /* サーフェス */
  --bg:         #f4f7fa;
  --white:      #ffffff;
  --border:     #dde4ed;
  --text:       #1a2332;
  --muted:      #5a6a7e;
  --light:      #eaf2ff;

  /* シャドウ */
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow:     0 4px 24px rgba(0,0,0,.10);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.15);

  /* その他 */
  --radius:     12px;
  --tr:         .25s cubic-bezier(.4,0,.2,1);
  --transition: .25s cubic-bezier(.4,0,.2,1); /* --tr の別名 */

  /* concept-b 後方互換エイリアス */
  --c-navy:    var(--navy);
  --c-blue:    var(--blue);
  --c-sky:     var(--sky);
  --c-cyan:    var(--cyan);
  --c-bg:      var(--bg);
  --c-surface: var(--white);
  --c-border:  var(--border);
  --c-text:    var(--text);
  --c-muted:   var(--muted);
  --c-light:   var(--light);
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ── Layout Utilities ── */
/* .wrap と .container は同義（両ページで使い分け）*/
.wrap,
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.sr-only    { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(6,24,40,.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

/* ロゴ */
.logo         { display: flex; align-items: center; gap: 12px; text-decoration: none; }

/* 画像ロゴ（ヘッダー・フッター共通） */
.logo-img {
  height: 36px;
  width: auto;
  display: block;
  /* グロー（発光）効果 — サイトカラーに合わせたシアン系の光彩 */
  filter:
    drop-shadow(0 0  6px rgba(0, 200, 255, 0.55))
    drop-shadow(0 0 14px rgba(0, 160, 230, 0.35));
  transition: filter .3s ease, opacity .2s;
}
/* ホバー時はさらに強調 */
.logo:hover .logo-img {
  filter:
    drop-shadow(0 0  8px rgba(0, 220, 255, 0.80))
    drop-shadow(0 0 22px rgba(0, 180, 255, 0.50));
}

/* フッター内は控えめなグローに */
.site-footer .logo-img {
  height: 28px;
  filter:
    drop-shadow(0 0 5px rgba(0, 180, 230, 0.40))
    drop-shadow(0 0 10px rgba(0, 140, 200, 0.20));
}

/* .logo-sep / .logo-product（CellScan ページのサブタイトル） */
.logo-sep     { width: 1px; height: 22px; background: rgba(255,255,255,.25); margin: 0 4px; }
.logo-product { font-size: 14px; font-weight: 700; color: var(--cyan); letter-spacing: .05em; }

/* ナビゲーション */
.site-nav     { display: flex; align-items: center; gap: 6px; }
.site-nav a   { padding: 6px 14px; border-radius: 6px; font-size: 14px; color: #b8c8dd; transition: var(--tr); }
.site-nav a:hover  { background: rgba(255,255,255,.08); color: #fff; }
.site-nav a.active { color: var(--cyan); }

/* ヘッダーCTA */
.header-cta   { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: var(--tr); border: none;
  padding: 9px 22px; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  color: var(--navy);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(0,153,221,.4); }

.btn-ghost,
.btn-outline {
  background: transparent; color: #b8c8dd;
  border: 1.5px solid rgba(255,255,255,.2);
}
.btn-ghost:hover,
.btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }

.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: #f0f8ff; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(0,0,0,.15); }

.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 10px; }

/* ════════════════════════════════════════
   HAMBURGER & MOBILE MENU
════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px; transition: var(--tr);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ドロワー（クラス名を mobile-menu に統一） */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy2);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 16px 24px 24px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a    { padding: 10px 12px; border-radius: 8px; color: #b8c8dd; font-size: 15px; }
.mobile-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.mobile-menu .mobile-cta { margin-top: 12px; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
  background: #030d1c;
  color: #3a5570;
  padding: 48px 0 20px;
}

/* 4カラムグリッド型（ポータルトップ） */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 24px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 12px; color: #4a6480; }
.footer-col h4  { font-size: 14px; font-weight: 700; color: #8faac5; margin-bottom: 14px; letter-spacing: .06em; }
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 14px; color: #4a6480; transition: var(--tr); }
.footer-col ul a:hover { color: #8faac5; }

/* シンプル2行型（CellScan） */
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px; margin-bottom: 24px;
}
.footer-links       { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a     { font-size: 14px; color: #3a5570; transition: var(--tr); }
.footer-links a:hover { color: #7ab; }

/* 共通ボトムバー */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; gap: 16px; flex-wrap: wrap;
}

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CellScan 用 */
.anim           { opacity: 0; }
.anim.visible   { animation: fadeUp .55s ease both; }

/* concept-b 用 */
.fade-up        { animation: fadeUp .5s ease both; }
.fade-up:nth-child(2) { animation-delay: .08s; }
.fade-up:nth-child(3) { animation-delay: .16s; }
.fade-up:nth-child(4) { animation-delay: .24s; }

/* ════════════════════════════════════════
   RESPONSIVE — ヘッダー・フッター共通
════════════════════════════════════════ */
@media (max-width: 768px) {
  .site-nav,
  .header-cta   { display: none; }
  .hamburger    { display: flex; }
  .wrap,
  .container    { padding: 0 16px; }
  .section      { padding: 64px 0; }

  /* フッター */
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
}

@media (max-width: 480px) {
  .footer-grid  { grid-template-columns: 1fr; gap: 24px; }
}

/* ════════════════════════════════════════
   PC / TABLET FONT SCALE — 共通要素 (769px~)
════════════════════════════════════════ */
@media (min-width: 769px) {
  .site-nav a    { font-size: 15px; }
  .btn           { font-size: 15px; }
  .btn-lg        { font-size: 16px; padding: 15px 36px; }
  .footer-col ul a  { font-size: 14px; }
  .footer-links a   { font-size: 14px; }
  .footer-bottom    { font-size: 13px; }
}
