/* ================================================================
   recruit_magazine.css
   浅田×近藤 対談コンテンツ (recruit01〜03.html) 専用スタイル
================================================================ */

/* ── PAGE HERO ── */
.chat-page-hero {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(20, 20, 30, 0.58) 0%,
      rgba(229, 9, 20, 0.22) 100%
    ),
    url('../images/hero_tech_bg.jpg') center / cover no-repeat;
}

.chat-page-hero::before {
  content: 'CAREER';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(80px, 18vw, 160px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.12em;
  line-height: 1;
}

.chat-hero-inner {
  position: relative;
  z-index: 1;
}

.chat-series-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 5px 16px;
  margin-bottom: 20px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.chat-hero-main-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  max-width: 720px;
  margin: 0 auto 16px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.chat-hero-subtitle {
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.60);
}

.chat-hero-chapter {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--main-color);
  background: #fff;
  padding: 5px 20px;
  margin-top: 4px;
}

/* ── CHAPTER TAB NAV ── */
.chapter-nav-strip {
  display: block; /* style.css の nav{display:none} を上書き */
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* チェックボックス本体は非表示（ラベルクリックで操作） */
.chapter-nav-check {
  display: none;
}

/* ── ラベル（スマホのアコーディオントグル） ── */
.chapter-nav-toggle {
  display: flex;
  width: 100%;
  padding: 13px 20px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--main-color);
  gap: 8px;
  user-select: none;
}

.chapter-nav-toggle span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.65;
  margin-right: 2px;
}

.chapter-nav-toggle::after {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s ease;
}

/* チェック時: 矢印を上向きに */
.chapter-nav-check:checked ~ .chapter-nav-toggle::after {
  transform: rotate(225deg) translateY(1px);
}

/* ── リスト（スマホ: デフォルト非表示） ── */
.chapter-nav-strip-inner {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}

/* チェック時: リストを表示 */
.chapter-nav-check:checked ~ .chapter-nav-strip-inner {
  display: flex;
}

/* ── リストアイテム ── */
.chapter-nav-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  border-left: 3px solid transparent;
  white-space: normal;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.chapter-nav-strip-item:hover { color: var(--main-color); }

.chapter-nav-strip-item.active {
  color: var(--main-color);
  border-left-color: var(--main-color);
  background: rgba(var(--main-rgb), 0.03);
}

.chapter-nav-strip-item span {
  display: inline;
  font-size: 9px;
  letter-spacing: 0.12em;
  opacity: 0.65;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── PC（601px以上）: ラベル非表示・横並びタブ ── */
@media (min-width: 601px) {
  .chapter-nav-strip { overflow-x: auto; }

  .chapter-nav-toggle { display: none; }

  /* PC: チェック状態によらず常に表示（詳細度 0,2,0 でスマホの 0,1,0 を上書き） */
  .chapter-nav-strip .chapter-nav-strip-inner {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-width: max-content;
    padding: 0 48px;
    border-top: none;
  }

  .chapter-nav-strip-item {
    flex: 1;
    min-width: max-content;
    width: auto;
    padding: 14px 24px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    border-bottom: 3px solid transparent;
    border-left: none;
    white-space: nowrap;
    background: none;
  }

  .chapter-nav-strip-item.active {
    border-bottom-color: var(--main-color);
    border-left: none;
    background: none;
  }

  .chapter-nav-strip-item span {
    display: block;
    margin-bottom: 0;
    margin-right: 0;
  }
}

/* ── MAIN CONTENT WRAPPER ── */
.chat-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* ── CHAT THREAD ── */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-bubble-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.chat-bubble-wrap.right {
  flex-direction: row-reverse;
}

/* ── AVATAR ── */
.chat-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-sec-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-avatar.kondou {
  background: rgba(var(--main-rgb), 0.08);
  color: var(--main-color);
}

/* ── BUBBLE CONTENT ── */
.chat-bubble-content {
  max-width: calc(100% - 116px);
}

.chat-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
  letter-spacing: 0.06em;
}

.chat-bubble-wrap.right .chat-name {
  text-align: right;
}

.chat-bubble {
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.85;
  word-break: break-word;
}

.chat-bubble-wrap.left .chat-bubble {
  background: var(--bg-sec-color);
  color: var(--text-color);
  border-radius: 2px 16px 16px 16px;
  border-left: 3px solid rgba(0, 0, 0, 0.06);
}

.chat-bubble-wrap.right .chat-bubble {
  background: rgba(var(--main-rgb), 0.07);
  color: var(--text-color);
  border-radius: 16px 2px 16px 16px;
  border-right: 3px solid rgba(var(--main-rgb), 0.22);
}

/* ── SUMMARY BOX ── */
.chat-summary-box {
  margin-top: 52px;
  padding: 32px 36px;
  background: var(--bg-sec-color);
  border-left: 4px solid var(--main-color);
  position: relative;
}

.chat-summary-box::before {
  content: 'SUMMARY';
  position: absolute;
  top: -11px;
  left: 32px;
  background: var(--main-color);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 3px 12px;
}

.chat-summary-box p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-color);
}

.chat-summary-box p + p {
  margin-top: 12px;
}

/* ── VISUALIZATION IMAGE ── */
.chat-visualization {
  margin-top: 36px;
  text-align: center;
}

.chat-visualization img {
  max-width: 100%;
  height: auto;
}

/* ── CHAPTER PAGINATION ── */
.chapter-pagination {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.chapter-pager-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 14px 22px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  line-height: 1.4;
}

.chapter-pager-link:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  background: rgba(var(--main-rgb), 0.03);
}

.chapter-pager-link .pager-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 3px;
}

.chapter-pager-link.next {
  text-align: right;
}

.chapter-back-to-recruit {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chapter-back-to-recruit:hover {
  color: var(--main-color);
}

/* ── CTA BOX (CHAPTER 3 末尾) ── */
.chapter-cta-box {
  margin-top: 64px;
  padding: 48px 32px;
  background: var(--main-color);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.chapter-cta-box::before {
  content: 'JOIN US';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(48px, 12vw, 96px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.12em;
}

.chapter-cta-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.chapter-cta-box p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 28px;
  line-height: 1.75;
  position: relative;
}

.chapter-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--main-color);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 15px 40px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  position: relative;
}

.chapter-cta-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* PC: sp-br は非表示 */
.sp-br { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .sp-br { display: block; }

  .chat-page-hero {
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 48px;
  }

  .chat-hero-subtitle {
    padding: 0 20px;
  }

  .chat-bubble-content {
    max-width: calc(100% - 60px);
  }

  .chat-avatar {
    width: 60px;
    height: 60px;
    font-size: 16px;
  }

  .chat-bubble {
    padding: 11px 14px;
    font-size: 0.85rem;
  }

  .chat-summary-box {
    padding: 28px 20px;
  }

  .chapter-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .chapter-pager-link {
    justify-content: center;
  }

  .chapter-cta-box {
    padding: 36px 20px;
  }
}
