/* ===================================
   APX Group Corporate Site - Global Styles
   =================================== */

:root {
  /* カラーパレット */
  --primary-navy: #1A2B4C;
  --accent-gold: #C9A84C;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --medium-gray: #E8EAED;
  --text-dark: #1A1A1A;
  --text-light: #6B7280;
  
  /* フォント */
  --font-base: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "HGS明朝E", "ＭＳ Ｐ明朝", serif;
  
  /* スペーシング */
  --section-padding: 80px 0;
  --container-max-width: 1200px;
}

/* リセット & ベース */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  background: var(--white);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* コンテナ */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー & ナビゲーション */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

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

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

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
}

.main-nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
  position: relative;
}

.main-nav a:hover {
  color: var(--accent-gold);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent-gold);
  color: var(--white) !important;
  padding: 12px 28px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* ハンバーガーメニュー（モバイル） */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* セクション共通 */
section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.section-title .subtitle {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 400;
}

.section-title .en {
  display: block;
  font-size: 13px;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  font-weight: 700;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 18px 48px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-navy);
  border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
  background: var(--primary-navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-large {
  padding: 20px 50px;
  font-size: 18px;
}

/* カードUI */
.card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid var(--medium-gray);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--accent-gold);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 32px;
  color: var(--white);
}

.card h3 {
  font-size: 24px;
  color: var(--primary-navy);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.card p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* グリッドレイアウト */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* 数値バナー */
.stats-banner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--primary-navy);
  padding: 80px 40px;
  border-radius: 0;
  margin: 60px 0;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.95;
  letter-spacing: 0.05em;
}

/* タイムライン */
.timeline {
  position: relative;
  padding-left: 50px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent-gold), var(--primary-navy));
}

.timeline-item {
  position: relative;
  padding: 30px 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 35px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--medium-gray);
}

.timeline-phase {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.timeline-item h3 {
  font-size: 24px;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.timeline-item p {
  color: var(--text-light);
  line-height: 1.8;
}

/* フッター */
.site-footer {
  background: var(--primary-navy);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--accent-gold);
}

.footer-section p,
.footer-section ul {
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.85;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  opacity: 0.7;
}

/* フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* 背景セクション */
.bg-light {
  background: var(--light-gray);
}

.bg-white {
  background: var(--white);
}

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

/* レスポンシブデザイン */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 50px 0;
  }
  
  /* ヒーローセクション */
  .hero h1,
  section h1 {
    font-size: 32px !important;
    line-height: 1.4 !important;
  }
  
  .hero p,
  section > div > p {
    font-size: 16px !important;
  }
  
  .hero,
  section[style*="padding: 160px"] {
    padding: 80px 0 !important;
  }
  
  section[style*="padding: 100px"] {
    padding: 60px 0 !important;
  }
  
  /* ロゴサイズ調整 */
  .site-logo img {
    height: 45px !important;
  }
  
  /* ボタン調整 */
  .hero .btn,
  section .btn {
    font-size: 16px !important;
    padding: 16px 30px !important;
  }
  
  /* ヒーローセクションのボタンはブロック表示 */
  .hero div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .hero div[style*="display: flex"] .btn {
    width: 100% !important;
  }
  
  /* ナビゲーション */
  .main-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    padding: 30px 0;
    z-index: 999;
  }
  
  .main-nav.active {
    left: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  .main-nav li {
    border-bottom: 1px solid var(--medium-gray);
  }
  
  .main-nav a {
    display: block;
    padding: 15px 30px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  /* グリッド */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  /* 役員紹介カードの調整 */
  .card[style*="border-left: 4px solid"] {
    padding: 30px !important;
  }
  
  .card[style*="border-left: 4px solid"] h3 {
    font-size: 26px !important;
  }
  
  .card[style*="border-left: 4px solid"] p {
    font-size: 14px !important;
  }
  
  /* 大型画像セクション */
  section[style*="height: 400px"],
  section[style*="height: 350px"] {
    height: 250px !important;
    padding: 40px 20px !important;
  }
  
  section[style*="height: 400px"] h2,
  section[style*="height: 350px"] h2 {
    font-size: 24px !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
  }
  
  section[style*="height: 400px"] p,
  section[style*="height: 350px"] p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  
  /* セクションタイトル */
  .section-title {
    margin-bottom: 35px;
  }
  
  .section-title h2 {
    font-size: 28px;
    line-height: 1.4;
  }
  
  .section-title .en {
    font-size: 13px;
    margin-bottom: 10px;
  }
  
  /* 統計バナー */
  .stats-banner {
    flex-direction: column;
    gap: 25px;
    padding: 35px 20px;
  }
  
  .stat-item {
    text-align: center;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .stat-label {
    font-size: 13px;
  }
  
  /* フッター */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  footer {
    padding: 40px 0 30px;
  }
  
  /* カード */
  .card {
    padding: 25px;
  }
  
  /* ボタン */
  .btn {
    padding: 16px 30px;
    font-size: 16px;
  }
  
  /* コンテナ */
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* セクション余白 */
  section {
    padding: 60px 0 !important;
  }
  
  /* ヒーローセクション */
  .hero {
    padding: 120px 0 !important;
  }
  
  .hero h1 {
    font-size: 36px !important;
    line-height: 1.3 !important;
  }
  
  .hero p {
    font-size: 17px !important;
    line-height: 1.6 !important;
  }
  
  .hero .btn {
    font-size: 16px !important;
    padding: 16px 40px !important;
  }
}

@media (max-width: 480px) {
  /* セクションタイトル */
  .section-title h2 {
    font-size: 24px;
    line-height: 1.4;
  }
  
  .section-title .en {
    font-size: 12px;
  }
  
  /* ボタン */
  .btn {
    width: 100%;
    padding: 14px 30px;
    font-size: 15px;
  }
  
  /* 統計バナー */
  .stat-number {
    font-size: 32px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  /* ヒーローセクション - さらに小さい画面 */
  .hero {
    padding: 100px 0 !important;
  }
  
  .hero h1,
  section h1 {
    font-size: 28px !important;
    line-height: 1.4 !important;
    margin-bottom: 16px !important;
  }
  
  .hero p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
  }
  
  /* ヒーローボタン */
  .hero .btn {
    font-size: 15px !important;
    padding: 14px 30px !important;
    width: 100%;
    margin-bottom: 15px;
  }
  
  .hero div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 15px !important;
  }
  
  /* 市場課題カード */
  .card[style*="padding-top: 200px"] {
    padding-top: 140px !important;
  }
  
  .card[style*="padding-top: 200px"] > div[style*="height: 180px"] {
    height: 120px !important;
  }
  
  /* 数値表示 */
  .card span[style*="font-size: 56px"] {
    font-size: 38px !important;
  }
  
  .card h3[style*="font-size: 18px"] {
    font-size: 14px !important;
  }
  
  .card h4[style*="font-size: 24px"] {
    font-size: 18px !important;
  }
  
  .card p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  
  /* サービスカード画像 */
  .card > div[style*="height: 200px"] {
    height: 160px !important;
  }
  
  /* セクション余白 */
  section {
    padding: 50px 0 !important;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* カード余白 */
  .card {
    padding: 20px;
  }
  
  /* ヘッダー高さ調整 */
  header {
    padding: 15px 0;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .logo img {
    height: 50px !important;
  }
}