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

/* ==========================================================================
   DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --primary-dark: #001C48;      /* メインネイビー */
  --primary-blue: #1E3A8A;      /* ネイビーブルー */
  --accent-blue: #2563EB;       /* ミッドナイトブルー */
  --accent-light: #EEF2FF;      /* 背景用極薄インディゴ */
  
  --text-dark: #1E293B;         /* メインテキスト色 */
  --text-muted: #64748B;        /* 補足テキスト色 */
  --text-light: #F8FAFC;        /* 明るいテキスト色 */
  
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;          /* セクション背景用グレー */
  --bg-dark: #001535;           /* フッター背景など用ダークブルー */
  
  --border-color: #E2E8F0;
  
  /* Fonts */
  --font-family: 'Outfit', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

/* 初期状態（非表示） */
.will-animate {
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 方向別の初期オフセット */
.anim-fade-up    { transform: translateY(36px); }
.anim-fade-left  { transform: translateX(-36px); }
.anim-fade-right { transform: translateX(36px); }

/* 表示状態 */
.will-animate.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* カードホバー強化 */
.service-card,
.reason-item,
.mission-card,
.partner-logo-item {
  transition: var(--transition-smooth), box-shadow 0.3s ease, transform 0.3s ease;
}
.service-card:hover,
.reason-item:hover,
.mission-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 28, 72, 0.12);
}

/* 統計数字のフォント設定（カウントアップ時にちらつかない） */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-dark);
}

/* ==========================================================================
   REUSABLE COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
}

.btn-secondary {
  background-color: var(--primary-blue);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-outline {
  border: 1.5px solid var(--primary-dark);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--bg-white);
  color: var(--primary-dark);
}

.btn-white:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-arrow::after {
  content: '→';
  transition: var(--transition-smooth);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* Section Title */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--primary-blue);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--primary-blue);
}

/* Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-light {
  background-color: var(--bg-light);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--text-light);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  height: 70px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.logo-link img {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: var(--transition-smooth);
}

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

.header-cta {
  height: 100%;
  display: flex;
  align-items: center;
}

.btn-contact-header {
  background-color: var(--primary-dark);
  color: var(--text-light);
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.btn-contact-header:hover {
  background-color: var(--primary-blue);
}

.btn-contact-header svg,
.btn-contact-header i svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-contact-header i {
  display: flex;
  align-items: center;
  line-height: 1;
}

/* Burger Menu (Mobile Only) */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1010;
}

.burger-line {
  width: 100%;
  height: 2px;
  background-color: var(--primary-dark);
  transition: var(--transition-smooth);
}

/* Hamburger Active State */
.burger-menu.active .burger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   SUBPAGE HERO
   ========================================================================== */
/* ==========================================================================
   SPLIT HERO (Subpage & HOME共通)
   ========================================================================== */
.subpage-hero {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  background: #ffffff;
  overflow: hidden;
  padding-top: var(--header-height);
  margin-top: 0;
}

.subpage-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.subpage-hero-fade {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0.6) 25%, rgba(255,255,255,0.15) 55%, transparent 80%);
  z-index: 2;
}

.subpage-hero-content {
  position: relative;
  z-index: 10;
  text-align: left;
  max-width: 50%;
}

.subpage-hero .container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.subpage-hero-subtitle {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  display: block;
}

.subpage-hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.subpage-hero-divider {
  width: 40px;
  height: 3px;
  background-color: var(--primary-blue);
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

.subpage-hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 380px;
  white-space: nowrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo img {
  height: 42px;
  width: auto;
}

.footer-address {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-nav-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 2px;
  background-color: var(--primary-blue);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-nav-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
}

.footer-nav-link:hover {
  color: var(--text-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal-links {
  display: flex;
  gap: 2rem;
}

.footer-legal-link:hover {
  color: var(--text-light);
}

/* ==========================================================================
   SUBPAGES: CONTACT BOTTOM CTA
   ========================================================================== */
.contact-cta {
  position: relative;
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 6rem 0;
  overflow: hidden;
}

.contact-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  z-index: 1;
}

.contact-cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 21, 53, 0.9) 0%, rgba(0, 28, 72, 0.95) 100%);
  z-index: 2;
}

.contact-cta .container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  text-align: left;
}

.contact-cta-content {
  max-width: 750px;
  margin: 0;
}

.contact-cta-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 0.8rem;
  white-space: nowrap;
}

.contact-cta-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.8rem;
}

.contact-cta-btn-wrapper {
  flex-shrink: 0;
}

.contact-cta-btn {
  margin: 0;
  padding: 1.2rem 3rem;
  font-size: 1.05rem;
  border-radius: 4px;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 992px) {
  .header-container {
    padding: 0 1.5rem;
  }
  
  .nav {
    display: none; /* JSでスマホナビを有効化 */
  }
  
  .burger-menu {
    display: flex;
  }
  
  /* Mobile Menu Panel */
  .nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(255, 255, 255, 0.98);
    padding: 3rem 2rem;
    gap: 3rem;
    z-index: 999;
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
  }
  
  .nav.mobile-active .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
  }
  
  .nav.mobile-active .nav-link {
    font-size: 1.2rem;
  }
  
  .nav.mobile-active .header-cta {
    width: 100%;
    justify-content: center;
  }
  
  .nav.mobile-active .btn-contact-header {
    height: auto;
    padding: 1rem 3rem;
    border-radius: 4px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-cta .container {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 2rem;
  }
  .contact-cta-content {
    max-width: 100%;
  }
  .contact-cta-title {
    font-size: 1.8rem;
  }
  .contact-cta-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .subpage-hero-title {
    font-size: 2.2rem;
  }
  
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   5. HOME HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
  background: #ffffff;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero .container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  z-index: 1;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0.65) 30%, rgba(255,255,255,0.15) 55%, transparent 80%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 520px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--primary-blue);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

/* Stat Section */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-card {
  background-color: var(--bg-white);
  padding: 3rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stat-card-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1rem;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number.stat-text-lg {
  font-size: 2.2rem;
  white-space: nowrap;
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  color: var(--primary-blue);
}

.stat-icon svg,
.stat-icon i svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-unit {
  font-size: 1.2rem;
  font-weight: 700;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Service Summary Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-white);
  padding: 3rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(29, 78, 216, 0.08);
  border-color: rgba(29, 78, 216, 0.2);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  margin-bottom: 2rem;
  padding: 15px;
}

.service-icon svg,
.service-icon i svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reason-icon {
  width: 64px;
  height: 64px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  margin: 0 auto 1.5rem;
  padding: 16px;
}

.reason-icon svg,
.reason-icon i svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-icon {
  width: 50px;
  height: 50px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  margin: 0 auto 1.5rem;
  padding: 12px;
}

.flow-icon svg,
.flow-icon i svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.4;
  white-space: nowrap;
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.service-card-link::after {
  content: '→';
  transition: var(--transition-fast);
}

.service-card-link:hover::after {
  transform: translateX(3px);
}

/* Partners Summary */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.partner-logo {
  background-color: var(--bg-white);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
  padding: 1rem;
  text-align: center;
}

.partner-logo:hover {
  border-color: var(--primary-blue);
  color: var(--primary-dark);
}

/* 個別ロゴカード 6列グリッド */
.partner-logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.partner-logo-card {
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.partner-logo-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 6px 20px rgba(0, 28, 72, 0.10);
  transform: translateY(-3px);
}

.partner-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Why Novalink Section */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.reason-card {
  text-align: center;
  padding: 1rem;
}

.reason-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  display: block;
}

.reason-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.reason-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: left;
}

/* Flow Section */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.flow-grid--5col {
  grid-template-columns: repeat(5, 1fr);
}

.flow-step {
  background-color: var(--primary-blue);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.flow-step::after {
  content: '>';
  position: absolute;
  top: 50%;
  right: -1.5rem;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.flow-step:last-child::after {
  display: none;
}

.flow-step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  display: block;
}

.flow-step-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.flow-step-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Company Summary */
.company-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.company-table-wrapper {
  overflow-x: auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.company-table th {
  font-weight: 700;
  color: var(--primary-dark);
  width: 30%;
  font-size: 0.95rem;
}

.company-table td {
  color: var(--text-dark);
  font-size: 0.95rem;
}

.company-summary-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   6. ABOUT PAGE STYLES
   ========================================================================== */
.about-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 6rem;
}

.mission-card {
  background-color: var(--bg-white);
  padding: 3.5rem 3rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.mission-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.mission-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mission-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.4;
}

.mission-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.ceo-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.ceo-message-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.ceo-message-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.ceo-message-desc p {
  margin-bottom: 1.5rem;
}

.ceo-name-block {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.ceo-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.ceo-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.ceo-name span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 1rem;
}

.ceo-image img {
  border-radius: 8px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   7. SERVICES PAGE STYLES
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.process-card {
  background-color: var(--bg-white);
  padding: 3rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
}

.process-card::after {
  content: '>';
  position: absolute;
  top: 50%;
  right: -1.5rem;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--border-color);
  font-weight: 300;
}

.process-card:last-child::after {
  display: none;
}

.process-num {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 1rem;
}

.process-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.process-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.service-detail-card {
  background-color: var(--bg-white);
  padding: 4rem 3rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.service-detail-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.20;
  z-index: 0;
  pointer-events: none;
}

.service-detail-card > * {
  position: relative;
  z-index: 1;
}

.service-detail-card--sns::before {
  background-image: url('images/service-sns-bg.png');
}

.service-detail-card--ad::before {
  background-image: url('images/service-ad-bg.png');
}

.service-detail-card--promo::before {
  background-image: url('images/service-promo-bg.png');
}

.service-detail-card--ec::before {
  background-image: url('images/service-ec-bg.png');
}

.service-detail-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-detail-desc {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.service-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.service-detail-item::before {
  content: '✓';
  color: var(--primary-blue);
  font-weight: 900;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.result-card {
  background-color: var(--bg-white);
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.result-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.result-val {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.result-val span {
  font-size: 1rem;
}

.result-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. PARTNERS PAGE STYLES
   ========================================================================== */
.partners-list-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-bottom: 6rem;
}

.partners-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.partner-detail-card {
  background-color: var(--bg-white);
  padding: 3.5rem 3rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.partner-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.partner-detail-logo {
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.partner-detail-tag {
  background-color: var(--accent-light);
  color: var(--primary-blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
}

.partner-detail-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.partner-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 6px;
}

.partner-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.partner-stat-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* ==========================================================================
   9. COMPANY PAGE STYLES
   ========================================================================== */
.company-info-section {
  max-width: 900px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.team-card {
  background-color: var(--bg-white);
  padding: 3rem 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.team-avatar {
  width: 60px;
  height: 60px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 1.8rem;
}

.team-info-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.team-info-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.access-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.map-iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.access-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.access-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.access-icon {
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.access-icon i svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.access-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   10. CONTACT PAGE STYLES
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 5rem;
}

.contact-form {
  background-color: var(--bg-white);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.form-label-required {
  background-color: var(--primary-dark);
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.8rem;
  display: inline-block;
  vertical-align: middle;
}

.form-label-optional {
  background-color: var(--text-muted);
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.8rem;
  display: inline-block;
  vertical-align: middle;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.95rem;
  background-color: var(--bg-white);
  transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.form-input.input-error,
.form-select.input-error,
.form-textarea.input-error {
  border-color: #EF4444;
}

.error-message {
  color: #EF4444;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: none;
}

.form-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.form-submit-btn {
  width: 100%;
  padding: 1.2rem;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sidebar-box {
  background-color: var(--bg-light);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.sidebar-box-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sidebar-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.sidebar-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sidebar-box-dl {
  background-color: var(--primary-dark);
  color: var(--text-light);
  border-color: var(--primary-dark);
}

.sidebar-box-dl .sidebar-box-title {
  color: var(--text-light);
}

/* FAQ Accordion Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.05);
}

.faq-question {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-answer-inner {
  padding: 0 2rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

/* ==========================================================================
   11. PRIVACY & LAW PAGE STYLES
   ========================================================================== */
.policy-container {
  max-width: 800px;
  margin: 0 auto;
}

.policy-block {
  margin-bottom: 3rem;
}

.policy-block-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.policy-block-num {
  background-color: var(--primary-dark);
  color: var(--text-light);
  width: 25px;
  height: 25px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.policy-block-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.policy-block-text ul {
  margin-top: 0.8rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.policy-block-text li {
  margin-bottom: 0.5rem;
}

.policy-date {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

/* ==========================================================================
   MEDIA QUERIES (PAGE SPECIFIC RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
  .hero {
    height: auto;
    padding: 13rem 0 5rem;
    text-align: center;
  }
  
  /* スマホでは動画を背景全体に表示 */
  .hero-bg-container {
    width: 100%;
    opacity: 0.80;
  }

  .hero-bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-fade {
    background: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.85) 60%, #ffffff 100%);
  }
  
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partner-logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .reason-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-grid--5col {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .flow-step::after {
    display: none; /* スマホでは右矢印を削除 */
  }
  
  .company-summary-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-mission-grid {
    grid-template-columns: 1fr;
  }
  
  .ceo-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-card::after {
    display: none;
  }
  
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .partners-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .partners-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .access-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  /* ヒーロータイトル: 2行で綺麗に表示 */
  .hero-title {
    font-size: 2.1rem;
  }

  /* サブページ見出し: お問い合わせなど1行に */
  .subpage-hero-title {
    font-size: 1.8rem;
  }
  
  .stat-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  /* ロゴグリッド: 2列に変更（見やすく） */
  .partner-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* subpage-hero-descのwhite-space解除 */
  .subpage-hero-desc {
    white-space: normal;
    max-width: 100%;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid--5col {
    grid-template-columns: 1fr;
  }
  
  .process-grid {
    grid-template-columns: 1fr;
  }
  
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partners-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }

  /* CTA セクション */
  .contact-cta .container {
    padding: 0 1.5rem;
  }
  .contact-cta-title {
    font-size: 1.4rem;
    white-space: normal;
  }
  .contact-cta-desc {
    font-size: 0.95rem;
  }

  /* subpage-hero-desc の折り返し解除 */
  .subpage-hero-desc {
    white-space: normal;
    max-width: 100%;
  }

  /* CEO画像の高さ制限 */
  .ceo-image img {
    max-height: 350px;
    width: auto;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }

  /* 超小型: ロゴ2列維持 */
  .partner-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA タイトルさらに縮小 */
  .contact-cta-title {
    font-size: 1.2rem;
  }

  /* フローステップ 1列 */
  .flow-grid,
  .flow-grid--5col {
    grid-template-columns: 1fr;
  }
}

