/* ============================================================
   common.css — 共通スタイル（変数・ナビ・ハンバーガー・ボタン等）
============================================================ */

/* ── CSS Variables ── */
:root {
  /* Sky / Blue (メインカラー) */
  --sky:        #0ea5e9;
  --sky-dark:   #0284c7;
  --sky-lt:     #e0f2fe;
  /* Aliases（works / contact ページが使用） */
  --blue:       #0ea5e9;
  --blue-dark:  #0284c7;
  --blue-pale:  #e0f2fe;
  --blue-light: #38bdf8;

  /* アクセントカラー */
  --sun:        #f59e0b;
  --sun-lt:     #fef3c7;
  --accent:     #f59e0b;
  --green:      #10b981;
  --green-lt:   #d1fae5;
  --coral:      #f43f5e;
  --coral-lt:   #ffe4e6;
  --violet:     #8b5cf6;
  --violet-lt:  #ede9fe;
  --teal:       #14b8a6;
  --teal-lt:    #ccfbf1;
  --amber:      #d97706;
  --amber-lt:   #fef3c7;
  --rose:       #e11d48;
  --rose-lt:    #ffe4e6;

  /* フィードバックカラー */
  --success:    #10b981;
  --error:      #f43f5e;

  /* テキスト / インクカラー */
  --ink:        #0f172a;
  --ink-mid:    #334155;
  --muted:      #64748b;
  /* Aliases（works / contact ページが使用） */
  --navy:       #0f172a;
  --navy-mid:   #1e293b;
  --navy-light: #334155;
  --text:       #0f172a;
  --text-muted: #64748b;

  /* UI */
  --border:     #e2e8f0;
  --bg:         #f8fafc;
  --white:      #ffffff;

  /* 角丸 */
  --r:           14px;
  --r-sm:        8px;
  --card-radius: 12px;
  --radius:      10px;
  --radius-sm:   6px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ── Logo Mark（全ページ共通） ── */
.logo-mark {
  width: 32px; height: 32px;
  background: var(--sky);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; stroke: #fff; }

/* ════════════ NAV（fixed — index / film-types） ════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14,165,233,0.1);
  transition: box-shadow 0.3s;
}
.nav.raised { box-shadow: 0 4px 24px rgba(14,165,233,0.10); }

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 13px;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--sky-dark); }

.nav-cta {
  background: var(--sky);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s !important;
}
.nav-cta:hover { background: var(--sky-dark) !important; transform: translateY(-1px); }

/* ════════════ HEADER（sticky — works / contact） ════════════ */
header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14,165,233,0.1);
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  opacity: 0.75;
}
header nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-left: 28px;
  transition: color 0.15s;
}
header nav a:hover { color: var(--sky-dark); }
header nav a.active { color: var(--sky-dark); font-weight: 600; }

/* ════════════ HAMBURGER ════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.15s;
  z-index: 310;
}
.hamburger:hover { background: var(--sky-lt); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════ MOBILE MENU ════════════ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  z-index: 299;
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-menu.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu a {
  font-size: 15px;
  color: var(--ink-mid);
  text-decoration: none;
  padding: 12px 8px;
  border-bottom: 0.5px solid var(--border);
  transition: color 0.15s;
  font-family: 'Noto Sans JP', sans-serif;
}
.mobile-menu a:hover { color: var(--sky-dark); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta {
  margin-top: 12px;
  background: var(--sky);
  color: #fff !important;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  border-bottom: none;
}
.mobile-menu .mobile-cta:hover { background: var(--sky-dark); }

/* ════════════ COMMON BUTTONS ════════════ */
.btn-sky {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sky);
  color: #fff;
  padding: 14px 30px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(14,165,233,0.30);
}
.btn-sky:hover {
  background: var(--sky-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14,165,233,0.35);
}
.btn-sky svg { width: 18px; height: 18px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink-mid);
  padding: 14px 28px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-outline:hover { border-color: var(--sky); color: var(--sky-dark); }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--sky-dark);
  padding: 18px 40px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.2); }
.btn-white svg { width: 20px; height: 20px; }

/* ════════════ SECTION HELPERS ════════════ */
.section-kicker {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 14px;
}
.section-h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 60px;
}

/* ════════════ RESPONSIVE NAV ════════════ */
@media (max-width: 1200px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  header { padding: 0 20px; }
  header nav { display: none; }
}
