/* ===========================
   AI Training Page
   =========================== */

/* ---- Hero ---- */
.ait-hero {
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 7vw, 7rem);
  position: relative;
  overflow: hidden;
}

.ait-hero::after {
  content: 'AI Training';
  position: absolute;
  right: -1rem;
  bottom: -2rem;
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}

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

.ait-hero__en {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.ait-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.ait-hero__lead {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.ait-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--color-white);
  color: var(--color-bg-dark);
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
}

.ait-hero__cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.ait-hero__img {
  border-radius: var(--radius-2xl, 1.5rem);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.ait-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- 強み（Features） ---- */
.ait-features {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--color-bg, #fafafa);
}

.ait-section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.ait-section-head__en {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted, #6b7280);
  margin-bottom: 0.875rem;
}

.ait-section-head__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ait-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ait-feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-2xl, 1.5rem);
  padding: 2rem;
  transition: box-shadow 0.25s, transform 0.2s;
}

.ait-feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.ait-feature-card__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-text-muted, #9ca3af);
  margin-bottom: 1rem;
}

.ait-feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ait-feature-card__text {
  font-size: 0.9rem;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.75;
}

/* ---- プログラム ---- */
.ait-programs {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--color-white);
}

.ait-program-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ait-program-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1.5rem;
  align-items: start;
  background: var(--color-bg, #fafafa);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-xl, 1rem);
  padding: 1.75rem 2rem;
  transition: box-shadow 0.2s;
}

.ait-program-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.ait-program-item__icon {
  width: 56px;
  height: 56px;
  background: var(--color-bg-dark);
  color: #fff;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ait-program-item__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ait-program-item__text {
  font-size: 0.9rem;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.75;
}

.ait-program-item__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.75em;
  border-radius: 2rem;
  background: var(--color-bg-dark);
  color: #fff;
  white-space: nowrap;
  align-self: center;
}

.ait-program-item__tag--light {
  background: var(--color-bg, #fafafa);
  color: var(--color-text-muted, #6b7280);
  border: 1px solid var(--color-border, #e5e7eb);
}

/* ---- 実績数字 ---- */
.ait-stats {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.ait-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.ait-stat__number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.ait-stat__label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}

/* ---- Flow ---- */
.ait-flow {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--color-bg, #fafafa);
}

.ait-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.ait-flow-steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(12.5% + 1.5rem);
  right: calc(12.5% + 1.5rem);
  height: 1px;
  background: var(--color-border, #e5e7eb);
  z-index: 0;
}

.ait-flow-step {
  text-align: center;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.ait-flow-step__circle {
  width: 4rem;
  height: 4rem;
  background: var(--color-bg-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.ait-flow-step__title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ait-flow-step__text {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.7;
}

/* ---- For whom ---- */
.ait-forwho {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--color-white);
}

.ait-forwho-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.ait-forwho-card {
  background: var(--color-bg, #fafafa);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-xl, 1rem);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.ait-forwho-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.ait-forwho-card__icon {
  width: 44px;
  height: 44px;
  background: var(--color-bg-dark);
  color: #fff;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.ait-forwho-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ait-forwho-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.75;
}

@media (max-width: 640px) {
  .ait-forwho-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Curriculum ---- */
.ait-curriculum {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--color-bg, #fafafa);
}

.ait-curri-wrap {
  max-width: 760px;
  margin: 0 auto;
}

/* Phase block */
.ait-phase {
  background: var(--color-white);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-xl, 1rem);
  padding: 1.75rem 2rem;
  margin-bottom: 1rem;
}

.ait-phase__header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.ait-phase__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--color-bg-dark);
  color: #fff;
  padding: 0.35em 0.8em;
  border-radius: 0.375rem;
  white-space: nowrap;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.ait-phase__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.ait-phase__sub {
  font-size: 0.8125rem;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.6;
}

.ait-phase__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ait-phase__list li {
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 0.5rem 0;
  border-top: 1px solid var(--color-border, #f3f4f6);
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  color: var(--color-text);
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
  max-width: 100%;
}

.ait-phase__list li::before {
  content: '—';
  color: var(--color-text-muted, #9ca3af);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ait-phase__list-sub-head {
  font-weight: 700 !important;
  color: var(--color-text) !important;
  margin-top: 0.25rem;
}

.ait-phase__list-sub {
  padding-left: 1rem !important;
  color: var(--color-text-muted, #6b7280) !important;
  font-size: 0.85rem !important;
}

/* Locked block */
.ait-locked-block {
  position: relative;
}

/* ダミーブロックのテキストをぼかす */
.ait-phase--dummy {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  -webkit-user-select: none;
  color: var(--color-text-muted, #6b7280);
}

/* グラデーションフェード（上部はクリア→下でホワイトに溶ける） */
.ait-locked-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(
    to bottom,
    rgba(250,250,250,0) 0%,
    rgba(250,250,250,0.9) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* ロックオーバーレイ */
.ait-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: linear-gradient(
    to bottom,
    rgba(250,250,250,0.5) 0%,
    rgba(250,250,250,0.95) 35%,
    rgba(250,250,250,1) 60%
  );
}

.ait-lock-card {
  background: var(--color-white);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius-2xl, 1.5rem);
  padding: 2.25rem 2.5rem;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  max-width: 380px;
  width: 100%;
  margin-top: 100px; /* グラデーションより下に */
}

.ait-lock-card__icon {
  width: 56px;
  height: 56px;
  background: var(--color-bg-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.ait-lock-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.ait-lock-card__text {
  font-size: 0.875rem;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.ait-lock-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-dark);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.ait-lock-card__btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .ait-hero__inner {
    grid-template-columns: 1fr;
  }
  .ait-hero__img {
    display: none;
  }
  .ait-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ait-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ait-flow-steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .ait-flow-steps::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .ait-feature-grid {
    grid-template-columns: 1fr;
  }
  .ait-program-item {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
  }
  .ait-program-item__tag {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.5rem;
  }
  .ait-flow-steps {
    grid-template-columns: 1fr;
  }
  .ait-phase {
    padding: 1.25rem 1rem;
  }
  .ait-curri-wrap {
    width: 100%;
    max-width: 100%;
  }
  .ait-phase__list li {
    flex-wrap: wrap;
  }
}
