@charset "UTF-8";
/* ===========================================
   infoQ キャラクター紹介ページ
   SP: Figma 937:14477 / PC: Figma 934:9180
   モバイルファースト（PC は min-width:1024px）
   =========================================== */

/* -------------------------------------------
   Design Tokens
   ------------------------------------------- */
:root {
  --teal: #00aba9;
  --pink: #d92980;
  --dark: #0f2322;
  --navy: #0b2257;
  --border: #d9ebe9;
  --bg-light: #f5fbfa;
  --bg-teal: #e1f5f4;
  --hero-green: #65bf8a;
  --content-width: 1160px;
  --cards-width: 1250px;
}

/* -------------------------------------------
   Reset / Base
   ------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  color: var(--dark);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ol {
  list-style: none;
}

/* page.ctp が出力する共通レイアウトヘッダー（ロゴ＋新規登録＋ログイン）を非表示にする。
   このページは独自の .global-nav を持つため、二重表示になるのを防ぐ。
   introduce01 は本番の共通CSS（style.css 等、リポジトリ管理外）で同様に非表示にしている。 */
.header-SP .header {
  display: none;
}

/* -------------------------------------------
   共通ボタン
   ------------------------------------------- */
.btn-pink,
.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  line-height: normal;
  white-space: nowrap;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.11));
}

.btn-pink {
  flex-shrink: 0;
  padding: 12px 24px;
  min-height: 53px;
  background: var(--pink);
  color: #fff;
}

/* SP は残り幅を埋める（Figma の px-67 は固定幅 146px に吸収されるため詰める） */
.btn-outline {
  flex: 1 0 0;
  min-width: 0;
  padding: 15px 8px;
  background: #fff;
  border: 3px solid var(--pink);
  color: var(--pink);
}

/* -------------------------------------------
   グローバルナビ
   ------------------------------------------- */
.global-nav {
  display: flex;
  justify-content: center;
  padding: 9px 0;
}

.global-nav .logo {
  width: 157px;
}

/* ===========================================
   Hero
   =========================================== */
.section-hero {
  background: var(--hero-green);
  padding-bottom: 16px;
}

/* パンくず：SP・PCとも背景イラスト（空）の上に重ねる。
   SPはカード左上に絶対配置、PCは通常フローで左寄せ */
.hero-breadcrumb {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  padding: 6px 16px;
  /* リボンまでの余白はカード幅に比例するため、文字も狭い端末では縮めて重なりを防ぐ */
  font-size: clamp(10px, 3.077vw, 12px);
}

.hero-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hero-breadcrumb li:first-child a {
  color: var(--teal);
  text-decoration: underline;
}

.hero-breadcrumb li + li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1f3332;
  font-weight: 500;
}

.hero-breadcrumb li + li::before {
  content: '›';
  color: var(--dark);
}

/* SP: 背景イラストを内包した固定比率のカード */
.hero-visual {
  position: relative;
  aspect-ratio: 390 / 353;
  background: #fff url(../images/character/hero-bg-scene.png) center / cover no-repeat;
  overflow: hidden;
}

/* SP背景は390px幅しかないため、それを超える帯域では高解像度のPC用背景に切り替える
   （タブレット幅で2.6倍に引き伸ばされてぼやけるのを防ぐ） */
@media (min-width: 640px) {
  .hero-visual {
    background-image: url(../images/character/hero-bg-scene-pc.png);
  }
}

/* Hero内の3要素はカード幅に比例配置しつつ、PC値を上限にして
   ブレークポイント(1024px)での見た目の飛びを防ぐ */
.hero-ribbon {
  position: absolute;
  left: 50%;
  top: 13.031%;
  width: 76.492%;
  max-width: 541px;
  margin: 0;
  transform: translateX(-50%);
}

.hero-lead {
  position: absolute;
  left: 50%;
  top: 27.478%;
  margin: 0;
  transform: translateX(-50%);
  color: var(--navy);
  font-weight: 700;
  /* 390px で 20px（Figma SP 値）。狭い端末では折り返しを防ぐため比例縮小し、
     広い帯域では PC 値の 32px で打ち止める */
  font-size: clamp(16px, 5.128vw, 32px);
  line-height: 1.4075;
  text-align: center;
  white-space: nowrap;
}

/* 3体＋ネームタグ＋影を1枚絵で配置（SP: 702x397 / PC: 1486x818） */
.hero-chars {
  position: absolute;
  left: 50%;
  top: 38.809%;
  width: 89.349%;
  max-width: 743px;
  transform: translateX(-50%);
}

.hero-chars img {
  width: 100%;
  aspect-ratio: 702 / 397;
}

/* SP幅を超える帯域でボタンが極端に横長になるのを防ぐ（Figma SP は 358px） */
.hero-buttons {
  display: flex;
  gap: 10px;
  max-width: 390px;
  margin: 12px auto 0;
  padding: 0 16px;
}

/* 360px 未満はボタン2つが横に収まらないため縦積みにする（横スクロール防止） */
@media (max-width: 359px) {
  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-pink,
  .hero-buttons .btn-outline,
  .cta-buttons .btn-pink,
  .cta-buttons .btn-outline {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* ===========================================
   キャラクター紹介
   =========================================== */
.section-characters {
  background: var(--bg-teal);
  padding: 40px 16px;
}

.section-characters .heading {
  margin-bottom: 16px;
  text-align: center;
}

.section-characters .heading .sub {
  display: block;
  color: var(--teal);
  font-size: 16px;
  font-weight: 700;
  line-height: 24.8px;
  letter-spacing: 0.56px;
}

.section-characters .heading .main {
  display: block;
  color: var(--dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 33.35px;
  letter-spacing: -0.54px;
}

.section-characters .lead {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 24px;
}

.character-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.character-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 12px 12px;
  background: #fff;
  border: 1.5px solid #fff;
  border-radius: 18px;
}

.character-card__copy {
  color: var(--dark);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

/* キャラ名はイラスト画像に含まれるため視覚的には隠し、
   見出し構造（h2 → h3）と読み上げ用テキストのみ残す */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.character-card__image {
  width: 100%;
}

.character-card__image img {
  margin-inline: auto;
}

/* カード内イラストはネームタグを含む1枚絵（SP/PC共通） */
.character-card--sabei  .character-card__image img { aspect-ratio: 701 / 595; }
.character-card--chosan .character-card__image img { aspect-ratio: 701 / 591; }
.character-card--kaito  .character-card__image img { aspect-ratio: 701 / 594; }

.character-card__table {
  width: 100%;
  border-radius: 9px;
  overflow: hidden;
}

.character-card__table > div {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.character-card__table dt {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  padding: 8px 10px;
  color: #000;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.character-card__table dd {
  flex: 1 0 0;
  min-width: 0;
  padding: 10px;
  color: #000;
  font-size: 14px;
  line-height: 1.7;
}

/* ===========================================
   「infoQ」とは
   =========================================== */
.section-about {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 16px;
}

.section-about .heading {
  margin-bottom: 24px;
  text-align: center;
}

.section-about .heading .sub {
  display: block;
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 16px;
  font-weight: 700;
  line-height: 24.8px;
  letter-spacing: 0.56px;
}

.section-about .heading .main {
  display: block;
  color: var(--dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 33.35px;
  letter-spacing: -0.54px;
}

.section-about .lead {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 25px 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}

.about-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.about-card__title {
  font-weight: 700;
  font-size: 14px;
  line-height: 22.4px;
  letter-spacing: -0.175px;
}

.about-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.about-card__text {
  font-size: 12px;
  line-height: 1.7;
}

/* ===========================================
   登録誘導CTA
   =========================================== */
.section-cta {
  background: var(--bg-teal);
  padding: 40px 20px;
}

.cta-inner {
  display: grid;
  grid-template-areas:
    'logo'
    'copy'
    'chars'
    'buttons';
  justify-items: center;
}

.cta-logo {
  grid-area: logo;
  width: 193px;
}

.cta-copy {
  grid-area: copy;
  margin-top: 24px;
  color: var(--dark);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

.cta-characters {
  grid-area: chars;
  margin-top: 24px;
  width: 100%;
  max-width: 297px;
}

.cta-buttons {
  grid-area: buttons;
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 390px;
  margin-top: 16px;
  padding: 0 16px;
}

/* ===========================================
   イラストのご利用について
   =========================================== */
.section-usage {
  background: #fff;
  padding: 32px 16px;
}

.usage-box {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.usage-title {
  margin: 0 0 12px;
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
}

.usage-text {
  margin: 0 0 8px;
  color: var(--dark);
  font-size: 14px;
  line-height: 1.7;
}

.usage-list {
  /* マーカーはネイティブの list-style で描画する */
  margin: 0;
  padding-left: 1.25em;
  list-style: disc;
  color: var(--dark);
  font-size: 14px;
  line-height: 1.7;
}

/* ===========================================
   PC（min-width: 1024px）
   =========================================== */
@media (min-width: 1024px) {

  /* --- グローバルナビ --- */
  .global-nav {
    padding: 16px 0;
  }

  /* --- Hero：背景を全幅に敷き、要素をその上に重ねる --- */
  .section-hero {
    background: #fff url(../images/character/hero-bg-scene-pc.png) center / cover no-repeat;
    padding: 24px 0 54px;
  }

  .hero-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
  }

  /* PCは通常フローに戻して左寄せ */
  .hero-breadcrumb {
    position: static;
    align-self: flex-start;
    padding: 8px 32px;
  }

  /* カードを解除して通常フローに戻す */
  .hero-visual {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    aspect-ratio: auto;
    background: none;
    overflow: visible;
  }

  .hero-ribbon,
  .hero-lead,
  .hero-chars {
    position: static;
    left: auto;
    top: auto;
    transform: none;
  }

  .hero-ribbon {
    width: 100%;
    max-width: 541px;
    margin-top: 33px;
  }

  .hero-lead {
    width: auto;
    margin-top: 33px;
    font-size: 32px;
    line-height: 28.15px;
    letter-spacing: 4px;
  }

  .hero-chars {
    width: 100%;
    max-width: 743px;
    margin-top: 9px;
  }

  .hero-chars img {
    aspect-ratio: 1486 / 818;
  }

  .hero-buttons {
    justify-content: center;
    max-width: none;
    margin-top: 9px;
    padding: 0;
  }

  .hero-buttons .btn-pink {
    padding: 12px 64px;
    font-size: 24px;
  }

  .hero-buttons .btn-outline {
    flex: 0 0 auto;
    padding: 15px 67px;
    font-size: 24px;
  }

  /* --- キャラクター紹介 --- */
  .section-characters {
    padding: 72px 20px;
  }

  .section-characters .heading {
    max-width: 720px;
    margin: 0 auto 16px;
  }

  .section-characters .heading .sub {
    font-size: 24px;
    line-height: 18.2px;
  }

  .section-characters .heading .main {
    margin-top: 16px;
    font-size: 32px;
    line-height: 46.8px;
    letter-spacing: normal;
  }

  .section-characters .lead {
    max-width: 720px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 28.5px;
    text-align: center;
  }

  .character-cards {
    flex-direction: row;
    gap: 40px;
    max-width: var(--cards-width);
    margin: 0 auto;
  }

  .character-card {
    flex: 1 0 0;
    min-width: 0;
    gap: 16px;
    padding: 40px 20px;
  }

  .character-card__table dt {
    padding: 16px;
    font-size: 18px;
  }

  .character-card__table dd {
    padding: 16px 0;
    font-size: 18px;
  }

  /* --- 「infoQ」とは --- */
  .section-about {
    padding: 72px 20px;
  }

  .section-about .heading {
    margin-bottom: 24px;
  }

  .section-about .heading .sub {
    margin-bottom: 16px;
    font-size: 24px;
    line-height: 18.2px;
  }

  .section-about .heading .main {
    font-size: 32px;
    line-height: 46.8px;
    letter-spacing: normal;
  }

  .section-about .lead {
    max-width: 720px;
    margin: 0 auto 24px;
    font-size: 16px;
    line-height: 28.5px;
  }

  /* Figma: lp-container 1160px の内側 padding 32px を差し引いた 1096px */
  .about-grid {
    display: flex;
    gap: 18px;
    max-width: 1096px;
    margin: 0 auto;
  }

  .about-card {
    flex: 1 0 0;
    min-width: 0;
    justify-content: center;
    padding: 24px 16px;
  }

  .about-card__image {
    height: 68px;
  }

  .about-card__title {
    font-size: 18px;
    line-height: 26.25px;
    letter-spacing: -0.225px;
  }

  .about-card__text {
    font-size: 14px;
    line-height: 22.1px;
  }

  /* --- 登録誘導CTA：2カラム --- */
  .section-cta {
    padding: 64px 20px;
  }

  .cta-inner {
    grid-template-areas:
      'logo    chars'
      'copy    chars'
      'buttons chars';
    /* Figma はボタン行(544px)がカラム幅(420px)を超える設計のため
       左カラムは内容基準にして、はみ出しと画像との重なりを防ぐ */
    grid-template-columns: max-content minmax(0, 596px);
    column-gap: 32px;
    justify-content: center;
    align-content: center;
    max-width: var(--content-width);
    margin: 0 auto;
  }

  .cta-logo {
    width: 258px;
  }

  .cta-copy {
    margin-top: 32px;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: 4px;
  }

  .cta-characters {
    align-self: center;
    margin-top: 0;
    max-width: 596px;
  }

  .cta-buttons {
    justify-content: center;
    width: auto;
    max-width: none;
    margin-top: 24px;
    padding: 0;
  }

  .cta-buttons .btn-pink {
    padding: 12px 64px;
    font-size: 20px;
  }

  .cta-buttons .btn-outline {
    flex: 0 0 auto;
    padding: 15px 67px;
    font-size: 20px;
  }

  /* --- イラストのご利用について --- */
  .section-usage {
    padding: 48px 20px;
  }

  .usage-box {
    padding: 28px 32px;
  }
}
