/* ============================================
   IBSYS 共通スタイル
   ============================================ */

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

:root {
  --navy:   #002b6e;
  --navy-d: #001848;
  --navy-l: #0046b0;
  --gold:   #f5a000;
  --gold-l: #ffc840;
  --gray-1: #f4f6f9;
  --gray-2: #e4e9f0;
  --gray-3: #c8d0dc;
  --text:   #1a2233;
  --sub:    #4a5568;
  --mute:   #8896a8;
  --fp: 'Noto Sans JP', sans-serif;
  --fe: 'Inter', sans-serif;
  --nav-h: 68px;
  --fs-body: 0.96rem;
  --fs-sm: 0.84rem;
  --fs-xs: 0.74rem;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--fp);
  background: #fff;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ─── NAVBAR ─────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: #fff;
  border-bottom: 3px solid var(--navy);
}
.nb-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; text-decoration: none; flex-shrink: 0;
}
.logo img { height: 38px; width: auto; display: block; }

.nav-list {
  display: flex; list-style: none; align-items: center; gap: 0.2rem;
}
.nav-list a {
  font-family: var(--fe); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--sub); text-decoration: none;
  padding: 0.45rem 0.9rem; border-radius: 3px;
  transition: color .2s, background .2s;
}
.nav-list a:hover { color: var(--navy); background: var(--gray-1); }
.nav-list a.active { color: var(--navy); }
.nav-cta {
  background: var(--gold) !important; color: var(--navy-d) !important;
  margin-left: 0.5rem; border-radius: 3px;
}
.nav-cta:hover { background: var(--gold-l) !important; }

.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; color: var(--navy); padding: 0.25rem;
}
.mob-nav {
  display: none; position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: #fff; z-index: 99;
  padding: 1.5rem 2rem; flex-direction: column;
  border-top: 1px solid var(--gray-2);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.mob-nav.open { display: flex; }
.mob-nav a {
  font-size: 1rem; font-weight: 600; color: var(--text);
  text-decoration: none; padding: 0.9rem 0;
  border-bottom: 1px solid var(--gray-1); transition: color .2s;
}
.mob-nav a:hover { color: var(--navy); }
.mob-nav a.mob-cta {
  margin-top: 1rem; background: var(--navy); color: #fff;
  text-align: center; padding: 0.8rem; border-radius: 3px; border: none;
}

/* ─── PAGE HEADER (サブページ用) ──────────────── */
.page-header {
  padding-top: var(--nav-h);
  background: linear-gradient(118deg, var(--navy-d) 0%, var(--navy) 100%);
  padding-bottom: 3rem;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-55deg, transparent, transparent 60px,
    rgba(255,255,255,.018) 60px, rgba(255,255,255,.018) 61px);
}
.page-header-in {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto; padding: 3rem 2rem 1rem;
}
.page-header-label {
  font-family: var(--fe); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.page-header-label::before { content: ''; width: 20px; height: 2px; background: var(--gold); }
.page-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900;
  color: #fff; letter-spacing: -0.02em; line-height: 1.2;
}

/* ─── SHARED SECTION STYLES ───────────────────── */
.sec { padding: 3.5rem 0; }
.sec-in { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.sec-label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--fe); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.8rem;
}
.sec-label::before { content: ''; width: 20px; height: 2px; background: var(--gold); }
.sec-title {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem); font-weight: 900; color: var(--navy);
  letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 0.9rem;
}
.sec-desc {
  font-size: 1rem; color: var(--sub); font-weight: 300;
  line-height: 1.95; max-width: 640px;
}

/* ─── CTA SECTION ─────────────────────────────── */
.sec-cta {
  background: var(--gray-1);
  border-top: 1px solid var(--gray-2);
  padding: 3.5rem 0;
}
.cta-wrap {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr auto; gap: 5rem; align-items: center;
}
.cta-title {
  font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 900;
  color: var(--navy); letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 0.75rem;
}
.cta-body { font-size: 1rem; color: var(--sub); font-weight: 300; line-height: 1.9; }
.cta-box {
  background: var(--navy); padding: 2.2rem 2.8rem;
  text-align: center; min-width: 260px; flex-shrink: 0; border-radius: 4px;
}
.cta-box p { font-size: 0.72rem; color: rgba(255,255,255,.45); font-weight: 300; margin-bottom: 0.5rem; }
.cta-tel {
  font-family: var(--fe); font-size: 1.6rem; font-weight: 800;
  color: #fff; display: block; margin-bottom: 1.2rem; letter-spacing: 0.04em;
  text-decoration: none;
}
.cta-tel:hover { color: var(--gold); }
.cta-link {
  display: block; background: var(--gold); color: var(--navy-d);
  text-decoration: none; padding: 0.75rem 1.4rem;
  font-family: var(--fe); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.06em; border-radius: 2px; transition: background .2s;
}
.cta-link:hover { background: var(--gold-l); }

/* ─── FOOTER ──────────────────────────────────── */
footer { background: var(--navy-d); color: rgba(255,255,255,.72); padding: 2.5rem 0 0; }
.ft-in {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem 2rem;
  display: grid; grid-template-columns: 1.8fr 1fr 1.2fr; gap: 3rem;
}
.ft-logo {
  display: inline-block; text-decoration: none; margin-bottom: 1rem;
}
.ft-logo img {
  height: 34px; width: auto; display: block;
  /* 白背景ロゴをフッター（ダーク背景）用に反転 */
  filter: brightness(0) invert(1);
  opacity: 0.88;
}
.ft-brand p { font-size: 0.78rem; line-height: 1.95; font-weight: 300; max-width: 75%; }
.ft-col h5 {
  font-family: var(--fe); font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 1.2rem;
}
.ft-col ul { list-style: none; }
.ft-col li { margin-bottom: 0.6rem; }
.ft-col a {
  font-size: 0.8rem; color: rgba(255,255,255,.62);
  text-decoration: none; font-weight: 300; transition: color .2s;
}
.ft-col a:hover { color: #fff; }
.ft-contact p { font-size: 0.78rem; line-height: 2.1; font-weight: 300; }
.ft-bottom {
  max-width: 1280px; margin: 0 auto; padding: 1.4rem 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem;
}
.ft-bottom a { color: rgba(255,255,255,.28); text-decoration: none; transition: color .2s; }
.ft-bottom a:hover { color: rgba(255,255,255,.6); }

/* ─── TAGS ────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-family: var(--fe); font-size: 0.62rem; font-weight: 600;
  padding: 0.22rem 0.65rem; background: var(--gray-1);
  border: 1px solid var(--gray-2); color: var(--sub); border-radius: 2px;
}

/* ─── BUTTONS ─────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--gold); color: var(--navy-d); text-decoration: none;
  padding: 0.82rem 1.9rem; font-family: var(--fe);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  border-radius: 3px; transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--gold-l); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,.65); text-decoration: none;
  font-family: var(--fe); font-size: 0.72rem; font-weight: 600;
  transition: color .2s;
}
.btn-ghost:hover { color: #fff; }

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 960px) {
  .nav-list { display: none; }
  .hamburger { display: block; }
  .ft-in { grid-template-columns: 1fr; gap: 2rem; }
  .cta-wrap { grid-template-columns: 1fr; }
  .cta-box { min-width: unset; }
}
