/* ==================== ベースデザイン ==================== */
:root {
  /* メインカラー */
  --primary-dark: #121212;
  --primary-medium: #222222;
  --primary-light: #333333;
  
  /* アクセントカラー */
  --accent-blue: #00A8FF;
  --accent-pink: #FF2D76;
  --accent-purple: #7E44FF;
  
  /* ニュートラルカラー */
  --neutral-white: #FFFFFF;
  --neutral-off-white: #F7F7F7;
  --neutral-light-gray: #E0E0E0;
  --neutral-gray: #999999;
  --neutral-dark-gray: #555555;
  
  /* フォントファミリー */
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Montserrat', sans-serif;
}

/* ベースリセット & HTML設定 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-jp);
  background-color: var(--primary-dark);
  color: var(--neutral-white);
  line-height: 1.5;
  overflow-x: hidden;
}

/* リンクスタイル */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-blue);
}

/* ボタンスタイル */
.btn-primary {
  display: inline-block;
  background: linear-gradient(145deg, var(--accent-blue), var(--accent-purple));
  color: var(--neutral-white);
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
  color: var(--neutral-white);
}

/* 背景パターン */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
  opacity: 1;
  z-index: -1;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(126, 68, 255, 0.05) 1%, transparent 7%),
    radial-gradient(circle at 75% 75%, rgba(0, 168, 255, 0.05) 1%, transparent 7%),
    radial-gradient(circle at 50% 50%, rgba(255, 45, 118, 0.05) 1%, transparent 7%);
  background-size: 100px 100px, 120px 120px, 80px 80px;
  background-position: 0 0, 20px 20px, -30px -30px;
  opacity: 0.7;
}

/* ==================== ヘッダースタイル ==================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 0;
  background-color: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: all 0.3s ease;
}

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

.logo-container {
  display: flex;
  align-items: center;
}

.company-logo {
  height: 50px;
  width: auto;
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 0.3rem 0;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* ==================== ヒーローセクション ==================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 8rem 2rem 5rem;
  background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.9)), url('');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
  position: relative;
  max-width: 900px;
  z-index: 2;
}

.hero h1 {
  font-family: var(--font-en);
  font-size: 4.5rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 1rem;
  letter-spacing: 0.05em;
  background: linear-gradient(to right, var(--accent-blue), var(--accent-pink), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.hero h1 span {
  display: block;
  font-size: 3.5rem;
}

.hero-tagline {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  color: var(--neutral-light-gray);
}

.hero-c {
  font-size: 0.8rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  color: var(--neutral-dark-gray);
}

.hero-cta {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* ==================== セクションスタイル ==================== */
section {
  padding: 5rem 2rem;
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--neutral-gray);
}

/* ==================== エージェントカード ==================== */
.agents-section {
  background-color: var(--primary-medium);
  position: relative;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.agent-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.agent-card-inner {
  position: relative;
  background-color: var(--primary-light);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.agent-image-container {
  overflow: hidden;
  height: 360px;
  position: relative;
}

.agent-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.agent-info {
  padding: 1.5rem;
  text-align: left;
  position: relative;
}

.agent-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: var(--neutral-white);
}

.agent-name-jp {
  font-size: 0.9rem;
  color: var(--neutral-gray);
  font-weight: 400;
}

.agent-short-desc {
  color: var(--neutral-light-gray);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.agent-tag {
  display: inline-block;
  background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
  color: var(--neutral-white);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.agent-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 18, 18, 0), rgba(18, 18, 18, 0.8) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.view-profile {
  background: linear-gradient(145deg, var(--accent-blue), var(--accent-purple));
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.agent-card:hover .agent-image {
  transform: scale(1.05);
}

.agent-card:hover .agent-overlay {
  opacity: 1;
}

.agent-card:hover .view-profile {
  transform: translateY(0);
}

/* ==================== プロフィールモーダル ==================== */
.profile-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.profile-modal-container.active {
  opacity: 1;
  visibility: visible;
}

.profile-modal {
  background: var(--primary-medium);
  border-radius: 8px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: scale(0.9) translateY(30px);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.profile-modal-container.active .profile-modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--neutral-white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.profile-content {
  padding: 0 1rem;
}

/* プロフィールコンテンツのスタイルは、JavaScriptから挿入される内容に合わせて調整 */

/* ==================== フッタースタイル ==================== */
footer {
  background-color: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-logo {
  margin-bottom: 2rem;
}

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

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

.footer-nav h4,
.footer-social h4 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--neutral-white);
}

.footer-nav ul,
.footer-social ul {
  list-style: none;
}

.footer-nav ul li,
.footer-social ul li {
  margin-bottom: 0.8rem;
}

.footer-nav ul li a,
.footer-social ul li a {
  color: var(--neutral-gray);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover,
.footer-social ul li a:hover {
  color: var(--accent-blue);
}

.footer-social ul li a i {
  margin-right: 0.5rem;
}

.footer-bottom {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--neutral-gray);
}

/* ==================== レスポンシブデザイン ==================== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }
  
  .hero h1 span {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  nav ul li {
    margin-left: 1.5rem;
  }
  
  .hero {
    padding: 6rem 1.5rem 3rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero h1 span {
    font-size: 2.5rem;
  }
  
  .hero-tagline {
    font-size: 1.2rem;
  }
  
  .agents-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 0.7rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero h1 span {
    font-size: 2rem;
  }
  
  .hero-tagline {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .agents-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .profile-modal {
    padding: 1.5rem;
  }
}