/* ===========================================
   AiRaise - 生成AI研修サイト スタイルシート
   =========================================== */

/* リセットと基本設定 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: hsl(220, 40%, 20%);
  --primary-foreground: #ffffff;
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: hsl(220, 40%, 20%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

/* コンテナ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ヘッダー */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  z-index: 50;
  border-bottom: 1px solid #f3f4f6;
}

.header-inner {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--primary);
}

.header-cta {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  background-color: var(--primary);
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.header-cta:hover {
  background-color: hsl(220, 40%, 15%);
}

@media (min-width: 768px) {
  nav {
    display: flex;
  }
}

/* ヒーローセクション */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 50%, #1e293b 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 40% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding: 6rem 0;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: white;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: #d1d5db;
  margin-top: 2rem;
  letter-spacing: 0.05em;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #0f172a;
  background-color: white;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.hero-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #d1d5db;
  font-weight: 300;
}

.hero-feature svg {
  width: 20px;
  height: 20px;
  color: white;
  flex-shrink: 0;
}

.hero-image {
  display: none;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .hero-features {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .hero-image {
    display: block;
  }
}

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

.section-title {
  font-size: 1.875rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }

  section {
    padding: 8rem 0;
  }
}

/* 研修概要セクション */
.overview {
  background: linear-gradient(to bottom, #f9fafb, white);
}

.overview-content {
  max-width: 900px;
  margin: 0 auto;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.overview-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.overview-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 特徴カード */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: linear-gradient(135deg, #f9fafb, white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}

.feature-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-card-inner {
  display: flex;
  gap: 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .feature-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* 講師セクション */
.instructor {
  margin-top: 4rem;
}

.instructor h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.instructor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.instructor-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.instructor-quote {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.instructor-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.instructor-highlight {
  padding-left: 1.5rem;
  border-left: 4px solid rgba(37, 99, 235, 0.3);
}

.instructor-highlight p {
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .instructor-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* カリキュラムセクション */
.curriculum {
  background: white;
}

/* タブ */
.tabs-container {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.tabs-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: var(--muted);
  padding: 0.25rem;
  border-radius: 9999px;
}

.tab-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-button.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.tab-button svg {
  width: 24px;
  height: 24px;
}

.tab-button span {
  display: none;
}

@media (min-width: 768px) {
  .tab-button span {
    display: inline;
  }
}

/* タブパネル */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .curriculum-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

/* コースカード */
.course-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: fit-content;
}

.course-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.course-icon {
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.course-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 9999px;
}

.course-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.course-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.course-info {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.course-info p {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.course-features h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.course-features ul {
  list-style: none;
}

.course-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.course-features li svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* カリキュラム詳細 */
.curriculum-details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.curriculum-details h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.curriculum-module {
  background: var(--muted);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.curriculum-module:last-child {
  margin-bottom: 0;
}

.curriculum-module h5 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.curriculum-module > p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.curriculum-module ul {
  list-style: none;
}

.curriculum-module li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.curriculum-module li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* FAQセクション */
.faq {
  background: #f9fafb;
}

.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--muted-foreground);
}

/* お問い合わせセクション */
.contact {
  background: white;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group label .required {
  color: #ef4444;
  margin-left: 0.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--input);
  border-radius: 0.5rem;
  background: var(--background);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  background: var(--primary);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-btn:hover {
  background: hsl(220, 40%, 15%);
}

/* フッター情報セクション */
.footer-info {
  background: #f9fafb;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.footer-section li {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* フッター */
footer {
  background: #111827;
  color: white;
  padding: 3rem 0;
  text-align: center;
}

footer p {
  font-size: 0.875rem;
}

/* ユーティリティ */
.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--muted-foreground);
}

.hidden {
  display: none;
}

@media (min-width: 768px) {
  .md\:block {
    display: block;
  }
}
