@charset "UTF-8";
/* ==========================================================================
   法務AI研究所 base.css
   デザイントークン（design/デザイントークン v2）＋リセット＋共通の文字組み・小部品
   ブレークポイント：〜767px モバイル／768〜1023px タブレット／1024px〜 デスクトップ（PCファースト）
   ========================================================================== */

:root {
  /* 01 カラー */
  --lab-ink: #222222;
  --lab-ink-2: #3F3F3F;
  --lab-ink-3: #6F6F6F;
  --lab-primary: #0F7CBA;
  --lab-navy: #354E6F;
  --lab-negative: #7F7F7F;
  --lab-negative-red: #990000;
  --lab-white: #FFFFFF;
  --lab-bg-1: #F4F5F7;
  --lab-bg-2: #E9EDF5;
  --lab-bg-3: #F3F2F1;
  --lab-line: #D8D8D8;
  --lab-line-soft: #ECECEC;

  /* OLGA本体のサービス紹介を同じ配色・幅で再現するための専用トークン */
  --lab-service-tool: #0474DB;
  --lab-service-consulting: #18253B;
  --lab-service-ink: #363840;
  --lab-service-border: #F0F1F1;
  --lab-service-button-bg: #ECF0F2;
  --lab-service-button-border: #D8DCDE;
  --lab-service-button-ink: #868686;
  --lab-service-container: 1132px;
  --lab-service-image-width: 500px; /* 本体の1000px画像を2倍以上で表示 */

  /* 共通の装飾背景：既存の面色に重ねる濃度と、2倍WebPの表示幅 */
  --lab-page-background: url('../img/background/site-geometric.webp');
  --lab-page-background-opacity: .45;
  --lab-page-background-size: var(--lab-container);

  /* 02 タイポグラフィ（desktop / mobile は各セレクタ側で切り替え） */
  --lab-font: 'Noto Sans JP', sans-serif;
  --lab-fs-display: 3.5rem;   /* 56px / mobile 30px */
  --lab-fs-h2: 2.5rem;        /* 40px / mobile 24px */
  --lab-fs-heading-l: 2rem;   /* 32px / mobile 20px */
  --lab-fs-h3: 1.75rem;       /* 28px / mobile 22px */
  --lab-fs-h4: 1.5rem;        /* 24px / mobile 20px */
  --lab-fs-title: 1.25rem;    /* 20px / mobile 18px */
  --lab-fs-lead: 1.125rem;    /* 18px / mobile 16px */
  --lab-fs-body: 1rem;        /* 16px */
  --lab-fs-small: 0.875rem;   /* 14px */
  --lab-fs-label: 0.75rem;    /* 12px */

  /* 03 余白スケール */
  --lab-space-2: 2px;
  --lab-space-4: 4px;
  --lab-space-8: 8px;
  --lab-space-12: 12px;
  --lab-space-16: 16px;
  --lab-space-24: 24px;
  --lab-space-32: 32px;
  --lab-space-48: 48px;
  --lab-space-64: 64px;
  --lab-space-96: 96px;
  --lab-space-128: 128px;

  /* 04 グリッド */
  --lab-container: 1440px;
  --lab-gutter: 32px;
  --lab-margin: 64px;

  /* 05 角丸 */
  --lab-radius-sm: 4px;
  --lab-radius-md: 8px;

  /* 06 モーション */
  --lab-dur-fast: 120ms;
  --lab-dur-slow: 480ms;
  --lab-ease-out: cubic-bezier(.16, 1, .3, 1);
  --lab-ease-standard: cubic-bezier(.2, 0, 0, 1);

  @media (max-width: 1023px) {
    --lab-gutter: 24px;
    --lab-margin: 32px;
  }

  @media (max-width: 767px) {
    --lab-gutter: 16px;
    --lab-margin: 24px;
    --lab-page-background-opacity: .35;
    --lab-page-background-size: calc(var(--lab-container) / 2);
  }
}

/* --------------------------------------------------------------------------
   リセット
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--lab-white);
  color: var(--lab-ink);
  font-family: var(--lab-font);
  font-size: var(--lab-fs-body);
  line-height: 1.85;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

h2, h3 {
  text-wrap: balance;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

button, input, select, textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* 07 フォーカス：明るい背景は青、青・紺の面は白（.lab-on-dark） */
:focus-visible {
  outline: 2px solid var(--lab-primary);
  outline-offset: 3px;
}

.lab-on-dark :focus-visible {
  outline-color: var(--lab-white);
}

/* --------------------------------------------------------------------------
   登録状態での出し分け（<html class="is-registered">：Cookie lab_r）
   -------------------------------------------------------------------------- */
html:not(.is-registered) .lab-for-member {
  display: none !important;
}

html.is-registered .lab-for-guest {
  display: none !important;
}

/* --------------------------------------------------------------------------
   レイアウト
   -------------------------------------------------------------------------- */
.lab-main {
  display: block;

  /* 最外周のセクションだけを装飾し、カード・フォームの背景を保つ。
     登録ページのラッパー内のセクションも対象。入れ子の部品には重ねない。 */
  & section:not(section section),
  & > .lab-ax-support {
    position: relative;
    isolation: isolate;

    &::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background-image: var(--lab-page-background);
      background-position: center top;
      background-size: var(--lab-page-background-size) auto;
      background-repeat: repeat-y;
      mix-blend-mode: multiply;
      opacity: var(--lab-page-background-opacity);

      @media (max-width: 767px) { background-position: right top; }
      @media print { display: none; }
    }
  }
}

/* 12カラム：1440px時に左右64px・コンテナ1312px */
.lab-container {
  width: 100%;
  max-width: var(--lab-container);
  margin-inline: auto;
  padding-inline: var(--lab-margin);
}

/* --------------------------------------------------------------------------
   文字組み
   -------------------------------------------------------------------------- */

/* 欧文補助ラベル（LEGAL AX など） */
.lab-kicker {
  font-size: var(--lab-fs-label);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .08em;
  color: var(--lab-primary);

  &.lab-kicker--navy {
    color: var(--lab-navy);
  }

  &.lab-kicker--white {
    color: var(--lab-white);
  }
}

/* H1（ヒーロー・ページタイトル） */
.lab-h1 {
  font-size: clamp(2.75rem, 3.9vw, var(--lab-fs-display));
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  font-feature-settings: 'palt';

  @media (max-width: 1023px) {
    font-size: 2.75rem;
  }

  @media (max-width: 767px) {
    font-size: 1.875rem;
    line-height: 1.45;
  }
}

/* セクション見出し H2 */
.lab-h2 {
  font-size: var(--lab-fs-h2);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
  font-feature-settings: 'palt';
  color: var(--lab-primary);

  @media (max-width: 1023px) {
    font-size: 2rem;
  }

  @media (max-width: 767px) {
    font-size: 1.5rem;
  }

  &.lab-h2--navy {
    color: var(--lab-navy);
  }

  &.lab-h2--white {
    color: var(--lab-white);
  }
}

/* リード文 */
.lab-lead {
  font-size: var(--lab-fs-lead);
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--lab-ink-2);

  @media (max-width: 767px) {
    font-size: var(--lab-fs-body);
    line-height: 1.85;
  }
}

/* 本文（行長は40emまで） */
.lab-text {
  font-size: var(--lab-fs-body);
  line-height: 1.85;
  letter-spacing: .04em;
}

.lab-measure {
  max-width: 40em;
}

/* セクション見出し（欧文ラベル＋H2＋右端の一覧リンク） */
.lab-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;

  @media (max-width: 767px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  & .lab-section-head__titles {
    display: flex;
    flex-direction: column;
    gap: 16px;

    @media (max-width: 767px) {
      gap: 12px;
    }
  }

  &.lab-section-head--loose .lab-section-head__titles {
    gap: 24px;

    @media (max-width: 767px) {
      gap: 16px;
    }
  }

  /* モバイルでは見出し横のリンクを隠し、セクション末尾の .lab-sp-more を出す */
  & .lab-section-head__link {
    @media (max-width: 767px) {
      display: none;
    }
  }
}

/* --------------------------------------------------------------------------
   テキストリンク（16px 700・下線1px／offset 6px・hoverで2px・タップ領域44px）
   <a class="lab-link"><span>もっと見る</span></a>
   -------------------------------------------------------------------------- */
.lab-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: var(--lab-fs-body);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--lab-primary);
  transition: color var(--lab-dur-fast) var(--lab-ease-out);

  & > span {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
  }

  &:hover > span {
    text-decoration-thickness: 2px;
  }

  /* 淡色面の上は紺 */
  &.lab-link--navy {
    color: var(--lab-navy);
  }

  &.lab-link--white {
    color: var(--lab-white);
  }
}

/* 小さいリンク（本体サイト /ai-consulting/ など） */
.lab-link-sm {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--lab-fs-small);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--lab-primary);
  text-decoration: underline;
  text-underline-offset: 6px;

  &:hover {
    text-decoration-thickness: 2px;
  }
}

/* 控えめなリンク（設計・実装の支援について…） */
.lab-link-muted {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--lab-fs-small);
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--lab-ink-2);
  text-decoration: underline;
  text-underline-offset: 4px;

  &:hover {
    text-decoration-thickness: 2px;
  }
}

/* モバイルだけセクション末尾に出す一覧リンク（.lab-section-head__link と対） */
.lab-sp-more.lab-sp-more {
  display: none;

  @media (max-width: 767px) {
    display: inline-flex;
  }
}

/* --------------------------------------------------------------------------
   画像・動画枠（プレースホルダ）
   -------------------------------------------------------------------------- */
.lab-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: var(--lab-radius-md);
  background: var(--lab-bg-1);
  font-size: var(--lab-fs-label);
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--lab-ink-3);
  text-align: center;

  &.lab-frame--white {
    background: var(--lab-white);
  }

  &.lab-frame--neg {
    background: var(--lab-bg-3);
    color: var(--lab-ink-2);
  }

  &.lab-frame--pos {
    background: var(--lab-bg-2);
    color: var(--lab-ink-2);
  }

  /* 画像・GIF を枠いっぱいに入れる（法務AI活用体験のサムネイルなど） */
  &.lab-frame--media {
    padding: 0;
    overflow: hidden;

    & picture {
      display: block;
      width: 100%;
      height: 100%;
    }

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  &.lab-frame--4x3 { aspect-ratio: 4 / 3; }
  &.lab-frame--16x9 { aspect-ratio: 16 / 9; }
  &.lab-frame--1x1 { aspect-ratio: 1 / 1; }
  &.lab-frame--4x5 { aspect-ratio: 4 / 5; }
}

/* --------------------------------------------------------------------------
   強調枠・マーカー
   -------------------------------------------------------------------------- */

/* ゴール文・成果の強調枠（frame 2px #354E6F） */
.lab-goal {
  padding: 32px 48px;
  border: 2px solid var(--lab-navy);
  border-radius: var(--lab-radius-md);
  font-size: var(--lab-fs-h3);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .02em;
  font-feature-settings: 'palt';
  color: var(--lab-navy);
  text-align: center;
  text-wrap: balance;

  @media (max-width: 1023px) {
    padding: 32px;
    font-size: 1.5rem;
  }

  @media (max-width: 767px) {
    padding: 24px 16px;
    font-size: var(--lab-fs-lead);
    line-height: 1.7;
    text-align: left;
  }
}

/* マーカー：ネガティブ＝bg-3＋赤／ポジティブ＝bg-2（白い面の上は --pos-white）＋紺 */
.lab-marker {
  padding: 2px 4px;
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;

  &.lab-marker--neg {
    background: var(--lab-bg-3);
    color: var(--lab-negative-red);
  }

  &.lab-marker--pos {
    background: var(--lab-bg-2);
    color: var(--lab-navy);
  }

  &.lab-marker--pos-white {
    background: var(--lab-white);
    color: var(--lab-navy);
  }
}

/* --------------------------------------------------------------------------
   責任分界 4区分バッジ（4色は使わず、濃淡＋区分名）
   -------------------------------------------------------------------------- */
.lab-tier {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--lab-radius-sm);
  font-size: var(--lab-fs-label);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;

  &.lab-tier--green {
    background: var(--lab-bg-1);
    color: var(--lab-navy);
  }

  &.lab-tier--yellow {
    background: var(--lab-bg-2);
    color: var(--lab-navy);
  }

  &.lab-tier--red {
    background: var(--lab-navy);
    color: var(--lab-white);
  }

  &.lab-tier--black {
    background: var(--lab-ink);
    color: var(--lab-white);
  }
}

/* --------------------------------------------------------------------------
   定義リスト行（日時／テーマ など）
   -------------------------------------------------------------------------- */
.lab-dl {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--lab-line);

  & .lab-dl__row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--lab-line);

    @media (max-width: 767px) {
      grid-template-columns: 64px minmax(0, 1fr);
      column-gap: 16px;
      padding: 12px 0;
    }
  }

  & dt {
    font-size: var(--lab-fs-small);
    font-weight: 700;
    line-height: 1.85;
  }

  & dd {
    font-size: var(--lab-fs-body);
    line-height: 1.85;
    color: var(--lab-ink-3);
  }
}

/* --------------------------------------------------------------------------
   注記バナー（デモ共通の必須文言など）
   -------------------------------------------------------------------------- */
.lab-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--lab-radius-md);
  background: var(--lab-bg-1);
  font-size: var(--lab-fs-small);
  line-height: 1.7;
  color: var(--lab-ink-2);

  @media (max-width: 767px) {
    padding: 16px;
  }

  &::before {
    content: 'i';
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid var(--lab-navy);
    border-radius: 50%;
    font-size: var(--lab-fs-label);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    color: var(--lab-navy);
  }
}

/* --------------------------------------------------------------------------
   チェックアイコン（登録済み・送信完了）
   -------------------------------------------------------------------------- */
.lab-check {
  flex: none;
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 2px solid var(--lab-primary);
  border-radius: 50%;

  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 54%;
    border-right: 2px solid var(--lab-primary);
    border-bottom: 2px solid var(--lab-primary);
    transform: translate(-50%, -62%) rotate(45deg);
  }

  &.lab-check--lg {
    width: 56px;
    height: 56px;

    &::after {
      border-width: 0 3px 3px 0;
    }
  }
}

/* 文節の途中で折り返させたくない語（「法務AI」「法務AX」などの固有名詞） */
.lab-nowrap {
  display: inline-block;
}

/* --------------------------------------------------------------------------
   アクセシビリティ
   -------------------------------------------------------------------------- */
.lab-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lab-skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 16px;
  border-radius: var(--lab-radius-sm);
  background: var(--lab-white);
  color: var(--lab-primary);
  font-size: var(--lab-fs-small);
  font-weight: 700;
  transform: translateY(-200%);

  &:focus {
    transform: none;
  }
}

/* トースト（ダミー操作のフィードバック） */
.lab-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1100;
  max-width: calc(100% - 48px);
  padding: 12px 24px;
  border-radius: var(--lab-radius-sm);
  background: var(--lab-navy);
  color: var(--lab-white);
  font-size: var(--lab-fs-small);
  font-weight: 700;
  line-height: 1.7;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity var(--lab-dur-fast) var(--lab-ease-out), transform var(--lab-dur-fast) var(--lab-ease-out);

  &.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  &:empty {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
