/* ========== Global Reset ========== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* ========== Base (共通デフォルト。index/aboutme 用) ========== */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, -apple-system,
    sans-serif;
  background: #f9f9f9;
  color: #111827;
}

section {
  padding: 20px;
}

/* ========== 共通ヘッダー / ナビ（全ページ共通） ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(2, 6, 23, 0.98);
  backdrop-filter: blur(14px);
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 26px;
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s ease;
}

.nav a:hover {
  color: #38bdf8;
}

.nav a.active {
  color: #38bdf8;
  font-weight: 600;
}

/* ========== index.html 用 ========== */

.index-page main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

#index-page,
.index-page {
  position: relative;
  overflow: hidden;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  padding: 0 16px 40px;
}
/* ========== INDEX / LANDING (新) ========== */

body.index-page {
    background: #020817;
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  }
  
  .landing {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden; /* 横はカット、縦はスクロールOK */
  }
  
  /* 背景 */
  
  .bg-grid {
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(148, 163, 253, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(148, 163, 253, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.9;
    z-index: -3;
  }
  
  .bg-glow {
    position: fixed;
    inset: -20%;
    background:
      radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.16), transparent),
      radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.16), transparent),
      radial-gradient(circle at 50% 90%, rgba(15, 23, 42, 0.9), transparent);
    mix-blend-mode: screen;
    z-index: -2;
    pointer-events: none;
  }
  
  .content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 18px 40px;
  }
  
  /* HERO */
  
  .hero {
    padding: 32px 0 8px;
    max-width: 720px;
  }
  
  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #38bdf8;
    margin: 0 0 4px;
  }
  
  .hero h1 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 600;
    color: #f9fafb;
    line-height: 1.3;
  }
  
  .hero-highlight {
    background: linear-gradient(to right, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    color: transparent;
  }
  
  .hero-copy {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.9;
    color: #9ca3af;
  }
  
  .hero-meta {
    margin-top: 4px;
    font-size: 11px;
    color: #6b7280;
  }
  
  .hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 10px;
    color: #6b7280;
  }
  
  .hero-scroll .scroll-line {
    width: 32px;
    height: 1px;
    background: #4b5563;
  }
  
  /* FEATURE CARDS */
  
  .feature-grid {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
  }
  
  .feature-item {
    position: relative;
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: radial-gradient(circle at top left, rgba(56,189,248,0.1), transparent),
                rgba(6, 8, 20, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.98);
    cursor: pointer;
    transition: 0.22s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 1);
    border-color: #38bdf8;
  }
  
  .feature-label {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #1f2937;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.14em;
  }
  
  .feature-media {
    margin-top: 10px;
  }
  
  .feature-item img {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid #111827;
  }
  
  .feature-item h2 {
    margin: 6px 0 0;
    font-size: 16px;
    color: #e5e7eb;
  }
  
  .feature-item p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.7;
  }
  
  .feature-foot {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #38bdf8;
  }
  
  .feature-foot .arrow {
    font-size: 12px;
  }
  
  /* Responsive */
  
  @media (max-width: 768px) {
    .content-wrapper {
      padding: 26px 14px 26px;
    }
  
    .hero h1 {
      font-size: 26px;
    }
  
    .feature-grid {
      gap: 14px;
    }
  }

/* ========== aboutme.html (AIページ) のチャットまわり ========== */

#chatBox {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  padding: 10px;
}

#questionForm {
  display: flex;
  margin-top: 16px;
  justify-content: center;
  gap: 8px;
}

#userQuestion {
  flex-grow: 1;
  max-width: 60%;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
}

button {
  background-color: #007bff;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

button:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

#chatInterface {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 24px auto;
  gap: 10px;
}

#inputArea {
  display: flex;
  width: 100%;
  max-width: 700px;
  justify-content: center;
  gap: 8px;
}

#chatInput {
  flex-grow: 1;
  border-radius: 20px;
  border: 1px solid #d1d5db;
  padding: 10px 16px;
  font-size: 14px;
}

#fileDropArea {
  border: 2px dashed #cbd5f5;
  padding: 14px;
  border-radius: 10px;
  font-size: 13px;
  color: #4b5563;
  background: #f9fafb;
}

#generateChatbot {
  margin-top: 8px;
}

/* ========== Career Page 専用 ========== */

body.career-page {
  background: #020817;
  color: #e5e7eb;
}

.career-page .page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 18px 40px;
}

.career-page .page-header h1 {
  margin: 0 0 4px;
  font-size: 32px;
  font-weight: 600;
}

.career-page .page-header .tagline {
  margin: 0 0 10px;
  font-size: 14px;
  color: #9ca3af;
}

.career-page .contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 14px;
}

.career-page .contact-line a {
  color: #9ca3af;
  text-decoration: none;
}

.career-page .contact-line a:hover {
  color: #38bdf8;
}

.career-page .lang-toggle {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 16px;
}

.career-page .lang-toggle button {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: transparent;
  color: #9ca3af;
  font-size: 10px;
  cursor: pointer;
  transition: 0.18s ease;
}

.career-page .lang-toggle button.active,
.career-page .lang-toggle button:hover {
  background: #38bdf8;
  color: #020817;
  border-color: #38bdf8;
}

.career-page .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.career-page .stat-card {
  padding: 10px 12px;
  border-radius: 14px;
  background: #020817;
  border: 1px solid #111827;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

.career-page .stat-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

.career-page .stat-value {
  font-size: 18px;
  font-weight: 600;
  margin: 2px 0;
}

.career-page .stat-note {
  font-size: 10px;
  color: #9ca3af;
}

.career-page .resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr);
  gap: 18px;
  margin-bottom: 22px;
}

.career-page .resume-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.career-page .resume-block {
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: #020817;
  border: 1px solid #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.95);
}

.career-page .resume-block h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #e5e7eb;
}

.career-page .resume-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
  font-size: 12px;
  color: #d1d5db;
}

.career-page .resume-list li {
  margin-bottom: 8px;
}

.career-page .resume-list .meta {
  margin: 0;
  font-size: 10px;
  color: #9ca3af;
}

.career-page .resume-list .desc {
  margin: 2px 0 0;
}

.career-page .resume-list.compact li {
  margin-bottom: 4px;
}

.career-page .resume-list a {
  color: #38bdf8;
  text-decoration: none;
  font-size: 11px;
}

.career-page .resume-list a:hover {
  text-decoration: underline;
}

.career-page .tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10px;
}

.career-page .tags li {
  padding: 4px 8px;
  border-radius: 999px;
  background: #020817;
  border: 1px solid #111827;
  color: #9ca3af;
}

.career-page .cta-block {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #020817;
  border: 1px solid #111827;
  font-size: 10px;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.career-page .btn-link {
  text-decoration: none;
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #38bdf8;
  color: #020817;
  font-weight: 600;
  transition: 0.18s ease;
}

.career-page .btn-link:hover {
  box-shadow: 0 8px 18px rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

/* ========== Responsive ========== */

@media (max-width: 768px) {
  .content-wrapper {
    padding: 0 12px 28px;
  }

  #features {
    margin-top: 24px;
    padding: 14px;
  }

  .feature-item {
    flex: 1 1 100%;
    margin: 0;
  }

  .career-page .page {
    padding: 20px 12px 26px;
  }

  .career-page .resume-layout {
    grid-template-columns: 1fr;
  }

  .career-page .contact-line {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== AI Page (aboutme.html) ========== */
/* ========== AI Page (aboutme.html) ========== */

body.ai-page {
    background: #020817;
    color: #e5e7eb;
  }
  
  .ai-layout {
    max-width: 960px;
    margin: 0 auto;
    padding: 26px 18px 40px;
  }
  
  .ai-hero h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 600;
  }
  
  .ai-tagline {
    margin: 0 0 6px;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.7;
  }
  
  .ai-note {
    margin: 2px 0 14px;
    font-size: 11px;
    color: #6b7280;
  }
  
  .ai-chat-section {
    margin-top: 10px;
  }
  
/* チャットボックス本体はさっきのままでOK */
.ai-chat-box {
    width: 100%;
    height: 320px;
    padding: 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    overflow-y: auto;
    font-size: 13px;
    color: #111827;
  }
  
  /* 1行分のコンテナ */
  .ai-message {
    display: flex;
    margin-bottom: 8px;
  }
  
  /* ユーザー：右寄せ */
  .ai-message.user {
    justify-content: flex-end;
  }
  
  /* kAI：左寄せ */
  .ai-message.kai {
    justify-content: flex-start;
  }
  
  /* system：中央 */
  .ai-message.system {
    justify-content: center;
    font-size: 11px;
    color: #9ca3af;
  }
  
  /* 吹き出し本体 */
  .ai-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 14px;
    line-height: 1.5;
    font-size: 13px;
  }
  
  /* ユーザー吹き出し */
  .ai-bubble.user {
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 14px 14px 4px 14px;
    font-weight: 500;
  }
  
  /* kAI吹き出し */
  .ai-bubble.kai {
    background: #f3f4f6;
    color: #111827;
    border-radius: 14px 14px 14px 4px;
  }
  
  /* タイピング表示など */
  .ai-message.system {
    width: 100%;
    text-align: center;
    color: #9ca3af;
    font-size: 11px;
    margin: 4px 0;
  }
  
  /* 入力フォームも白ベースに合わせる */
  .ai-form {
    margin-top: 10px;
    display: flex;
    gap: 8px;
  }
  
  .ai-form input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
  }
  
  .ai-form input::placeholder {
    color: #9ca3af;
  }
  
  .ai-form button {
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: #38bdf8;
    color: #020817;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.18s ease;
  }
  
  .ai-form button:hover {
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
  }
  
  .ai-hints {
    margin-top: 8px;
    font-size: 10px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .hint-btn {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    cursor: pointer;
    transition: 0.18s ease;
  }
  
  .hint-btn:hover {
    background: #eff6ff;
    color: #1f2937;
  }
  
  .ai-coming-soon {
    margin-top: 26px;
    padding: 14px 14px 10px;
    border-radius: 14px;
    background: #020817;
    border: 1px solid #111827;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.7;
  }
  
  .ai-coming-soon h2 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #e5e7eb;
  }