/* ========================================
   BLUE KEY — style.css (multi-page v1)
   ======================================== */

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

:root {
  --blue-900: #0a1628;
  --blue-800: #0d2040;
  --blue-700: #0f3460;
  --blue-500: #1565c0;
  --blue-400: #1e88e5;
  --blue-300: #42a5f5;
  --blue-100: #e3f2fd;
  --accent:   #00b4d8;
  --white:    #ffffff;
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;

  --font: 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(10,22,40,0.10);
  --shadow-lg: 0 12px 40px rgba(10,22,40,0.18);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* =========================================
   ヘッダー / ナビゲーション
   ========================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200; padding: 14px 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; }

/* ロゴ */
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 34px; width: auto; object-fit: contain; }
.site-logo-text { font-size: 1.35rem; font-weight: 900; color: var(--white); letter-spacing: 0.06em; display: none; }
.site-logo-text span { color: var(--accent); }

/* グローバルナビ */
.global-nav { display: flex; align-items: center; gap: 28px; list-style: none; }

.global-nav > li { position: relative; }

.global-nav > li > a {
  color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 500;
  padding: 6px 2px; display: block;
  transition: color var(--transition);
  white-space: nowrap;
}

.global-nav > li > a:hover,
.global-nav > li.current > a { color: var(--white); }

.global-nav > li.current > a { border-bottom: 2px solid var(--accent); }

/* ドロップダウン */
.has-drop > a { display: flex; align-items: center; gap: 4px; }
.drop-arrow { font-size: 0.6em; transition: transform var(--transition); }
.has-drop:hover .drop-arrow { transform: rotate(180deg); }

.drop-menu {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: rgba(13,32,64,0.98); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  min-width: 200px; list-style: none; padding: 14px 0 8px;
  box-shadow: var(--shadow-lg); z-index: 300;
}

.has-drop:hover .drop-menu { display: block; }

.drop-menu li a {
  display: block; padding: 11px 20px;
  font-size: 0.86rem; color: rgba(255,255,255,0.8);
  transition: background var(--transition), color var(--transition);
}

.drop-menu li a:hover { background: rgba(255,255,255,0.07); color: var(--accent); }

/* CTAボタン */
.nav-cta {
  background: var(--accent); color: var(--white) !important;
  padding: 9px 20px !important; border-radius: 8px;
  font-weight: 700 !important; border: 2px solid var(--accent);
  transition: background var(--transition), border-color var(--transition) !important;
}
.nav-cta:hover { background: #00cff0 !important; border-color: #00cff0 !important; }

/* ハンバーガー */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* =========================================
   ボタン
   ========================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px; border-radius: 8px;
  font-size: 0.93rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  border: 2px solid transparent; white-space: nowrap; text-decoration: none;
}

.btn-primary { background: var(--blue-400); color: var(--white); border-color: var(--blue-400); }
.btn-primary:hover { background: var(--blue-300); border-color: var(--blue-300); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,136,229,0.4); }

.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: #00cff0; border-color: #00cff0; transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-2px); }

.btn-outline-dark { background: transparent; color: var(--gray-900); border-color: var(--gray-300); }
.btn-outline-dark:hover { background: var(--gray-900); color: var(--white); border-color: var(--gray-900); transform: translateY(-2px); }

.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-full { width: 100%; }

/* =========================================
   セクション共通
   ========================================= */
.section-label {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; color: var(--blue-400);
  text-transform: uppercase; margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800;
  color: var(--gray-900); line-height: 1.25; margin-bottom: 16px;
}

.section-sub {
  font-size: 0.97rem; color: var(--gray-500);
  max-width: 560px; line-height: 1.85;
}

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* =========================================
   ページヒーロー（各ページ共通）
   ========================================= */
.page-hero {
  position: relative; padding: 160px 0 100px;
  background: var(--blue-900); overflow: hidden;
}

.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(21,101,192,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(0,180,216,0.12) 0%, transparent 60%);
}

.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
}

.page-hero-content { position: relative; z-index: 1; max-width: 700px; }

.page-hero .section-label { color: var(--accent); }

.page-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900;
  color: var(--white); line-height: 1.2; margin-bottom: 20px;
}

.page-hero-title span { color: var(--accent); }

.page-hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.7);
  line-height: 1.85; margin-bottom: 36px; max-width: 580px;
}

/* =========================================
   フッター
   ========================================= */
.site-footer { background: var(--blue-900); border-top: 1px solid rgba(255,255,255,0.07); }

.footer-main {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 60px; padding: 56px 0 40px;
}

.footer-brand img { height: 30px; width: auto; margin-bottom: 12px; }
.footer-brand-text { font-size: 1.25rem; font-weight: 900; color: var(--white); display: none; }
.footer-brand-text span { color: var(--accent); }
.footer-tagline { font-size: 0.8rem; color: rgba(255,255,255,0.35); margin-top: 8px; line-height: 1.6; }

.footer-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.footer-nav-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; color: rgba(255,255,255,0.4); text-transform: uppercase; margin-bottom: 14px; }

.footer-nav-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-nav-col ul li a { font-size: 0.84rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-nav-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0; display: flex; align-items: center; justify-content: space-between;
}

.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.75rem; color: rgba(255,255,255,0.25); transition: color var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* =========================================
   フェードアップ
   ========================================= */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up[data-delay="1"] { transition-delay: 0.1s; }
.fade-up[data-delay="2"] { transition-delay: 0.2s; }
.fade-up[data-delay="3"] { transition-delay: 0.3s; }

/* =========================================
   コンタクトフォーム（共通）
   ========================================= */
.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label { font-size: 0.84rem; font-weight: 600; color: rgba(255,255,255,0.8); }

.required { color: var(--accent); }

.form-group input, .form-group textarea, .form-group select {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 13px 16px;
  font-size: 0.93rem; font-family: var(--font); color: var(--white);
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}

.form-group select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

.form-group select option { background: var(--blue-800); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.1); }

/* =========================================
   レスポンシブ
   ========================================= */
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .footer-nav-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .global-nav { display: none; }

  .global-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,22,40,0.98); padding: 20px 24px; gap: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }

  .global-nav.open > li > a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }

  .drop-menu {
    position: static; transform: none; border: none; box-shadow: none;
    background: transparent; padding: 4px 0 4px 16px; display: none;
  }

  .has-drop.open-mobile .drop-menu { display: block; }
  .has-drop.open-mobile .drop-arrow { transform: rotate(180deg); }

  .hamburger { display: flex; }

  .page-hero { padding: 130px 0 72px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-nav-grid { grid-template-columns: 1fr; gap: 24px; }

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
