/* ==========================================================================
   Flexi Corporate Hybrid Website - Style Sheet (style.css)
   Brand Colors: Primary Navy (#0A2540), Accent Blue (#0077B6)
   ========================================================================== */

:root {
  --primary-color: #0A2540;
  --primary-light: #16385C;
  --accent-color: #0077B6;
  --accent-hover: #005F92;
  --accent-light: #F0F7FF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 10px 25px rgba(10, 37, 64, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

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

body {
  font-family: 'Noto Sans JP', "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.section-padding { padding: 80px 0; }
.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }
.margin-top-lg { margin-top: 40px; }

/* Header */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span { color: var(--accent-color); }

.site-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active { color: var(--accent-color); }

/* Buttons */
.btn-primary-sm {
  background-color: var(--accent-color);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}
.btn-primary-sm:hover { background-color: var(--accent-hover); }

.btn-primary-lg {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
  transition: all 0.2s;
}
.btn-primary-lg:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary-lg {
  display: inline-block;
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary-lg:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* LP Hero Section */
.hero-lp {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: #ffffff;
  padding: 100px 0 90px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(0, 119, 182, 0.3);
  border: 1px solid var(--accent-color);
  color: #38BDF8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.15rem;
  color: #CBD5E1;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
}

/* Section Header */
.section-header {
  margin-bottom: 50px;
}
.section-header .sub-title {
  display: block;
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.section-header h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-light);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
}
.feature-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-color);
  opacity: 0.25;
  margin-bottom: 8px;
}
.feature-card h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-main);
  font-size: 0.95rem;
}

/* Service Grid (Cards) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}
.service-no {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  margin-bottom: 6px;
}
.service-card h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.service-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Spec Table */
.spec-table-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table th, .spec-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}
.spec-table th {
  width: 25%;
  background-color: var(--bg-light);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.95rem;
}
.spec-table td {
  color: var(--text-main);
  font-size: 0.95rem;
}

/* Global CTA Section */
.global-cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0F3254 100%);
  color: #fff;
  padding: 80px 0;
}
.global-cta-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.global-cta-section p {
  color: #CBD5E1;
  margin-bottom: 32px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-email {
  display: inline-block;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s;
}
.btn-email:hover { background-color: rgba(255,255,255,0.1); }

/* Footer */
.site-footer {
  background: var(--primary-color);
  color: #ffffff;
  padding: 40px 0 20px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 30px;
  margin-bottom: 20px;
}
.footer-brand .logo { color: #fff; }
.footer-brand p { color: #94A3B8; font-size: 0.85rem; margin-top: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #CBD5E1; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.copyright { text-align: center; color: #64748B; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-cta-group { flex-direction: column; }
  .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { background-color: var(--accent-light); }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  
  /* ==========================================================================
   Services Grid Page (2枚目のデザイン完全再現)
   ========================================================================== */

/* 全体背景 */
.services-section {
  background-color: #f8fafc;
  padding: 80px 20px 100px;
  min-height: calc(100vh - 80px);
}

.services-container {
  max-width: 1140px;
  margin: 0 auto;
}

/* タイトルエリア */
.services-header {
  text-align: center;
  margin-bottom: 56px;
}

.services-header .sub-title {
  color: #0284c7;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.services-header h1 {
  color: #0f172a;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.services-header p {
  color: #64748b;
  font-size: 1rem;
}

/* 3列カードレイアウト */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 各カードの装飾 */
.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
  border-color: #0284c7;
  box-shadow: 0 12px 24px -6px rgba(2, 132, 199, 0.12);
  transform: translateY(-3px);
}

.service-card .card-num {
  color: #0284c7;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card .card-title {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
}

.service-card .card-desc {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-card .card-link {
  color: #0284c7;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}

.service-card .card-link:hover {
  color: #0369a1;
}

/* レスポンシブ対応（スマホ・タブレット） */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-header h1 {
    font-size: 1.75rem;
  }
}
}
