/* =================================
   ベース設定・リセット
   ================================= */
* {
  box-sizing: border-box;
}

body {
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 191, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 191, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(240, 248, 255, 0.8) 0%, transparent 50%),
    linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 25%, #ffffff 50%, #f0f8ff 75%, #e6f3ff 100%);
  background-size: 800px 800px, 600px 600px, 400px 400px, 100% 100%;
  background-attachment: fixed;
  color: #111;
  margin: 0;
  padding: 0;
  position: relative;
  overflow-x: hidden;
  text-align: left;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(0,191,255,0.02) 1px, transparent 1px),
    radial-gradient(circle at 25% 25%, rgba(0, 191, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px, 60px 60px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
  animation: textureMove 60s linear infinite;
}

@keyframes textureMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

/* =================================
   プロフィール画像
   ================================= */
.profile-img img {
  width: 700px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .profile-img img {
    width: 100%;
  }
}

/* =================================
   メインコンテンツエリア
   ================================= */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 24px; /* 80px → 24pxに変更 */
  position: relative;
  z-index: 2;
}

/* =================================
   目次
   ================================= */
.toc-container {
  max-width: 600px;
  margin: 0 auto 40px auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #e1e8ed;
}

.toc-list {
  padding-left: 0;
  counter-reset: item;
  list-style: none;
}

.toc-item {
  display: block;
  margin-bottom: 5px;
  padding-left: 30px;
  position: relative;
  line-height: 1.6;
}

.toc-item:before {
  content: counter(item) ".";
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: #3498db;
}

.toc-link {
  color: #34495e;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.toc-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* =================================
   チーム情報エリア
   ================================= */
.team-info {
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.08) 0%, rgba(0, 191, 255, 0.03) 100%);
  border: 1px solid rgba(0, 191, 255, 0.15);
  border-left: 4px solid #00bfff;
  padding: 24px;
  margin-top: 32px;
  margin-bottom: 32px;
  box-shadow: 
    0 4px 20px rgba(0, 191, 255, 0.08),
    0 1px 6px rgba(0, 191, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.team-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.02) 0%, transparent 50%, rgba(0, 191, 255, 0.02) 100%);
  pointer-events: none;
}

.team-info > * {
  position: relative;
  z-index: 1;
}

.team-info h2 {
  color: #00bfff;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 28px;
}

.team-info > p {
  color: #111;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* =================================
   コンテンツカード
   ================================= */
.content-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 191, 255, 0.08);
  margin: 40px 0;
  padding: 40px;
  box-shadow: 
    0 4px 20px rgba(0, 191, 255, 0.05),
    0 1px 6px rgba(0, 191, 255, 0.03);
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.content-card h2 {
  color: #00bfff;
  margin-bottom: 24px;
  margin-top: 40px;
  font-weight: 700;
  font-size: 24px;
  padding-left: 20px;
  padding-bottom: 12px;
  position: relative;
  border-bottom: 2px solid #e1f4fd;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #00bfff, #46b6da);
  border-radius: 2px;
}

.content-card h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20px;
  width: 60px;
  height: 2px;
  background: #00bfff;
  border-radius: 1px;
}

.content-card p {
  color: #111;
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-card ul {
  color: #111;
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 20px;
}

.content-card li {
  margin-bottom: 8px;
}

.gene-image {
  width: calc(100% + 40px);
  max-width: none;
  height: auto;
  margin: 32px -20px;
  display: block;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

.scroll_up {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* =================================
   ctaボタン
   ================================= */
.cta-button {
  text-align: center;
}

.cta-button a {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 400px;
  max-width: 90%;
  height: 60px;
  margin-top: 2rem;
  border: 1px solid #fff;
  border-radius: 100px;
  box-shadow: 0 3px 6px #999;
  background-color: #C9A84C;
  background-image: linear-gradient(to right, #B8965A 0%, #D4B896 50%, #A0784A 100%);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
}

.cta-button a::before {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background-image: linear-gradient(130deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 75%);
  transition: 0.8s;
}

.cta-button a:hover::before {
  left: 100%;
}

/* =================================
   本文リンク
   ================================= */
.team-info a,
.content-card p a,
.content-card li a {
  color: #3AAEAB;
  text-decoration: underline;
}

/* =================================
   chatGENE for Sportsセクション
   ================================= */
.chatgene-section {
  background: linear-gradient(135deg, rgba(58, 174, 171, 0.08) 0%, rgba(58, 174, 171, 0.03) 100%);
  border: 1px solid rgba(58, 174, 171, 0.12);
  border-left: 2px solid #3AAEAB;
  margin: 40px 0;
  padding: 32px 28px;
  box-shadow: 
    0 6px 25px rgba(58, 174, 171, 0.08),
    0 2px 10px rgba(58, 174, 171, 0.05);
}

.chatgene-section h2 {
  color: #3AAEAB;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 20px;
  border: none;
  padding: 0;
}

.chatgene-section h2::before,
.chatgene-section h2::after {
  display: none;
}

.chatgene-section p {
  color: #111;
  font-weight: 400;
}

.chatgene-section ul li {
  color: #111;
  font-weight: 400;
}

/* =================================
   表示/非表示クラス
   ================================= */
.sp-only { 
  display: none; 
}

.pc-only { 
  display: block; 
}

/* =================================
   16:9アスペクト比対応（古いブラウザ用）
   ================================= */
@supports not (aspect-ratio: 1) {
  .image-item::before {
    content: "";
    display: block;
    padding-top: 56.25%;
  }
  
  .image-item img {
    position: absolute;
    inset: 0;
  }
}

/* =================================
   レスポンシブ対応
   ================================= */
@media (max-width: 768px) {
  main { 
    padding: 20px 20px 0 20px;
    padding-top: 70px;
    margin: 0 auto; 
  }

  .cta-button a {
    font-size: 14px;
    height: auto;
    padding: 1em 1.5em;
    line-height: 1.4;
  }
}