/* ============================================================
   漫画ページ用ヘッダー
   左:ロゴ(リレーションズのトップへ) / 中央:AIネイティブHP / 右:先行体験のご登録
   ============================================================ */

html { scroll-padding-top: 92px; }

.rj-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
  width: 100%;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e7dfd2;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 400;
  line-height: 1.6;
  color: #2a3442;
}
.rj-header *, .rj-header *::before, .rj-header *::after { box-sizing: border-box; }
.rj-header a { text-decoration: none; font-weight: 400; }

/* 3つを「左・中央・右」に並べる */
.rj-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.rj-logo { justify-self: start; display: inline-flex; align-items: center; }
.rj-logo img { display: block; height: 34px; width: auto; max-width: none; }

/* 中央の「AIネイティブHP」(AIネイティブHPページと同じフォント。押すとAIネイティブHPページへ) */
.rj-header .rj-title { justify-self: center; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; font-size: 20px; font-weight: 900; letter-spacing: .06em; color: #1E2B33; white-space: nowrap; transition: color .25s; }
.rj-header .rj-title:hover { color: #0B7A5F; }
.rj-header .rj-title:focus-visible { outline: 3px solid #da6b35; outline-offset: 4px; border-radius: 4px; }

.rj-cta { justify-self: end; border: 1.5px solid #a3282f; color: #a3282f; font-size: 14px; letter-spacing: .1em; padding: 8px 24px; border-radius: 999px; white-space: nowrap; background: #fff; transition: background .25s, color .25s; }
.rj-cta:hover { background: #a3282f; color: #fff; }

/* スマホ:1行目に「ロゴ」と「ボタン」、2行目に中央の「AIネイティブHP」 */
@media (max-width: 600px) {
  html { scroll-padding-top: 100px; }
  .rj-inner { height: auto; padding: 8px 16px 6px; grid-template-columns: 1fr auto; grid-template-areas: "logo cta" "title title"; row-gap: 4px; }
  .rj-logo { grid-area: logo; }
  .rj-logo img { height: 24px; }
  .rj-cta { grid-area: cta; font-size: 12px; padding: 6px 14px; letter-spacing: .06em; }
  .rj-header .rj-title { grid-area: title; width: 100%; text-align: center; font-size: 15px; letter-spacing: .1em; padding-top: 4px; border-top: 1px solid #e7dfd2; }
}
