/*
 * AI キャリアチャット LP（page-ai-career-chat.php）
 * サイトの基調（css/app.css）に合わせる: Noto Sans・メイン #37b8d4・濃い #0096c7・本文 #1a1a1a・淡い #a3dbea。
 * 既存 CSS と衝突させないため、クラスはすべて ail- 接頭辞。
 */
.ail {
  color: #1a1a1a;
  font-family: Noto Sans, Noto Sans CJK JP, sans-serif;
  line-height: 1.8;
}

.ail-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ファーストビュー */
.ail-hero {
  overflow: hidden; /* 会話イメージの背景装飾がはみ出して横スクロールが出ないように */
  padding: 56px 0 48px;
  border-bottom: 1px solid #e6f2f5;
  background: #f4fafc;
}
.ail-eyebrow {
  margin: 0 0 12px;
  color: #0096c7;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}
.ail-title {
  margin: 0 0 20px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
}
.ail-title-accent { color: #37b8d4; }
/* スマホだけ「あなたのキャリアが／見つかる。」で改行する（自然に折り返すと語の途中で切れるため） */
.ail-sp-br { display: none; }
.ail-lead {
  max-width: 760px;
  margin: 0 0 28px;
  font-size: 16px;
}
.ail-note {
  margin: 12px 0 0;
  color: #555;
  font-size: 13px;
}

/* ファーストビュー右側の会話イメージ（装飾・aria-hidden） */
.ail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.ail-hero-visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
}
/* 背景の淡いブロブと円弧線 */
.ail-hero-visual::before {
  position: absolute;
  inset: -8% -10% -4% -6%;
  z-index: 0;
  border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%;
  background: radial-gradient(ellipse at 60% 40%, #d8eff6 0%, #e6f5f9 55%, rgba(230, 245, 249, 0) 72%);
  content: "";
}
.ail-hero-visual::after {
  position: absolute;
  top: 12%;
  left: -8%;
  z-index: 0;
  width: 116%;
  height: 72%;
  border: 1px solid #bfe5ef;
  border-radius: 50%;
  transform: rotate(-8deg);
  content: "";
}
.ail-mock,
.ail-mock-cards { position: relative; z-index: 1; }

.ail-mock {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 150, 199, .12);
}
.ail-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #37b8d4;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.ail-mock-dots { display: flex; gap: 5px; }
.ail-mock-dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.ail-mock-body { padding: 12px 18px 18px; }
.ail-mock-caption { margin: 0 0 8px; color: #888; font-size: 11px; text-align: right; }
.ail-mock-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ail-mock-row-user { justify-content: flex-end; }
.ail-mock-bubble {
  margin: 0;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
}
.ail-mock-row-user .ail-mock-bubble { background: #e3f4f9; }
.ail-mock-row-ai .ail-mock-bubble { background: #f2f4f5; }
.ail-mock-avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.ail-mock-avatar svg { width: 20px; height: 20px; }
.ail-mock-avatar-user { background: #a3dbea; fill: #fff; }
.ail-mock-avatar-ai { background: #e3f4f9; color: #0096c7; fill: #0096c7; }
.ail-mock-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px 44px; }
.ail-mock-chips span {
  padding: 4px 14px;
  border: 1px solid #a3dbea;
  border-radius: 999px;
  color: #0096c7;
  font-size: 12px;
}
.ail-mock-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 1px solid #e6eef1;
  border-radius: 999px;
  color: #999;
  font-size: 12px;
}
.ail-mock-send {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0096c7;
  fill: #fff;
}
.ail-mock-send svg { width: 16px; height: 16px; }

.ail-mock-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 12px 0;
}
.ail-mock-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 150, 199, .10);
  color: #0096c7;
}
.ail-mock-card svg { flex: none; width: 30px; height: 30px; }
.ail-mock-card div { flex: 1; min-width: 0; }
.ail-mock-card p { margin: 0 0 6px; color: #1a1a1a; font-size: 12px; font-weight: 700; }
.ail-mock-card i { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: #e6eef1; }
.ail-mock-card i + i { width: 60%; }

@media (max-width: 900px) {
  .ail-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ail-hero-visual { max-width: 420px; }
}

/* CTA（ページ内の登録・チャット領域へ移動） */
.ail-cta {
  display: inline-block;
  min-width: 260px;
  padding: 14px 28px;
  border-radius: 6px;
  background: #0096c7;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.ail-cta:hover,
.ail-cta:focus-visible { background: #007ba3; color: #fff; }
.ail-cta-secondary {
  margin-top: 8px;
  border: 2px solid #0096c7;
  background: #fff;
  color: #0096c7;
}
.ail-cta-secondary:hover,
.ail-cta-secondary:focus-visible { background: #eef8fb; color: #007ba3; }

/* 数字 */
.ail-stats { padding: 32px 0; }
.ail-stats-list {
  display: flex;
  max-width: 760px;
  justify-content: space-between;
  gap: 16px;
}
.ail-stat { flex: 1; text-align: center; }
.ail-stat-num {
  margin: 0;
  color: #0096c7;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}
.ail-stat-num span { margin-left: 2px; font-size: 14px; }
.ail-stat-label { margin: 4px 0 0; color: #555; font-size: 13px; }

/* セクション */
.ail-section { padding: 48px 0; }
.ail-section-muted { background: #f7f7f7; }
.ail-h2 {
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 4px solid #37b8d4;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}
.ail-h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.ail-section-lead { max-width: 760px; margin: 0 0 24px; }

.ail-features,
.ail-steps,
.ail-notes { margin: 0; padding: 0; list-style: none; }
.ail-feature {
  margin: 0 0 16px;
  padding: 20px;
  border: 1px solid #d9eef3;
  border-radius: 6px;
  background: #fff;
}
.ail-feature p,
.ail-step p { margin: 0; font-size: 15px; }

.ail-step {
  display: flex;
  gap: 16px;
  margin: 0 0 20px;
}
.ail-step-num {
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #37b8d4;
  color: #fff;
  font-weight: 700;
}

.ail-notes { max-width: 760px; margin-bottom: 28px; }
.ail-notes li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 1.2em;
  font-size: 14px;
}
.ail-notes li::before { position: absolute; left: 0; content: "・"; }
.ail-notes a,
.ail-consent a { color: #0096c7; text-decoration: underline; }

/* 登録・チャット領域 */
.ail-app {
  min-height: 200px;
  padding: 24px;
  border: 1px solid #d9eef3;
  border-radius: 6px;
  background: #fff;
}
.ail-auth-lead { margin: 0 0 4px; font-weight: 700; }
.ail-auth-sub { margin: 0 0 20px; color: #555; font-size: 13px; }
.ail-auth-step[hidden] { display: none; }
.ail-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.ail-input {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}
.ail-input-code { max-width: 200px; letter-spacing: .2em; }
.ail-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 14px;
  cursor: pointer;
}
.ail-consent input { flex: 0 0 auto; margin-top: 5px; }
.ail-turnstile { margin: 0 0 16px; }
.ail-code-lead { margin: 0 0 16px; }

/* ボタンは必ず間隔を取る（隣接させない） */
.ail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 0;
}
.ail-actions-sub { margin-top: 20px; }
.ail-btn {
  min-height: 48px;
  padding: 10px 20px;
  border: 2px solid #0096c7;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
.ail-btn-primary { background: #0096c7; color: #fff; }
.ail-btn-primary:hover { border-color: #007ba3; background: #007ba3; }
.ail-btn-secondary { background: #fff; color: #0096c7; }
.ail-btn-secondary:hover { background: #eef8fb; }
.ail-btn-link {
  min-height: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  color: #0096c7;
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
}
.ail-btn:disabled { opacity: .6; cursor: wait; }
.ail-btn:focus-visible,
.ail-cta:focus-visible,
.ail-input:focus-visible { outline: 3px solid #ab5700; outline-offset: 2px; }

.ail-msg { min-height: 1.5em; margin: 16px 0 0; color: #a52323; font-size: 14px; }
.ail-msg:empty { min-height: 0; }

.ail-chat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.ail-chat-limit { margin: 0; color: #555; font-size: 13px; }
.ail-notice {
  margin: 0 0 12px;
  padding: 12px 16px;
  border-left: 4px solid #d48a00;
  background: #fff8ea;
  font-size: 14px;
}
.ail-notice[hidden] { display: none; }
.ail-loading { margin: 0; color: #555; }

@media (max-width: 600px) {
  .ail-hero { padding: 40px 0 36px; }
  .ail-title { font-size: 28px; }
  .ail-sp-br { display: inline; }
  .ail-cta { display: block; width: 100%; min-width: 0; }
  .ail-mock-cards { display: none; }
  .ail-hero-visual::after { display: none; }
  .ail-mock-bubble { font-size: 12px; }
  .ail-stats-list { gap: 8px; }
  .ail-stat-num { font-size: 24px; }
  .ail-section { padding: 36px 0; }
  .ail-app { padding: 16px; }
  .ail-actions .ail-btn { flex: 1 1 100%; }
}

/* LP 専用ヘッダー（header-lp.php）: ロゴだけ。大きさは通常ヘッダーの .header-logo に揃える */
.ail-header {
  max-width: 1060px;
  margin: 0 auto;
  padding: 20px 20px 12px;
  box-sizing: border-box;
}
.ail-header-logo { display: inline-block; }
.ail-header-logo img { display: block; width: 220px; height: 30px; }
@media (max-width: 600px) {
  .ail-header { padding: 14px 16px 10px; }
  .ail-header-logo img { width: 180px; height: auto; }
}
