/* ===========================
   ネクストビズ 共通スタイル
   モダンリデザイン：白ヘッダー・クリーンUI
   =========================== */

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

:root {
  --blue-900:    #0f2d5e;
  --blue-700:    #1a4aab;
  --blue-500:    #2563eb;
  --blue-400:    #3b82f6;
  --blue-50:     #eff6ff;
  --amber:       #f59e0b;
  --amber-light: #fbbf24;
  --amber-pale:  #fef3c7;
  --white:       #ffffff;
  --gray-50:     #f8faff;
  --gray-100:    #f1f5fb;
  --gray-200:    #e2e8f5;
  --gray-500:    #6b7a99;
  --gray-700:    #374151;
  --text:        #1e2c4a;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(30,44,74,0.07);
  --shadow-md:   0 6px 24px rgba(30,44,74,0.10);
  --shadow-lg:   0 16px 48px rgba(30,44,74,0.14);
  --font:        'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

/* ===========================  RESET & BASE  =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.7; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===========================
   HEADER — 白背景・モダン
   =========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(30,44,74,0.10);
}

.header-logo {
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.site-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.site-nav a {
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--blue-500);
  border-radius: 2px;
  transition: width 0.3s;
}
.site-nav a:hover { color: var(--blue-500); }
.site-nav a:hover::after,
.site-nav a.active::after { width: 100%; }
.site-nav a.active { color: var(--blue-500); }

.nav-cta {
  background: var(--blue-500) !important;
  color: var(--white) !important;
  padding: 9px 24px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
  letter-spacing: 0.02em;
}
.nav-cta:hover {
  background: var(--blue-700) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(37,99,235,0.3) !important;
}
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===========================
   SECTION BASE
   =========================== */
section { padding: 100px 48px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--blue-500);
  text-transform: uppercase;
  background: var(--blue-50);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.section-title span {
  background: linear-gradient(135deg, var(--blue-500), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-lead {
  font-size: 1.03rem;
  color: var(--gray-500);
  max-width: 640px;
  line-height: 1.9;
}
.divider {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--amber));
  border-radius: 3px;
  margin: 16px 0 28px;
}

/* ===========================
   BUTTON
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.22s;
  letter-spacing: 0.04em;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,99,235,0.4);
  filter: brightness(1.08);
}
.btn-amber {
  background: linear-gradient(135deg, var(--amber), #e67e00);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}
.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245,158,11,0.4);
  filter: brightness(1.08);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue-700);
  transform: translateY(-2px);
}
.btn-outline-blue {
  background: transparent;
  color: var(--blue-500);
  border: 2px solid var(--blue-500);
}
.btn-outline-blue:hover {
  background: var(--blue-500);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===========================
   CARDS
   =========================== */
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-400);
}
.card-icon {
  width: 52px; height: 52px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.8;
}

/* ===========================
   LOGO styles
   =========================== */
.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.95);
  border-radius: 6px;
  padding: 4px 12px;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--blue-900);
  color: #8899bb;
  padding: 64px 48px 32px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .footer-logo-img { filter: none; opacity: 1; }
.footer-brand p { font-size: 0.87rem; line-height: 1.9; }
.footer-col h4 {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--amber-light);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 0.87rem;
  color: #8899bb;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--amber-light); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-bottom a { color: #8899bb; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--amber-light); }

/* ===========================
   PAGE HERO (内部ページ共通)
   =========================== */
.page-hero {
  background: linear-gradient(135deg, rgba(15,45,94,0.88) 0%, rgba(37,99,235,0.80) 100%);
  padding: 150px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-inner { max-width: 800px; margin: 0 auto; position: relative; }
.page-hero .section-label {
  background: rgba(255,255,255,0.15);
  color: var(--amber-light);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.page-hero h1 span {
  background: linear-gradient(135deg, var(--amber-light), #fde68a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p { font-size: 1.03rem; color: rgba(255,255,255,0.75); line-height: 1.9; }
.breadcrumb { margin-top: 24px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: var(--amber-light); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===========================
   FORM
   =========================== */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group label .required {
  display: inline-block;
  background: var(--blue-500);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-group textarea { resize: vertical; min-height: 160px; }

/* ===========================
   UTILITIES
   =========================== */
.text-center { text-align: center; }
.text-center .section-lead { margin: 0 auto; }
.text-center .divider { margin-left: auto; margin-right: auto; }
.bg-gray { background: var(--gray-50); }
.bg-blue-dark { background: var(--blue-900); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.7s ease both; }
.fade-in-delay-1 { animation-delay: 0.15s; }
.fade-in-delay-2 { animation-delay: 0.3s; }
.fade-in-delay-3 { animation-delay: 0.45s; }

/* ===========================
   SCROLL-TRIGGERED FADE
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 960px) {
  .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  section { padding: 72px 28px; }
  .site-header { padding: 0 24px; }
  .page-hero { padding: 140px 28px 64px; }
}
@media (max-width: 680px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 12px 32px rgba(30,44,74,0.12);
  }
  .site-nav.open ul { flex-direction: column; gap: 0; }
  .site-nav.open ul li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--text);
  }
  .hamburger { display: flex; }
  .card-grid-3, .card-grid-4, .card-grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .section-title { font-size: 1.75rem; }
  .page-hero h1 { font-size: 2rem; }
  section { padding: 60px 20px; }
  .site-header { padding: 0 20px; }
}
