/* ==========================================================================
   SYY株式会社 共通スタイル（ヘッダー・フッター・共通トークン）
   モバイルファースト：基本＝スマホ、@media (min-width) でPCを上書き
   ========================================================================== */

:root {
  /* 現HPのコンテンツ配色トークン */
  --primary: #070d1a;
  --primary-mid: #0c1629;
  --primary-light: #111d35;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-bright: #93c5fd;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --gradient-main: linear-gradient(145deg, #070d1a 0%, #0f1f3d 50%, #0c1629 100%);
  --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --text-white: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #1e293b;
  --text-dark-sub: #475569;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: #e2e8f0;
  --font-jp: 'Noto Sans JP', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
  --font-en: 'DM Sans', sans-serif;

  /* 旧テーマ（Lightning）由来のヘッダー・フッター配色 */
  --site-primary: #3486e9;
  --site-text: #333333;
  --site-border: rgba(0, 0, 0, 0.2);
  --site-border-hr: rgba(0, 0, 0, 0.06);
  --site-container: 1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  color: var(--site-text);
  background-color: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--site-primary); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }

/* ---------- ユーティリティ ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--site-text);
  padding: 8px 12px; z-index: 3000;
}
.skip-link:focus { left: 0; }
.container {
  width: 100%;
  max-width: var(--site-container);
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.site-header-inner {
  width: 100%;
  max-width: var(--site-container);
  margin: 0 auto;
  padding: 0 15px;
  display: block;
  overflow: hidden;
}
.site-logo {
  margin: 8px 0;
  text-align: center;
  font-weight: 700;
  font-size: 24px;
  white-space: nowrap;
}
.site-logo a { display: block; text-decoration: none; }
.site-logo img {
  width: auto;
  max-height: 50px;
  margin: 0 auto;
}
.global-nav { display: none; }

/* ---------- スマホ用メニューボタン ---------- */
.menu-btn {
  position: fixed;
  top: 5px; left: 5px;
  z-index: 2100;
  width: 34px; height: 34px;
  padding: 0;
  border: 1px solid #333;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: border-color 0.5s ease-out;
}
.menu-btn-bars {
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  margin: -1px 0 0 -10px;
  background: #333;
  transition: background 0.2s;
}
.menu-btn-bars::before,
.menu-btn-bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: #333;
  transition: transform 0.3s;
}
.menu-btn-bars::before { top: -7px; }
.menu-btn-bars::after { top: 7px; }
.menu-btn.is-open .menu-btn-bars { background: transparent; }
.menu-btn.is-open .menu-btn-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open .menu-btn-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- スマホ用ナビ（上から降りてくる） ---------- */
.mobile-nav {
  position: fixed;
  top: -2000px; left: 0;
  z-index: 2000;
  width: 100%; height: 100%;
  padding: 45px 10px;
  overflow: auto;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  transition: top 0.5s ease-out;
}
.mobile-nav.is-open { top: 0; }
.mobile-nav ul { border-top: 1px solid #ccc; }
.mobile-nav li { line-height: 1.65; font-size: 14px; }
.mobile-nav li a {
  display: block;
  padding: 0.7em 0.5em;
  color: var(--site-text);
  text-decoration: none;
  border-bottom: 1px solid #ccc;
}
.mobile-nav li a:hover { text-decoration: none; }
body.is-menu-open { overflow: hidden; }

/* ---------- メイン領域（旧テーマの上下余白を再現） ---------- */
.site-main {
  padding: 28px 0 56px;
}

/* ---------- フッター ---------- */
.site-footer {
  display: block;
  overflow: hidden;
  font-size: 12px;
}
.footer-nav {
  padding: 0;
  line-height: 1;
}
.footer-nav-list { margin: 0; padding: 0; }
.footer-nav-list li {
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--site-border-hr);
}
.footer-nav-list li a {
  display: block;
  padding: 1em 0;
  color: var(--site-text);
  text-decoration: none;
}
.footer-nav-list li:last-child a { border-bottom: none; }
.site-footer-copyright {
  max-width: 100%;
  padding: 14px;
  background: var(--site-primary);
  color: #fff;
  font-weight: 700;
}
.site-footer-copyright p {
  margin: 0.5rem;
  text-align: center;
  font-size: 12px;
}

/* ---------- 上にスクロール ボタン ---------- */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 9999;
  width: 42px; height: 42px;
  padding: 0;
  border: 0;
  border-radius: 5%;
  background: #000;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.to-top.is-visible { opacity: 0.5; visibility: visible; }
.to-top:hover { opacity: 0.8; }
.to-top::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 12px;
  margin: -3px 0 0 -6px;
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  transform: rotate(45deg);
}

/* ==========================================================================
   タブレット以上（768px〜）
   ========================================================================== */
@media (min-width: 768px) {
  .footer-nav {
    padding: 1em 0;
    border-bottom: 1px solid var(--site-border-hr);
  }
  .footer-nav-list { border-left: 1px solid var(--site-border); }
  .footer-nav-list li {
    display: inline-block;
    padding: 0 1.5em;
    border-bottom: none;
    border-right: 1px solid var(--site-border);
  }
  .footer-nav-list li a { display: inline; padding: 0; }
  .site-footer-copyright { padding: 16px; }
}

/* ==========================================================================
   PC（992px〜）：グローバルナビ表示、メニューボタン非表示
   ========================================================================== */
@media (min-width: 992px) {
  .site-header-inner {
    display: flex;
    flex-direction: row;
    overflow: visible;
  }
  .site-logo {
    width: 100%;
    margin: 1.1rem 2em 1rem 0;
    text-align: left;
  }
  .site-logo img { max-height: 60px; margin-left: 0; }
  .global-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: min-content;
  }
  .global-nav-list {
    display: flex;
    margin: 0 auto;
    padding: 0;
    position: relative;
  }
  .global-nav-list li {
    position: relative;
    margin: 0;
    line-height: 1.4;
    font-size: 12px;
    text-align: center;
  }
  .global-nav-list li a {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 14px 1.5em;
    color: var(--site-text);
    text-decoration: none;
  }
  .global-nav-list li a span {
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }
  .global-nav-list li::before {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0;
    border-bottom: 1px solid var(--site-primary);
    transition: all 0.5s ease-out;
  }
  .global-nav-list li:hover::before,
  .global-nav-list li.is-current::before { width: 100%; }

  .menu-btn, .mobile-nav { display: none; }

  .site-main { padding: 56px 0 112px; }
}
