/* ============================================================
   JG-コネクティング合同会社 - 共通スタイル
   カラーパレット:
     Primary   : #F96D00 (Bright Orange)
     Secondary : #B8E3E9 (Powder Blue)
     Base Light: #FFFFFF
     Base Dark : #2D2D2D
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange:     #F96D00;
  --orange-lt:  #FFA04D;
  --orange-dk:  #D95C00;
  --blue:       #B8E3E9;
  --blue-dk:    #7ECAD4;
  --white:      #FFFFFF;
  --gray-lt:    #F5F5F5;
  --gray-mid:   #9E9E9E;
  --gray-dk:    #2D2D2D;
  --black:      #1A1A1A;
  --font-sans:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --transition: 0.3s ease;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
  --radius:     8px;
  --radius-lg:  16px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-dk);
  background-color: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--orange-dk);
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 0.5rem auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-mid);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background-color: var(--gray-lt);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.03em;
}

.btn-primary {
  background-color: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background-color: var(--orange-dk);
  border-color: var(--orange-dk);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(249,109,0,0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn-outline:hover {
  background-color: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--white);
  color: var(--orange);
  border-color: var(--white);
}

.btn-white:hover {
  background-color: var(--gray-lt);
  color: var(--orange-dk);
  transform: translateY(-2px);
}

/* ---------- Header / Navbar ---------- */
#header {
  position: fixed;
  top: 32px; /* WordPress管理バーの高さ分下げる */
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}

#header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text .main {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
}

.logo-text .sub {
  font-size: 0.65rem;
  color: var(--gray-mid);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--gray-dk);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--orange-dk) !important;
  box-shadow: 0 4px 12px rgba(249,109,0,0.3);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-dk);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--gray-dk);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--orange);
}

/* ---------- Footer ---------- */
#footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-icon {
  margin-bottom: 1rem;
}

.footer-brand .logo-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.footer-brand .logo-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.9;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

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

.footer-col ul li a:hover {
  color: var(--orange);
}

.footer-contact-info {
  font-size: 0.85rem;
  line-height: 2;
}

.footer-contact-info span {
  display: block;
}

.footer-contact-info a {
  color: rgba(255,255,255,0.6);
}

.footer-contact-info a:hover {
  color: var(--orange);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Page Hero ---------- */
.page-hero {
  padding: 10rem 0 5rem;
  background: linear-gradient(135deg, var(--black) 0%, #3A3A3A 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,109,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1.5rem;
}

.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.5);
}

.page-hero .breadcrumb a:hover {
  color: var(--orange);
}

.page-hero .breadcrumb span {
  color: var(--orange);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(249,109,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--orange);
  font-size: 1.4rem;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-orange {
  background: rgba(249,109,0,0.12);
  color: var(--orange);
}

.badge-blue {
  background: rgba(184,227,233,0.4);
  color: #3B9BA5;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-blue   { color: var(--blue-dk); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

@media (max-width: 480px) {
  html { font-size: 15px; }
}
/* WordPress管理バー対応 */
.admin-bar #header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar #header {
    top: 46px;
  }
}

/* 管理バーなし（一般訪問者）の場合 */
body:not(.admin-bar) #header {
  top: 0;
}